Pydantic Cli Versions Save

Turn Pydantic defined Data Models into CLI Tools

v4.3.0

2 years ago

Fix friction point with argparse validation. Pydantic is now completely responsible for casting and validation.

v4.2.1

2 years ago

v4.2.0

2 years ago

v4.1.0

2 years ago

Improve ergonomics by using cli=(short, long) or cli=(long,) in Field.

v4.0.1

2 years ago

v4.0.0

2 years ago
  • backward incompatible changes to how boolean flags are handled
  • Common/Vanilla case of debug:bool = False can be customized with (-d, --debug) to negate the default value.
  • Required x:bool, or x:Optional[bool], x:Optional[bool] = None semantics remain the same with (--enable-x, --disable-x) format.
  • Use Pydantic's Field instead of Config.CLI_EXTRA_OPTIONS to have one consistent model
  • Improve help messages by adding better type description and explicitly display if a field is required

v3.4.1

2 years ago

v3.4.0

2 years ago

v3.3.0

2 years ago