mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-11-26 11:33:58 +03:00
29 lines
792 B
ReStructuredText
29 lines
792 B
ReStructuredText
Catalogs
|
|
========
|
|
|
|
Catalogs are collections of providers. Main purpose of catalogs is to group
|
|
providers.
|
|
|
|
There are, actually, several popular cases of catalogs usage:
|
|
|
|
- Grouping of providers from the same architectural layer (for example,
|
|
``Services``, ``Models`` and ``Forms`` catalogs).
|
|
- Grouping of providers from the same functional groups (for example,
|
|
catalog ``Users``, that contains all functional parts of ``Users``
|
|
component).
|
|
|
|
Also, for both of these and some other cases, it might be useful to attach
|
|
some init / shutdown functionality or something else, that deals with group
|
|
of providers.
|
|
|
|
Catalogs module API docs - :py:mod:`dependency_injector.catalogs`.
|
|
|
|
.. toctree::
|
|
:maxdepth: 2
|
|
|
|
declarative
|
|
dynamic
|
|
bundles
|
|
specialization
|
|
overriding
|