Skip to content

Releases: mpkocher/pydantic-cli

Fix issue for Literal usage. Use FieldInfo repr for display.

20 Sep 02:57
b343dc3
Compare
Choose a tag to compare
Merge pull request #70 from mpkocher/use-pydantic-repr

Use FieldInfo repr. This non-trivially changes how the output is displayed.

Fixes to pypi build v9.0.0

23 Aug 03:03
5df8a90
Compare
Choose a tag to compare
  • Fixes to hatchling build to pypi

Drop Support for Python 3.9

26 Jul 02:01
22b6e43
Compare
Choose a tag to compare

Drop Support for Python 3.9.

6.0.0 Pydantic 2 support and new Cmd model

25 Jul 17:22
51ccf76
Compare
Choose a tag to compare
  • Support for Pydantic >= 2.8
  • Backwards incompatible change. Use Cmd model.
  • Remove "sp" specific functions. No longer necessary because of Cmd interface.
  • To migrate forward, inherit from Cmd and put your "main" function as Cmd.run method.
  • Cmd.run() should return None (on success) or raise an exception on error.
  • Pydantic 2 has a different "optional" definition
  • Use CliConfig instead of DefaultConfig
  • Many backward incompatible changes to how bool are used. Use Pydantic bool casting (e.g., --dry-run y, or --dry-run true).

Improve support for Enums

03 Mar 02:49
50d1eda
Compare
Choose a tag to compare

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

New release with Manifest.in

10 Nov 22:51
bcad5bb
Compare
Choose a tag to compare
Merge pull request #47 from mpkocher/bump-version-421

Bump version to include manifest.in

Add py.typed for better mypy support. Improved docs.

28 Aug 06:15
711aedd
Compare
Choose a tag to compare
Merge pull request #43 from mpkocher/fix-doc-typo

Fix typos in docs.

Improve Ergonomics by using cli= in Field

26 Aug 00:26
ff8755a
Compare
Choose a tag to compare

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

Fixes for unhashable default values

24 Aug 01:09
abdbbcc
Compare
Choose a tag to compare
Merge pull request #37 from mpkocher/fix-unhashable-bug

Fix issue with assuming defaults are hashable

Improvements to boolean flags

23 Aug 05:01
2ca496f
Compare
Choose a tag to compare
  • 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