Autoregistry

Latest version: v1.1.2

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

Scan your dependencies

Page 3 of 5

0.8.2

0.8.1

Bug Fixes
* Improved type hinting.

0.8.0

Breaking Changes

- Moved `__registry_name__` to `__registry__.name` via `_Registry` object.
- Moved `__registry_config__` to `__registry__.config` via `_Registry` object.

Bug Fixes
- Fixed `recursive` behavior to be more useful (and more proper implementation). See docs for details and examples.
- Checks and disallows `.` and `/` in explicitly defined names and aliases.

0.7.0

New Features
* Add `skip` option for inheritance. Will skip registering the subclass to it's parent(s) registries.
* Redirect registry-method overrides to work as (probably) expected. Can be disabled via `redirect=False`.

Bugfixes
* Add `__repr__` fallback.

0.6.0

New Features
* The name a class was registered under is now available at `__registry_name__`.

Bugfixes
* As much of the initialization process is moved prior to the actual creation of the class. This is so the state during hooks like `__init_subclass__` are as close to expected as possible. Due to limitations, the class is not yet registered to its parent registry. However, the following actions are performed prior to `__init_subclass__`:
* `__registry__` is created and empty.
* `__registry_config__` is created with expected configuration.
* `__registry_name__` is set.

0.5.1

Bugfixes
* propagate parent's registry configuration to children when recursively registering a module. Previously, submodules would erroneously use the default configuration.

Page 3 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.