Examples

Real-world usage patterns and integration examples.

Armature Web Framework

Integrate dependency-injector with Armature, a modern Rust HTTP framework with Angular/NestJS-style decorators and built-in dependency injection.

Testing with Mocks

Use scoped containers to replace real services with mocks during testing.

Multi-Tenant Applications

Create isolated scopes for each tenant while sharing common services.

More Examples

Find more examples in the GitHub repository:

Have an example to share?

We welcome contributions! Open a PR with your example in the GitHub repository.