dependencies
Constructor injection designed with OOP in mind.
What it is and what it does
The dependencies package provides a framework for constructor injection—a pattern where an object's dependencies are declared upfront and resolved automatically rather than instantiated inside the object itself. This is useful in object-oriented code where you want to decouple object creation from object use, making code more testable and flexible. The package lets you define dependency graphs declaratively and have them wired together at instantiation time.
However, the package is no longer actively maintained. The maintainer's own published description explicitly states 'Do not use this package' and directs users to an alternative instead. This is a strong signal that the package has known limitations or has been superseded. While it carries no security vulnerabilities and installs with zero dependencies, its dormant status and the maintainer's own recommendation make it a poor choice for new projects.
Use it for:
- Building testable OOP applications where you need to inject mock dependencies during unit testing.
- Decoupling object creation logic from business logic in larger codebases.
- Defining reusable service containers that wire up complex object graphs automatically.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Implements constructor injection for dependency management in object-oriented Python code, allowing you to declare and resolve object dependencies declaratively.
No. The package is dormant (628 days since last release) and the maintainer explicitly recommends against using it. While it has no security issues and installs easily, the maintainer's own guidance is a decisive signal to choose an alternative instead.
Install
dependencies on PyPI
pip
pip install dependenciesuv
uv add dependenciespoetry
poetry add dependenciesInstalling dependencies
Before you install
Low install friction with no runtime dependencies. However, the package is dormant—last release was 628 days ago—and the maintainer's own documentation explicitly recommends against using it.
License in practice
BSD-2-Clause is permissive and poses no restrictions on commercial or private use, modification, or redistribution.
Quickstart
pip install dependencies
from dependencies import Injector
class MyInjector(Injector):
pass
injector = MyInjector()
Verify before relying
- Whether the package still works correctly with Python 3.10–3.13 despite dormant maintenance status.
- What specific limitations or issues prompted the maintainer's recommendation to use an alternative instead.
Package facts
| License | BSD-2-Clause (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | dormant — 628 days since the last release |
| First released | |
| Downloads | 111,273/month — #12,423 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: dependencies-7.7.1-py2.py3-none-any.whl
Tags
More Application Frameworks packages
FastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
textualTextual is a Python framework for building…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
mcpBuild and connect to Model Context Protocol…
permissive · top 1,000 on PyPI
WerkzeugWerkzeug is a WSGI utility library providing…
permissive · top 1,000 on PyPI
svcssvcs is a dependency container that registers…
permissive · top 5,000 on PyPI
injectorInjector is a Python dependency injection…
permissive · top 5,000 on PyPI
dependency-injectorDependency Injector is a dependency injection…
permissive · top 5,000 on PyPI
picoboxPicobox is a lightweight dependency injection…
permissive · top 15,000 on PyPI
kinkKink is a lightweight dependency injection…
permissive · top 15,000 on PyPI
punqPunq is a dependency injection container for…
unclear · top 15,000 on PyPI
rodiRodi is a dependency injection container for…
permissive · top 15,000 on PyPI
simple-diA strictly typed dependency injection library…
permissive · top 15,000 on PyPI
slackA dependency injection container that registers…
permissive · top 15,000 on PyPI
fastapi-injectorIntegrates the injector dependency-injection…
permissive · top 15,000 on PyPI