Pydanclick

Latest version: v0.3.0

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

Scan your dependencies

0.3.0

New features:

- improve support for `BaseSettings` objects by deferring evaluation of default values ([17](https://github.com/felix-martel/pydanclick/pull/17), contribution by slicksk8te)

0.2.1

New features:

- destination variable name can be omitted (i.e. `from_pydantic(MyModel)` instead of `from_pydantic("my_model", MyModel)` (12)

0.2.0

New features:

- Support nested models
- Support container types such as lists or dicts

Bug fixes:

- Avoid name collision by prefixing argument names with `prefix`

And also:

- Reorganize code
- Normalize prefix and aliases (i.e. accept with and without leading dashes)

0.1.0

First working version of `pydanclick`. Basic features are there, so the library should be usable as long as:

- you stay away from complex types (e.g. container types such as lists or dicts). As a workaround, you can `exclude` non-compatible fields and add them manually
- you're not using advanced Click features
- you don't use nested models

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.