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

26 lines
703 B
ReStructuredText
Raw Normal View History

2015-05-08 18:44:44 +03:00
Catalogs
========
2015-07-28 09:46:35 +03:00
2015-08-04 17:05:34 +03:00
Catalogs are collections of providers. Main purpose of catalogs is to group
providers.
2015-09-02 12:23:18 +03:00
There are, actually, several popular cases of catalogs usage:
2015-08-04 17:05:34 +03:00
2015-09-02 12:23:18 +03:00
- Grouping of providers from the same architectural layer (for example,
2015-08-04 17:05:34 +03:00
``Services``, ``Models`` and ``Forms`` catalogs).
2015-09-02 12:23:18 +03:00
- Grouping of providers from the same functional groups (for example,
2015-08-04 17:05:34 +03:00
catalog ``Users``, that contains all functional parts of ``Users``
component).
2015-09-02 12:23:18 +03:00
Also, for both of these and some other cases, it might be useful to attach
2015-08-05 16:44:00 +03:00
some init / shutdown functionality or something else, that deals with group
of providers.
2015-10-11 15:34:21 +03:00
.. toctree::
:maxdepth: 2
2015-07-28 09:46:35 +03:00
2015-10-11 15:34:21 +03:00
writing
operating
subsets
overriding