Autoclass

Latest version: v2.2.0

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

Scan your dependencies

Page 2 of 7

2.0.0

**Features**

- default string representation in `autodict` is now more readable. Legacy representation is still available through a parameter. Fixed [29](https://github.com/smarie/python-autoclass/issues/29).

- `pyfields` can now be used as the source for the list of attributes, in `autohash`, `autodict`, and `autoclass`. Fixes [28](https://github.com/smarie/python-autoclass/issues/28)

- new `autorepr` decorator. Previously this feature was only available through `autodict`, it can now be used without it. `autorepr` is supported in `autoclass`, and if users set `autodict=False` by default it will be enabled. Fixed Fixed [30](https://github.com/smarie/python-autoclass/issues/30) and [31](https://github.com/smarie/python-autoclass/issues/31).

**Misc / bugfixes**

- Major refactoring: more readable and maintainable code.

- Fixed `autodict` behaviour when the list was `vars(self)` and used together with `autoprops`: with some options the private names were appearing and with others the public property names were appearing. Now the public property names always appear if they exist.

1.18.0

New `autoslots` feature, that can also be used from `autoclass` by setting `(autoslots=True)`. Fixes [9](https://github.com/smarie/python-autoclass/issues/9)

1.17.2

Added `__version__` attribute at package level.

1.17.1

* Fixed `ValidationError` happening in all use cases. Fixed [25](https://github.com/smarie/python-autoclass/issues/25).

1.17.0

* Names used in `include` and `exclude` are now correctly taken into account by `autodict` and `autohash` even if the names correspond to property names and therefore the actual attributes names start with an underscore. Fixes [21](https://github.com/smarie/python-autoclass/issues/21)

1.16.0 - Python 2 support

* This library now works on python 2.7, 3.5, 3.6 and 3.7. Fixes [3](https://github.com/smarie/python-autoclass/issues/3).

1.15.1

* Fixed [24](https://github.com/smarie/python-autoclass/issues/24)

Page 2 of 7

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.