Recent Releases of https://github.com/brianpugh/autoregistry
https://github.com/brianpugh/autoregistry - v1.1.2
What's Changed
- fix module registry name preprocessing by @BrianPugh in https://github.com/BrianPugh/autoregistry/pull/44
Full Changelog: https://github.com/BrianPugh/autoregistry/compare/v1.1.1...v1.1.2
- Python
Published by BrianPugh about 2 years ago
https://github.com/brianpugh/autoregistry - v1.1.1
What's Changed
- Allow
aliaslist to contain default/derived/providedname. by @BrianPugh in https://github.com/BrianPugh/autoregistry/pull/43
Full Changelog: https://github.com/BrianPugh/autoregistry/compare/v1.1.0...v1.1.1
- Python
Published by BrianPugh over 2 years ago
https://github.com/brianpugh/autoregistry - v1.1.0
What's Changed
- Set item interface by @BrianPugh in https://github.com/BrianPugh/autoregistry/pull/40
Full Changelog: https://github.com/BrianPugh/autoregistry/compare/v1.0.3...v1.1.0
- Python
Published by BrianPugh over 2 years ago
https://github.com/brianpugh/autoregistry - v1.0.3
What's Changed
- don't allow arbitrary keyword config by @BrianPugh in https://github.com/BrianPugh/autoregistry/pull/38
Full Changelog: https://github.com/BrianPugh/autoregistry/compare/v1.0.2...v1.0.3
- Python
Published by BrianPugh over 2 years ago
https://github.com/brianpugh/autoregistry - v1.0.2
What's Changed
- Fixes
attrsdecorators when applied to aRegistrysubsubclass (and beyond) with slots enabled.
Full Changelog: https://github.com/BrianPugh/autoregistry/compare/v1.0.1...v1.0.2
- Python
Published by BrianPugh over 2 years ago
https://github.com/brianpugh/autoregistry - v1.0.1
What's Changed
- fix config-passing issues with attrs library when slots were used. By @BrianPugh in https://github.com/BrianPugh/autoregistry/pull/34
Full Changelog: https://github.com/BrianPugh/autoregistry/compare/v1.0.0...v1.0.1
- Python
Published by BrianPugh over 2 years ago
https://github.com/brianpugh/autoregistry - v1.0.0 - Major Release
This has been used in a lot of systems at this point, so I feel like it's appropriate to cut a 1.0.0 release. No real changes compared to v0.10.1.
- Python
Published by BrianPugh over 2 years ago
https://github.com/brianpugh/autoregistry - v0.10.1
Bug Fixes
- Remove circular references of
RegistryinRegistryMeta. This results in cleaner code, and the ability to extend theRegistryMetaclass.
- Python
Published by BrianPugh almost 3 years ago
https://github.com/brianpugh/autoregistry - v0.10.0 - Hyphenating & Custom Transforms
Features
- Adds a new configuration flag
hyphen=False, which will replace underscores_with hyphens-. Can be used in conjunction withsnake_case=True(camelCase -> snake_case conversion will be performed prior to converting underscores to hyphens). - Adds a new configuration parameter
transform, where a user can provide their own string-to-string transformation function for modifying registry keys. - Renamed
registry.pyto_registry.pyto prevent users from accidentallyfrom autoregistry import registry(instead of importingRegistry).
- Python
Published by BrianPugh almost 3 years ago
https://github.com/brianpugh/autoregistry - v0.9.2
Bug Fixes
- More improved typing:
- add
__all__to__init__.py. - add
py.typedmarker to package.
- add
- Python
Published by BrianPugh almost 3 years ago
https://github.com/brianpugh/autoregistry - v0.9.1
Bug Fixes
- Internally, an element name is now strictly a
str(previouslyOptional[str]). This can help out typing when doing reverse-key lookups. Other typing needs to be improved, but this is a common one that was easy to fix.
- Python
Published by BrianPugh almost 3 years ago
https://github.com/brianpugh/autoregistry - v0.9.0
Breaking Change
- Subclasses of
Registryare no longer registered to the baseRegistryclass. This is to prevent cross-library mingling. Shouldn't impact most use-cases.
- Python
Published by BrianPugh about 3 years ago
https://github.com/brianpugh/autoregistry - v0.8.3
Bug Fixes
RegistryDecoratorshould not be in theRegistryregistry. Fix skips registration.
- Python
Published by BrianPugh about 3 years ago
https://github.com/brianpugh/autoregistry - v0.8.1
Bug Fixes
- Improved type hinting.
- Python
Published by BrianPugh over 3 years ago
https://github.com/brianpugh/autoregistry -
Breaking Changes
- Moved
__registry_name__to__registry__.namevia_Registryobject. - Moved
__registry_config__to__registry__.configvia_Registryobject.
Bug Fixes
- Fixed
recursivebehavior to be more useful (and more proper implementation). See docs for details and examples. - Checks and disallows
.and/in explicitly defined names and aliases.
- Python
Published by BrianPugh over 3 years ago
https://github.com/brianpugh/autoregistry -
New Features
- Add
skipoption 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.
- Python
Published by BrianPugh over 3 years ago
https://github.com/brianpugh/autoregistry -
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.
- Python
Published by BrianPugh over 3 years ago
https://github.com/brianpugh/autoregistry -
Bugfixes
- propagate parent's registry configuration to children when recursively registering a module. Previously, submodules would erroneously use the default configuration.
- Python
Published by BrianPugh over 3 years ago
https://github.com/brianpugh/autoregistry -
New Features
- new config options:
prefixandstrip_prefix. These mirror the functionality ofsuffixandstrip_suffix. - new config options:
nameandaliases. These allow you to override and add additional registration keys. - new config options:
regexverifies registered names pass some regex validation.
See the docs for more details.
Misc
- Update Poetry to v1.2.0b2
- Slightly optimized config-copying code.
- Python
Published by BrianPugh over 3 years ago
https://github.com/brianpugh/autoregistry - v0.4.1
- Fixed some type hinting
- Temporary Poetry fix implemented for developers.
- Python
Published by BrianPugh over 3 years ago
https://github.com/brianpugh/autoregistry -
Changes
- Breaking: Removed
abstractmethoddecorator to reduce confusion; user will have to explicitly import itfrom abc import abstractmethod
- Python
Published by BrianPugh almost 4 years ago
https://github.com/brianpugh/autoregistry - v0.3.0
New Features
- Can now inject a whole python module.
- Nested objects can be queried via dot
"some.sub.module"or via slashes"some/sub/module"
- Nested objects can be queried via dot
- tweaked some install settings,
pip install -e .should work now. - Check for key collisions, configurable via
overwrite. - Allow objects or list of objects to be passed into
Registryconstructor.
- Python
Published by BrianPugh almost 4 years ago
https://github.com/brianpugh/autoregistry -
Bugfixes
- Fixed crash when passing configuration parameters directly into
Registryobject.
- Python
Published by BrianPugh almost 4 years ago
https://github.com/brianpugh/autoregistry -
Features
- Greatly improved documentation.
- Add
__iter__method so iterating over a registered class mimics that of a dictionary. - Add
clearmethod to clear our a Registry.
Bugfixes
RegistryDecoratorno longer registered inRegistry.
- Python
Published by BrianPugh almost 4 years ago
https://github.com/brianpugh/autoregistry - Initial Release
- Python
Published by BrianPugh almost 4 years ago