mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-11-23 01:56:58 +03:00
2513d1f600
* Add Selector provider * Add Selector provider example * Add tests for selector provider * Update changelog * Add pydocstyle ignore D101 for examples * Fix repr() test * Update changelog * Add D203,D213 to examples pydocstyle ignore * Add selector provider docs
31 lines
721 B
ReStructuredText
31 lines
721 B
ReStructuredText
Providers
|
|
=========
|
|
|
|
Providers are strategies of accessing objects. They define how particular
|
|
objects are provided.
|
|
|
|
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
|
|
of custom providers.
|
|
|
|
Providers package API docs - :py:mod:`dependency_injector.providers`
|
|
|
|
.. toctree::
|
|
:maxdepth: 2
|
|
|
|
factory
|
|
singleton
|
|
callable
|
|
coroutine
|
|
object
|
|
list
|
|
configuration
|
|
selector
|
|
dependency
|
|
overriding
|
|
custom
|