$npx skillfedfor your agent

pinject

A pythonic dependency injection library

SkipPyPI Application FrameworksReleased May 2019125.2K downloads / moApache License 2.0Pure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — pinject-0.14.1-py3-none-any.whl
v0.14.1 · released 2019-05-25 · 2 runtime deps: six, decorator

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

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
Same gist for agents: .md · .json

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.

Skip

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

LicenseApache License 2.0 permissive
Python supportNot specified
Install frictionLow. Pure-Python wheel
Runtime dependencies
2 packages
sixdecorator
MaintenanceAbandoned 2,638 days since the last release
Last repo commit repository archived
First released
Downloads125,167 / month, #11,834 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14

Evidence: pinject-0.14.1-py3-none-any.whl

Tags

Capabilities
dependency injection pythonobject graph assemblyautomatic dependency resolutionpythonic DI frameworkconstructor injection libraryimplicit binding injectionobject instantiation framework
Topics
dependency-injectionarchived

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 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 injector · inject · slack · in-n-out · dependency-injector · objectgraph · kink · wireup · dependencies · simple-di