$npx skillfedfor your agent

class-resolver

Lookup and instantiate classes with style.

Worth itPyPI Application FrameworksReleased Aug 202589.8K downloads / mopermissive licensePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — class_resolver-0.7.1-py3-none-any.whl
v0.7.1 · released 2025-08-28 · Python >=3.10 · 1 runtime deps: typing-extensions

Yes. The package is actively maintained, has no known vulnerabilities, minimal dependencies, and solves a genuine pain point in extensible system design. It's particularly valuable if you're building configurable ML models, plugin architectures, or any system where users need to specify classes via strings. The low install friction and permissive license make adoption straightforward.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.10 or later
  • Low friction: pure Python wheel with only typing-extensions as a runtime dependency.
  • Active maintenance with latest release on 2025-08-28.

License · maintenance · safety

permissive license (permissive) — MIT license (permissive) means you can use, modify, and distribute this package freely in commercial or private projects with minimal restrictions.

last release 2025-08-28 (351 days) · last repo commit 2026-04-13 · 68 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 89,789 downloads/mo, #13,635 on PyPI

Verify before relying

from class_resolver import ClassResolver

class Base: pass
class A(Base): pass
class B(Base): pass

resolver = ClassResolver([A, B], base=Base)
assert A == resolver.lookup('A')
assert A(name='hi') == resolver.make('A', {'name': 'hi'})
  • Whether the package handles circular imports or late-binding class registration patterns
  • Performance characteristics when resolving from large class registries
  • Whether contrib.torch module requires PyTorch to be installed or is optional
Same gist for agents: .md · .json

What it is and what it does

class-resolver provides a ClassResolver object that maintains a registry of classes and resolves them by string name, class reference, or pre-instantiated object. It accepts flexible input formats (lowercase strings, stylized names, class objects, or instances) and instantiates them with optional constructor arguments. The package is designed to eliminate boilerplate dictionary-based class lookup patterns and hard-coded conditional logic, making it especially useful for building extensible machine learning models and plugin systems where users need to specify components via configuration strings.

The core use case is replacing manual if-elif chains or static lookup dictionaries with a declarative registry that handles case-insensitive string matching, class validation against a base type, and optional default instantiation. It includes contrib modules for common frameworks, reducing repetitive setup code across projects that need flexible component selection.

Use it for

  • Build extensible neural network architectures where activation functions are selected by string configuration.
  • Create plugin systems where users register custom classes and reference them by name in config files.
  • Integrate with hyperparameter optimization libraries that require serializable string representations of class choices.
  • Reduce boilerplate in factory patterns by replacing manual class-to-string mappings with automatic registry-based lookup.
  • Support both programmatic (class/instance) and declarative (string) class selection in the same API.

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 no known vulnerabilities, minimal dependencies, and solves a genuine pain point in extensible system design. It's particularly valuable if you're building configurable ML models, plugin architectures, or any system where users need to specify classes via strings. The low install friction and permissive license make adoption straightforward.

Install

class-resolver on PyPI

Before you install

Low friction: pure Python wheel with only typing-extensions as a runtime dependency. Active maintenance with latest release on 2025-08-28.

Requires Python 3.10 or later

License in practice

MIT license (permissive) means you can use, modify, and distribute this package freely in commercial or private projects with minimal restrictions.

Quickstart

from class_resolver import ClassResolver

class Base: pass
class A(Base): pass
class B(Base): pass

resolver = ClassResolver([A, B], base=Base)
assert A == resolver.lookup('A')
assert A(name='hi') == resolver.make('A', {'name': 'hi'})

Verify before relying

  • Whether the package handles circular imports or late-binding class registration patterns
  • Performance characteristics when resolving from large class registries
  • Whether contrib.torch module requires PyTorch to be installed or is optional

Package facts

Licensepermissive license permissive
Python supportSupports the current Python release >=3.10
Install frictionLow. Pure-Python wheel
Runtime dependencies
1 package
typing-extensions
MaintenanceActively maintained 351 days since the last release
Last repo commit
First released
Downloads89,789 / month, #13,635 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableEnvironment :: ConsoleFramework :: PytestFramework :: SphinxFramework :: toxIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Typing :: Typed

Evidence: class_resolver-0.7.1-py3-none-any.whl

Tags

Capabilities
class lookup by namedynamic class instantiationplugin registry patternclass resolver factorystring to class mappingflexible class instantiation
Topics
factory-patternplugin-registryconfiguration
PyPI keywords
snekpackcookiecutterdevelopment toolconfigurability

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 › “class lookup by name”

  • class-resolverDynamically lookup and instantiate classes by string name, class…
  • zope.dottednameConverts dotted name strings (like 'package.module.Class') into the…
  • particleProvides a pythonic interface to Particle Data Group particle…

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

More Application Frameworks packages

fastapi Worth it
PyPI · Software Development · released Jul 2026

FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.

MITpure Python · 3.10+
568.6Mdownloads / mo
annotated-doc With conditions
PyPI · Software Development · released Jul 2026

Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.

MITpure Python · 3.9+
456.2Mdownloads / mo
textual Worth it
PyPI · Application Frameworks · released Jun 2026

Textual is a Python framework for building cross-platform user interfaces that run in the terminal or web browser using a modern, component-based API.

Install it if you're developing CLI tools, dashboards, or interactive terminal applications.

MITpure Python
443.6Mdownloads / mo
typer Worth it
PyPI · Software Development · released Aug 2026

Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.

Install it if you are building CLIs in Python.

MITpure Python · 3.10+
369.3Mdownloads / mo
mcp Worth it
PyPI · Application Frameworks · released Jul 2026

Build and connect to Model Context Protocol servers that expose tools, resources, and prompts to LLM applications over stdio, HTTP, or SSE transports.

Install it if you need to build or connect to servers.

MITpure Python · 3.10+
319.3Mdownloads / mo
Werkzeug Worth it
PyPI · Application Frameworks · released Apr 2026

Werkzeug is a WSGI utility library providing request/response objects, URL routing, an interactive debugger, HTTP utilities, and a development server for building web applications.

BSD-3-Clausepure Python · 3.9+
268.1Mdownloads / mo

See also dacite · dataclass-factory · objectory · nslookup · bioversions · curies · phx-class-registry · argparse-dataclass · resolvelib · polyfactory