dependency-injection
CommunityExplicit DI for reliable, testable services.
Software Engineering#testing#python#software-architecture#dependency-injection#constructor#design-pattern
Authorgestrich
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Dependency injection reduces hidden coupling by requiring explicit dependencies at construction and ensuring a clear configuration flow from entry points to services.
Core Features & Use Cases
- Explicit constructor-based dependencies to avoid hidden defaults.
- Fail-fast configuration: invalid/missing dependencies raise immediately.
- Clear separation of concerns between wiring/initialization and business logic.
- Testability: easy to supply mocks for unit tests.
Quick Start
Create a service with required collaborators and wire them in the application entry point. For example, instantiate Repository and MetadataService and pass them to the service constructor in the composition root.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: dependency-injection Download link: https://github.com/gestrich/python-architecture/archive/main.zip#dependency-injection Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.