ExamplesΒΆ

Explore the examples to see the Dependency Injector in action.

  • Application example (single container)
    • Application structure
    • Container
    • Main module
    • Services
    • Configuration
    • Run the application
  • Application example (multiple containers)
    • Application structure
    • Containers
    • Main module
    • Services
    • Configuration
    • Run the application
  • Decoupled packages example (multiple containers)
    • Application structure
    • Package containers
    • Application container
    • Main module
    • Configuration
    • Run the application
  • Boto3 example
  • Django example
    • Application structure
    • Container
    • Views
    • App config
    • Tests
    • Sources
  • Flask example
    • Application structure
    • Container
    • Views
    • Application factory
    • Tests
    • Sources
  • Flask blueprints example
    • Application structure
    • Container
    • Blueprints
    • Application factory
    • Tests
    • Sources
  • Aiohttp example
    • Application structure
    • Container
    • Handlers
    • Application factory
    • Tests
    • Sources
  • Sanic example
    • Application structure
    • Container
    • Handlers
    • Application factory
    • Tests
    • Sources
  • FastAPI example
    • Application structure
    • Container
    • Endpoints
    • Application factory
    • Tests
    • Sources
  • FastAPI + Redis example
    • Application structure
    • Redis
    • Service
    • Container
    • Application
    • Tests
    • Sources
  • FastAPI + SQLAlchemy example
    • Application structure
    • Application factory
    • Endpoints
    • Container
    • Services
    • Repositories
    • Models
    • Database
    • Tests
    • Sources

Logo

Dependency injection framework for Python by Roman Mogylatov

Navigation

  • Introduction
  • Examples
    • Application example (single container)
    • Application example (multiple containers)
    • Decoupled packages example (multiple containers)
    • Boto3 example
    • Django example
    • Flask example
    • Flask blueprints example
    • Aiohttp example
    • Sanic example
    • FastAPI example
    • FastAPI + Redis example
    • FastAPI + SQLAlchemy example
  • Tutorials
  • Providers
  • Containers
  • Wiring
  • Other examples
  • API Documentation
  • Feedback
  • Changelog

Related Topics

  • Documentation overview
    • Previous: Installation
    • Next: Application example (single container)

Donate/support

Donate

©2024, Roman Mogylatov. | Powered by Sphinx 8.2.1 & Alabaster 1.0.0 | Page source
Fork me on GitHub