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 alias list to contain default/derived/provided name. 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 attrs decorators when applied to a Registry subsubclass (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 Registry in RegistryMeta. This results in cleaner code, and the ability to extend the RegistryMeta class.

- 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 with snake_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.py to _registry.py to prevent users from accidentally from autoregistry import registry (instead of importing Registry).

- 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.typed marker to package.

- 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 (previously Optional[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 Registry are no longer registered to the base Registry class. 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

  • RegistryDecorator should not be in the Registry registry. Fix skips registration.

- Python
Published by BrianPugh about 3 years ago

https://github.com/brianpugh/autoregistry - v0.8.2

- Python
Published by BrianPugh over 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__.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.

- Python
Published by BrianPugh over 3 years ago

https://github.com/brianpugh/autoregistry -

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.

- 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: prefix and strip_prefix. These mirror the functionality of suffix and strip_suffix.
  • new config options: name and aliases. These allow you to override and add additional registration keys.
  • new config options: regex verifies 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 abstractmethod decorator to reduce confusion; user will have to explicitly import it from abc import abstractmethod

- Python
Published by BrianPugh almost 4 years ago

https://github.com/brianpugh/autoregistry -

- 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"
  • 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 Registry constructor.

- Python
Published by BrianPugh almost 4 years ago

https://github.com/brianpugh/autoregistry -

Bugfixes

  • Fixed crash when passing configuration parameters directly into Registry object.

- 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 clear method to clear our a Registry.

Bugfixes

  • RegistryDecorator no longer registered in Registry.

- Python
Published by BrianPugh almost 4 years ago

https://github.com/brianpugh/autoregistry - Initial Release

- Python
Published by BrianPugh almost 4 years ago