ContainersΒΆ
Containers are collections of the providers.
There are several use cases how you can use containers:
Keeping all the providers in a single container (most common).
Grouping of the providers from the same architectural layer (for example,
Services,ModelsandFormscontainers).Grouping of providers from the same functional groups (for example, container
Users, that contains all functional parts of theuserspackage).
Containers module API docs - dependency_injector.containers.