objectory
A light library for general purpose object factories
Decision gist · record as of 2026-08-14
Yes, if you need dynamic object instantiation and can tolerate beta-stage API changes. The low install friction, active maintenance, permissive license, and absence of dependencies make it a reasonable choice for configuration-driven architectures. However, pin your version carefully and review release notes before upgrading, since API stability is explicitly not guaranteed.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python >=3.10; API stability not guaranteed between releases during beta development.
- Low friction installation with no runtime dependencies.
- Actively maintained with recent releases; however, the package is in beta stage and explicitly warns that API stability is not guaranteed between releases.
License · maintenance · safety
BSD-3-Clause (permissive) — BSD-3-Clause is permissive and imposes minimal restrictions on use, modification, and distribution in both open-source and proprietary contexts.
last release 2025-12-19 (238 days) · last repo commit 2026-08-12
0 known vulnerabilities (OSV.dev, 2026-08-14) · 626,964 downloads/mo, #5,683 on PyPI
Alternatives
Verify before relying
pip install objectory
from objectory import factory
obj = factory("builtins.list", [4, 2])
print(obj) # [4, 2]- Whether the package's registry and abstract factory approaches scale well with large numbers of registered classes.
- Performance characteristics when instantiating objects with complex nested configurations.
What it is and what it does
objectory is a lightweight Python library that implements factory patterns for dynamic object instantiation. It provides three main approaches: a general-purpose factory function that can instantiate any Python class by name, an abstract factory metaclass for inheritance-based registration, and a standalone registry for explicit class registration. The library is designed to decouple object creation from usage, allowing objects to be instantiated from configuration dictionaries without hardcoding class references.
The package has no runtime dependencies and installs cleanly on modern Python versions (3.10 through 3.14). It is actively maintained but remains in beta, meaning the API may change between releases. It is suitable for scenarios where you need flexible, configuration-driven object instantiation—particularly useful in machine learning pipelines, plugin systems, or any architecture where object types are determined at runtime rather than compile time.
Use it for
- Building plugin systems where user-provided or configuration-specified classes are instantiated dynamically without modifying core code.
- Machine learning experiment frameworks where model, optimizer, and loss function classes are selected and instantiated from configuration files.
- Dependency injection containers where object graphs are built from declarative configuration rather than imperative setup.
- Testing frameworks that need to instantiate mock or fixture objects by class name from test specifications.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need dynamic object instantiation and can tolerate beta-stage API changes.
The low install friction, active maintenance, permissive license, and absence of dependencies make it a reasonable choice for configuration-driven architectures. However, pin your version carefully and review release notes before upgrading, since API stability is explicitly not guaranteed.
Install
objectory on PyPI
Before you install
Low friction installation with no runtime dependencies. Actively maintained with recent releases; however, the package is in beta stage and explicitly warns that API stability is not guaranteed between releases.
Requires Python >=3.10; API stability not guaranteed between releases during beta development.
License in practice
BSD-3-Clause is permissive and imposes minimal restrictions on use, modification, and distribution in both open-source and proprietary contexts.
Quickstart
pip install objectory
from objectory import factory
obj = factory("builtins.list", [4, 2])
print(obj) # [4, 2]
Verify before relying
- Whether the package's registry and abstract factory approaches scale well with large numbers of registered classes.
- Performance characteristics when instantiating objects with complex nested configurations.
Package facts
| License | BSD-3-Clause permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 238 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 626,964 / month, #5,683 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaIntended Audience :: DevelopersIntended Audience :: Information TechnologyIntended Audience :: Science/ResearchLicense :: OSI Approved :: BSD LicenseOperating System :: POSIX :: LinuxProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Scientific/EngineeringTopic :: Software Development :: Libraries |
Evidence: objectory-0.3.1-py3-none-any.whl
Tags
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 › “object factory pattern”
- objectoryProvides dynamic object factory implementations using abstract…
- phx-class-registryImplements the Registry and Factory patterns to create configurable…
- pytest-factoryboyIntegrates factory_boy with pytest to register factories as fixtures,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Libraries packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Provides parsing, arithmetic, and recurrence rule computation for dates and times, with timezone support and iCalendar RFC compliance.
Install it if you need to parse flexible date strings, compute relative dates, handle timezones, or work with recurrence rules—it's the de facto choice for these tasks.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.
See also phx-class-registry · factory-boy · class-resolver · pyjon.utils · pytest-factoryboy · lance-namespace · makefun · methoddispatch · objsize · py-automapper