mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-02-07 07:00:49 +03:00
Update introduction docs for 2.0
This commit is contained in:
parent
5db20f0027
commit
88b563269d
|
@ -24,7 +24,7 @@ of Python objects and their dependencies in formal, pretty way.
|
|||
*Dependency Injector* framework could be used in different application types:
|
||||
|
||||
+ Web applications based on Flask, Django or any other web framework.
|
||||
+ Asyncronous applications based on asyncio, Tornado and Twisted.
|
||||
+ Asynchronous applications based on asyncio, Tornado and Twisted.
|
||||
+ Standalone frameworks and libraries.
|
||||
+ GUI applications.
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ interaction between each other.
|
|||
:width: 100%
|
||||
:align: center
|
||||
|
||||
There are 3 main entities: providers, containers.
|
||||
There are 2 main entities: providers & containers.
|
||||
|
||||
Providers
|
||||
~~~~~~~~~
|
||||
|
@ -24,9 +24,7 @@ Providers are strategies of accessing objects. For example,
|
|||
:py:class:`dependency_injector.providers.Factory` creates new instance
|
||||
of provided class every time it is called.
|
||||
:py:class:`dependency_injector.providers.Singleton` creates provided
|
||||
instance once and returns it on every next call. Providers could be
|
||||
injected into each other. Providers could be overridden by another
|
||||
providers. Base class is -
|
||||
instance once and returns it on every next call. Base class is -
|
||||
:py:class:`dependency_injector.providers.Provider`.
|
||||
|
||||
Providers could be:
|
||||
|
|
Loading…
Reference in New Issue
Block a user