formaldict
provides the constructs for parsing structured dictionaries that adhere to a schema. Along with a simple and flexible schema definition to parse and validate dictionaries, formaldict
is integrated with python-prompt-toolkit. This integration allows users to easily construct flows for command line interfaces (CLIs) when parsing structured user input.
Below is an example user input flow constructed with a formaldict
schema used by git-tidy:
Check out the docs for a tutorial on how to use formaldict
as the backbone for parsing structured input in your library.
View the formaldict docs here.
Install formaldict with:
pip3 install formaldict
For information on setting up formaldict for development and contributing changes, view CONTRIBUTING.md.
formaldict
is compatible with Python 3.9 - 3.13.
- @wesleykendall (Wes Kendall)