Pyfields

Latest version: v1.7.2

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

Scan your dependencies

Page 2 of 6

1.5.0

- Improved `autoclass` so that it is much easier to access the relevant arguments from underlying `autofields` and `autoclass`. Fixed [78](https://github.com/smarie/python-pyfields/issues/78)

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

1.4.0

- New `autoclass` decorator directly available from `pyfields`. It is merely equivalent to the original `autoclass` with option `autofields=True`, which makes it easier to use on classes with automatic fields. Fixes [75](https://github.com/smarie/python-pyfields/issues/75)

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

1.3.1

- Fields order are preserved by `autofields` even in the case of a field with just a type annotation. Fixed [76](https://github.com/smarie/python-pyfields/issues/76)

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

1.3.0

- String forward references in type hints, and PEP563 behaviour, is now supported. When this case happense, the type hint resolution is delayed until the field is first accessed. Fixes [73](https://github.com/smarie/python-pyfields/issues/73)

- Accessing a field definition from a class directly is now enabled, since PyCharm [fixed their autocompletion bug](https://youtrack.jetbrains.com/issue/PY-38151). Fixes [#12](https://github.com/smarie/python-pyfields/issues/12)

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

1.2.0

- `getfields` can now be executed on an instance, and provides a `public_only` option. Fixes [69](https://github.com/smarie/python-pyfields/issues/69)

- New `get_field_values` method to get an ordered dict-like of field name: value. Fixes [70](https://github.com/smarie/python-pyfields/issues/70)

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

1.1.5

- `autofields` now correctly skips `property` and more generally, descriptor members. Fixes [67](https://github.com/smarie/python-pyfields/issues/67)

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

Page 2 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.