mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-07-05 21:03:14 +03:00
Update index page
This commit is contained in:
parent
f83d8ce143
commit
7bdf57da9c
|
@ -3,16 +3,16 @@
|
|||
Providers
|
||||
=========
|
||||
|
||||
Providers are strategies of accessing objects. They define how particular
|
||||
objects are provided.
|
||||
Providers help you to define how objects are created. They manage objects lifetime and their
|
||||
dependencies.
|
||||
|
||||
Every provider is callable (implements ``__call__()``). Every call to provider
|
||||
instance returns provided result, according to the providing strategy of
|
||||
particular provider.
|
||||
Each provider is a callable. You call the provider like a function when you need to create an
|
||||
object or call a function. Provider calls all dependent providers to retrieve the dependencies
|
||||
and injects them.
|
||||
|
||||
Current documentation section consists from description of standard providers
|
||||
library and some useful information like overriding of providers and writing
|
||||
of custom providers.
|
||||
Any of the providers can be overridden by another provider. When provider is overridden it calls
|
||||
to the overriding provider. This helps in testing or overriding API clients with stubs for dev or
|
||||
stage environment.
|
||||
|
||||
Providers package API docs - :py:mod:`dependency_injector.providers`
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user