Phanas-pydantic-helpers

Latest version: v2.1.3

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

Scan your dependencies

Page 1 of 2

2.1.3

Fixes

- Fix `FieldConverter` argument name being assumed in `create_template_from_model`

2.1.2

Fixes

- Fix `FieldConverter`s not being detected correctly in some cases in `create_template_from_model` (when their base class inherits `typing.Protocol`, for example)

2.1.1

Fixes

- Fix `FieldConverter`s not being handled correctly in `create_template_from_model`

Code

- Add GitHub action to automatically publish to PyPI

2.1.0

Features

- Add `create_template_from_model` to generate template dicts from models with required fields

Changes

- Reorganize helpers into modules inside a `helpers` package

Code

- Add unit tests for `create_template_from_model`
- Add unit tests for `FieldConverter`
- Add GitHub action to run unit tests

2.0.0

Changes

- Git ignore `.python-version`

Compatibility

- Raise Python requirement to `^3.7` (breaking -- dependency compatibility issues I hadn't tested)
- Fix parameterized types for Python `<3.9`

1.0.1

Fixes

- Fix missing dependencies
- Fix incorrect import name
- Fix optional imports not actually being optional
- Fix converter logic failing due to name collision

Compatibility

- Lower Python requirement to `^3.6`

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.