Toggle Constraint Axis is a Blender add-on that places checkboxes in the View 3D header to constrain the axis when moving objects, vertices or other elements with tools such as Tweak or Move. Constraining an axis would normally mean pressing the X, Y or Z key each time you move something.
The checkboxes correspond to the transform.translate attribute. Setting X, Y and Z all to false or all to true leaves movement unconstrained, [True, False, False] allows only X-axis movement, and [True, True, False] limits movement to the XY-plane. Default hotkeys for axis constraints are Ctrl + Alt + X, Y or Z, and the add-on works by overriding some of the settings that call transform.translate in the keymap.
A few behaviours to keep in mind: if you press a modal key, modal takes priority, and if you use the move tool's gizmo, the gizmo takes priority regardless of the constraints. Blender 3.0 or later uses the .py file, while 2.91 or earlier uses the zip. Released by Tokage IT Lab. under the GPL license.