2015-06-10 06:53:15 +00:00
|
|
|
Providers
|
|
|
|
=========
|
|
|
|
|
2016-06-08 13:39:53 +00:00
|
|
|
Providers are strategies of accessing objects. They define how particular
|
2015-07-27 22:31:19 +00:00
|
|
|
objects are provided.
|
2015-06-10 06:53:15 +00:00
|
|
|
|
2015-07-27 22:31:19 +00:00
|
|
|
Every provider is callable (implements ``__call__()``). Every call to provider
|
|
|
|
instance returns provided result, according to the providing strategy of
|
|
|
|
particular provider.
|
|
|
|
|
|
|
|
Current documentation section consists from description of standard providers
|
|
|
|
library and some useful information like overriding of providers and writing
|
2015-11-23 17:09:21 +00:00
|
|
|
of custom providers.
|
2015-06-10 06:53:15 +00:00
|
|
|
|
2016-11-11 15:05:25 +00:00
|
|
|
Providers package API docs - :py:mod:`dependency_injector.providers`
|
2016-06-08 22:43:25 +00:00
|
|
|
|
2015-06-10 06:53:15 +00:00
|
|
|
.. toctree::
|
|
|
|
:maxdepth: 2
|
|
|
|
|
2015-06-16 07:37:57 +00:00
|
|
|
factory
|
|
|
|
singleton
|
2015-07-15 21:48:30 +00:00
|
|
|
callable
|
2018-10-18 16:39:19 +00:00
|
|
|
coroutine
|
2016-06-09 14:49:09 +00:00
|
|
|
object
|
2020-06-14 21:32:12 +00:00
|
|
|
list
|
2020-06-25 21:12:16 +00:00
|
|
|
configuration
|
2017-12-21 20:54:44 +00:00
|
|
|
dependency
|
2015-07-21 06:57:13 +00:00
|
|
|
overriding
|
2015-07-27 22:31:19 +00:00
|
|
|
custom
|