pinject
A pythonic dependency injection library
Decision gist · record as of 2026-08-14
No. While Pinject is a well-designed, low-friction dependency injection library with permissive licensing and no known vulnerabilities, the project is archived and unmaintained since 2021. For new projects, use an actively maintained alternative like dependency-injector or injector. For existing codebases already using Pinject, it remains functional but will not receive bug fixes or security updates.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low friction installation with only two lightweight runtime dependencies (six and decorator).
- However, the project is archived and has not been updated since 2019, with the last commit in March 2021, so it receives no active maintenance.
License · maintenance · safety
Apache License 2.0 (permissive) — Licensed under Apache License 2.0 (permissive), allowing use in commercial and private projects with minimal restrictions, though you should include a copy of the license and note any modifications.
last release 2019-05-25 (2638 days) · last repo commit 2021-03-23 · 1,342 stars · archived
0 known vulnerabilities (OSV.dev, 2026-08-14) · 125,167 downloads/mo, #11,834 on PyPI
Alternatives
Verify before relying
pip install pinject
import pinject
class InnerClass:
def __init__(self):
self.value = 42
class OuterClass:
def __init__(self, inner_class):
self.inner_class = inner_class
obj_graph = pinject.new_object_graph()
outer = obj_graph.provide(OuterClass)
print(outer.inner_class.value)- Whether the package works reliably with modern Python versions (3.9+) given its age and lack of maintenance
- Compatibility with current versions of runtime dependencies six and decorator
- Whether the archived repository will accept bug reports or security fixes
What it is and what it does
Pinject is a dependency injection library designed to make object graph assembly straightforward and pythonic. It automatically creates bindings between constructor argument names and class names by following PEP8 conventions—converting CamelCase class names to snake_case argument names—so you can instantiate complex object hierarchies with a single call to new_object_graph() and provide(), without decorators or explicit configuration.
The library depends on six and decorator for compatibility and function wrapping. It includes convenience decorators like @copy_args_to_internal_fields to reduce boilerplate in __init__ methods. However, the project has been archived since 2021 and receives no active maintenance, so it is no longer under active development or receiving updates.
Use it for
- Assemble complex object graphs in application startup without writing factory methods or configuration code
- Build modular Python applications where components are automatically wired based on constructor signatures
- Reduce boilerplate in __init__ methods using @copy_args_to_internal_fields for classes with many dependencies
- Prototype or develop applications where implicit binding conventions match your code structure
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
No.
While Pinject is a well-designed, low-friction dependency injection library with permissive licensing and no known vulnerabilities, the project is archived and unmaintained since 2021. For new projects, use an actively maintained alternative like dependency-injector or injector. For existing codebases already using Pinject, it remains functional but will not receive bug fixes or security updates.
Install
pinject on PyPI
Before you install
Low friction installation with only two lightweight runtime dependencies (six and decorator). However, the project is archived and has not been updated since 2019, with the last commit in March 2021, so it receives no active maintenance.
License in practice
Licensed under Apache License 2.0 (permissive), allowing use in commercial and private projects with minimal restrictions, though you should include a copy of the license and note any modifications.
Quickstart
pip install pinject
import pinject
class InnerClass:
def __init__(self):
self.value = 42
class OuterClass:
def __init__(self, inner_class):
self.inner_class = inner_class
obj_graph = pinject.new_object_graph()
outer = obj_graph.provide(OuterClass)
print(outer.inner_class.value)
Verify before relying
- Whether the package works reliably with modern Python versions (3.9+) given its age and lack of maintenance
- Compatibility with current versions of runtime dependencies six and decorator
- Whether the archived repository will accept bug reports or security fixes
Package facts
| License | Apache License 2.0 permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagessixdecorator |
| Maintenance | Abandoned 2,638 days since the last release |
| Last repo commit | repository archived |
| First released | |
| Downloads | 125,167 / month, #11,834 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
Evidence: pinject-0.14.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 graph assembly”
- pinjectPinject is a dependency injection library that automatically…
- refgenconfManages standardized configuration for reference genome assemblies,…
- odc-loaderConstructs xarray objects from parsed geospatial metadata, enabling…
Give your agent the search over MCP, or paste the wish link into any chat.
More Application Frameworks packages
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
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.
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.
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.
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.
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.
See also injector · inject · slack · in-n-out · dependency-injector · objectgraph · kink · wireup · dependencies · simple-di