Skip to content

modern-python/modern-di

Repository files navigation

"Modern-DI"

Project Badges
common MyPy Strict GitHub stars
modern-di Supported versions downloads
modern-di-fastapi Supported versions downloads
modern-di-litestar Supported versions downloads

Dependency injection framework for Python inspired by dependency-injector and dishka.

It is in development state yet and gives you the following:

  • DI framework with IOC-container and scopes.
  • Async and sync resolving.
  • Python 3.10-3.13 support.
  • Full coverage by types annotations (mypy in strict mode).
  • Overriding dependencies for tests.
  • Package with zero dependencies.
  • Integration with FastAPI and LiteStar
  • Thread-safe and asyncio concurrency safe providers

📚 Documentation