Autoclass

Latest version: v2.2.0

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

Scan your dependencies

Page 5 of 7

1.8.0

* Added `on_each_` and `on_all_`

1.7.1

* `lts` was erroneously mappend onto `gt`. Fixed this.

1.7.0

* New decorator `autoclass` to apply several features at once.
* `autodict` now also generates a `from_dict` static method in the class, as well as `__str__`, `__repr__` and `__eq__` if not present

1.6.0

* New decorator `autodict` to make a class behave like a (read-only) dict. So this is a 'dict view' on top of an object, basically the opposite of `munch` (that is an 'object view' on top of a dict)

1.5.0

* better error messages for set enforcers
* uniform management of validators lists: now passing a list creates an 'and_' operator behind the scenes
* better handling of empty lists
* and, or, xor now automatically replace themselves with their contents when their contents is a single validator
* added a few tests to improve coverage (hopefully)

1.4.3

* better validation error messages for parametrized validators

Page 5 of 7

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.