Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
diwire: type-driven dependency injection for Python
diwire: type-driven dependency injection for Python
v0.0.0 GitHub

Learn

  • Why diwire
  • Tutorial (runnable examples)
    • Basics
    • Scopes
    • Function injection
    • Components
    • Patterns
    • Async
    • FastAPI
    • Errors
  • Core concepts
    • Container
    • Registration
    • Lifetimes
    • Scopes & cleanup
    • Function injection
    • Named components
    • Open generics
    • Async
    • container_context
    • Compilation
    • Errors & debugging
    • Integrations
  • How-to guides
    • Web frameworks
      • FastAPI
      • Starlette (and other ASGI frameworks)
      • Flask (WSGI)
      • Django
    • Testing
      • Overrides
      • pytest
    • Patterns
      • Request scope
      • Unit of work
      • Resources (cleanup)
      • Interfaces (Protocol/ABC)
      • Handler classes (methods)
    • Advanced
      • Auto-registration tuning
      • Performance
      • Concurrency
  • API reference
    • Container
    • Scopes
    • container_context
    • Types
    • Exceptions
Back to top
View this page
Edit this page

PatternsΒΆ

These pages describe patterns you can apply across frameworks and architectures.

  • Request scope
  • Unit of work
  • Resources (cleanup)
  • Interfaces (Protocol/ABC)
  • Handler classes (methods)
Next
Request scope
Previous
pytest
Copyright ©
Made with Sphinx and @pradyunsg's Furo