Pydantic-cli

Latest version: v9.1.0

Safety actively analyzes 681844 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

7.0.0

- Drop support for python > 3.10
- CI fixes for explicitly testing for 3.10, 3.11, 3.12

6.0.0

- 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.

5.0.0

(Not published)

- Support for Pydantic >= 2.8
- 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`).
- There's `mypy` related issues with `Field( ......, cli=('-x', '--filter'))`. I don't think pydantic should remove the current `extra` functionality.

4.3.0

- Leverage Pydantic validation for enum choices, enabling more complex use-cases

4.0.0

- Backward incompatible change for semantics of boolean options
- `Field` should be used instead of Config.CLI_EXTRA_OPTIONS

3.4.0

- Improve support for simple `Enum`s.

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.