{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/18"}],"enrichment":{"capability":"Implements the Registry and Factory patterns to create configurable class registries that map keys to class constructors, with optional integration into setuptools entry points for third-party extensibility.","skillfed_tags":["design-patterns","plugin-system","factory-pattern"],"use_cases":["Build a plugin system where third-party packages register handlers via entry points.","Create a service registry that maps service names to their implementation classes.","Implement a factory for different data processor classes selected by file type or format.","Define a registry of database drivers or connection strategies keyed by database name.","Build a command dispatcher that maps command strings to handler classes.","Create a polymorphic object instantiation system for configuration-driven class selection."],"what_it_does":"phx-class-registry provides a lightweight implementation of the Registry and Factory design patterns for Python. It lets you create a registry object, decorate classes to register them under string keys, and then instantiate those classes by key lookup. The pattern is useful for plugin systems, service locators, and any scenario where you need to dynamically select and instantiate classes at runtime based on configuration or user input.\n\nThe package supports advanced features including passing constructor arguments, automatic registration of non-abstract classes, and integration with setuptools entry points to allow third-party libraries to extend your registries. With zero runtime dependencies and active maintenance, it's a straightforward tool for implementing these patterns without external complexity.","worth_installing":"Yes. The package is actively maintained, has zero security vulnerabilities, imposes no dependency overhead, and cleanly solves a common architectural problem. It is worth installing if you need to implement registry or factory patterns in your application. The MIT license removes any legal friction. The only constraint is the Python 3.12 or later requirement."},"id":"phx-class-registry","links":{"html":"https://skillfed.io/packages/phx-class-registry","md":"https://skillfed.io/packages/phx-class-registry.md","pypi":"https://pypi.org/project/phx-class-registry/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-05-12","license_spdx":"MIT","license_treatment":"permissive","name":"phx-class-registry","python_support":"supports_current","summary":"Factory+Registry pattern for Python classes"},"popularity":{"monthly_downloads":145901,"position":11114,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"5.2.2"}
