edornd / argdantic

Typed command line interfaces with argparse and pydantic
MIT License
38 stars 4 forks source link

Support file sources #7

Closed edornd closed 1 year ago

edornd commented 1 year ago

Pydantic supports multiple sources but lacks direct implementations, provide ready-to-use settings boilerplate to support them as well. Ideally, argdantic should support JSON, YAML (and TOML probably, if it's possible to write hierarchical docs). Bonus: make sure the support is optional during installation (e.g., use argdantic[<source>] during installation, otherwise the required libraries should not be included to keep it simple and lightweight).