python-dependency-injector/docs/containers/index.rst

24 lines
645 B
ReStructuredText
Raw Normal View History

2020-08-14 23:27:17 +03:00
Containers
==========
2020-08-14 23:27:17 +03:00
Containers are collections of the providers.
2020-08-14 23:27:17 +03:00
There are several use cases how you can use containers:
2020-08-14 23:27:17 +03:00
+ Keeping all the providers in a single container (most common).
+ Grouping of the providers from the same architectural layer (for example,
``Services``, ``Models`` and ``Forms`` containers).
+ Grouping of providers from the same functional groups (for example,
2020-08-14 23:27:17 +03:00
container ``Users``, that contains all functional parts of the ``users``
package).
Containers module API docs - :py:mod:`dependency_injector.containers`.
.. toctree::
:maxdepth: 2
declarative
dynamic
specialization
overriding