Pydanclick

Latest version: v0.4.0

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

Scan your dependencies

0.4.0

What's Changed

* refactor: catch exceptions raised by issubclass by azmeuk in https://github.com/felix-martel/pydanclick/pull/25
* Support ignoring unsupported pydantic field types. Fixes 32 by rectalogic in https://github.com/felix-martel/pydanclick/pull/33
* Allow unpacking of lists of submodels by felix-martel in https://github.com/felix-martel/pydanclick/pull/26
* Use `repr` when formatting option help. by rectalogic in https://github.com/felix-martel/pydanclick/pull/35
* Update to Griffe v1 by felix-martel in https://github.com/felix-martel/pydanclick/pull/34
* Add py.typed by rectalogic in https://github.com/felix-martel/pydanclick/pull/39
* Specify griffe as an extra rather than a dependency group by harrymander in https://github.com/felix-martel/pydanclick/pull/40
* build(python): update supported Python versions: 3.9 - 3.13 by noirbizarre in https://github.com/felix-martel/pydanclick/pull/36
* Various fixes for current `main` by noirbizarre in https://github.com/felix-martel/pydanclick/pull/41
* Fix typos by kianmeng in https://github.com/felix-martel/pydanclick/pull/23

New Contributors

* azmeuk made their first contribution in https://github.com/felix-martel/pydanclick/pull/25
* rectalogic made their first contribution in https://github.com/felix-martel/pydanclick/pull/33
* harrymander made their first contribution in https://github.com/felix-martel/pydanclick/pull/40
* noirbizarre made their first contribution in https://github.com/felix-martel/pydanclick/pull/36
* kianmeng made their first contribution in https://github.com/felix-martel/pydanclick/pull/23

**Full Changelog**: https://github.com/felix-martel/pydanclick/compare/v0.3.0...v0.4.0

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

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.