$npx skillfedfor your agent

phx-class-registry

Factory+Registry pattern for Python classes

Worth itPyPI Python ModulesReleased May 2026145.9K downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — phx_class_registry-5.2.2-py3-none-any.whl
v5.2.2 · released 2026-05-12 · Python >=3.12

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.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.12 or later.
  • Low install friction with no runtime dependencies.
  • Active maintenance with a recent release 94 days ago and ongoing repository activity.

License · maintenance · safety

MIT (permissive) — MIT license permits unrestricted use, modification, and distribution with minimal restrictions—suitable for both open-source and proprietary projects.

last release 2026-05-12 (94 days) · last repo commit 2026-08-14 · 57 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 145,901 downloads/mo, #11,114 on PyPI

Verify before relying

pip install phx-class-registry

from phx_class_registry import ClassRegistry

pokedex = ClassRegistry()

@pokedex.register('fire')
class Charizard:
    pass

fighter = pokedex['fire']
  • Whether the package supports type hints for registry instances in practice across all supported Python versions.
  • Performance characteristics when registries contain hundreds or thousands of registered classes.
  • Exact behavior and compatibility of entry_points integration with modern setuptools versions.
Same gist for agents: .md · .json

What it is and 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.

The 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.

Use it for

  • 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.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

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.

Install

phx-class-registry on PyPI

Before you install

Low install friction with no runtime dependencies. Active maintenance with a recent release 94 days ago and ongoing repository activity. Requires Python 3.12 or later.

Requires Python 3.12 or later.

License in practice

MIT license permits unrestricted use, modification, and distribution with minimal restrictions—suitable for both open-source and proprietary projects.

Quickstart

pip install phx-class-registry

from phx_class_registry import ClassRegistry

pokedex = ClassRegistry()

@pokedex.register('fire')
class Charizard:
    pass

fighter = pokedex['fire']

Verify before relying

  • Whether the package supports type hints for registry instances in practice across all supported Python versions.
  • Performance characteristics when registries contain hundreds or thousands of registered classes.
  • Exact behavior and compatibility of entry_points integration with modern setuptools versions.

Package facts

LicenseMIT permissive
Python supportSupports the current Python release >=3.12
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceActively maintained 94 days since the last release
Last repo commit
First released
Downloads145,901 / month, #11,114 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableIntended Audience :: DevelopersTopic :: Software Development :: Libraries :: Python Modules

Evidence: phx_class_registry-5.2.2-py3-none-any.whl

Tags

Capabilities
registry pattern pythonfactory pattern implementationclass registry decoratordynamic class instantiationservice registry patternplugin registry systementry points integration
Topics
design-patternsplugin-systemfactory-pattern
PyPI keywords
design patternfactory patternregistry patternservice registry

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “registry pattern python”

  • phx-class-registryImplements the Registry and Factory patterns to create configurable…
  • persisting-theoryPersisting-theory provides a registry system for automatically…
  • class-resolverDynamically lookup and instantiate classes by string name, class…

Give your agent the search over MCP, or paste the wish link into any chat.

More Python Modules packages

idna Worth it
PyPI · Python Modules · released Jun 2026

Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.

Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.

MITpure Python · 3.10+
1.6Bdownloads / mo
PyYAML Worth it
PyPI · Python Modules · released Sep 2025

PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.

MITcompiled wheel · 3.8+
1.2Bdownloads / mo
pydantic Worth it
PyPI · Python Modules · released May 2026

Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.

MITpure Python · 3.9+
1.1Bdownloads / mo
annotated-types Worth it
PyPI · Python Modules · released Jul 2026

Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.

Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…

MITpure Python · 3.10+
871.3Mdownloads / mo
typing-inspection Worth it
PyPI · Python Modules · released Aug 2026

Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.

MITpure Python · 3.10+
783.0Mdownloads / mo

See also catalogue · objectory · persisting-theory · stevedore · pytest-factoryboy · lance-namespace · zope.component · keyrings.google-artifactregistry-auth · dataclass-factory · class-resolver