Pyfields

Latest version: v1.7.2

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

Scan your dependencies

Page 3 of 6

1.1.4

- packaging improvements: set the "universal wheel" flag to 1, and cleaned up the `setup.py`. In particular removed dependency to `six`. Fixes [66](https://github.com/smarie/python-pyfields/issues/66)

See [documentation page](https://smarie.github.io/python-pyfields/changelog/) for details.

1.1.3

- `tests` folder is now excluded from generated package wheel. Fixed [65](https://github.com/smarie/python-pyfields/issues/65)

See [documentation page](https://smarie.github.io/python-pyfields/changelog/) for details.

1.1.2

- Now `converters={'*': ...}` does not appear as a type hint error. Fixed [64](https://github.com/smarie/python-pyfields/issues/64)

See [documentation page](https://smarie.github.io/python-pyfields/changelog/) for details.

1.1.1

- **Misc**: Package is now PEP561 compatible. Fixed [61](https://github.com/smarie/python-pyfields/issues/61)

See [documentation page](https://smarie.github.io/python-pyfields/changelog/) for details.

1.1.0

- **New `autofields` decorator**. This decorator can be used to drastically reduce boilerplate code, similar to `pydantic` and `attrs`. This is compliant with python 2.7 and 3.5+ but is more useful when the type hints can be provided in class member annotations, so from 3.6+. Fixed [55](https://github.com/smarie/python-pyfields/issues/55)

- **Default values are now validated/converted as normal values**. If the default value is provided in `default=<value>` or as a `default_factory=copy_value(<value>)`, this is done only **once per field**, to accelerate future access. If the value was converted on the way, the converted value is used to replace the default value, or the default value copied by the factory. Fixed [57](https://github.com/smarie/python-pyfields/issues/57)

- **Misc**: removed `makefun` usage in `validate_n_convert.py` : was overkill. Also fixed a few type hints.

See [documentation page](https://smarie.github.io/python-pyfields/changelog/) for details.

1.0.3

* Fixed bug with `super().__init__` not behaving as expected. Fixed [53](https://github.com/smarie/python-pyfields/issues/53)

See [documentation page](https://smarie.github.io/python-pyfields/changelog/) for details.

Page 3 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.