mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-05-23 05:56:19 +03:00
Update tutorials
This commit is contained in:
parent
f77525086f
commit
71eab0b756
|
@ -954,6 +954,9 @@ cause you have everything defined explicitly in one place:
|
|||
default_limit=config.search.default_limit,
|
||||
)
|
||||
|
||||
You can find complete project on the
|
||||
`Github <https://github.com/ets-labs/python-dependency-injector/tree/master/examples/miniapps/giphynav-aiohttp>`_.
|
||||
|
||||
What's next?
|
||||
|
||||
- Look at the other :ref:`tutorials`
|
||||
|
|
|
@ -1078,6 +1078,9 @@ cause you have everything defined explicitly in one place:
|
|||
),
|
||||
)
|
||||
|
||||
You can find complete project on the
|
||||
`Github <https://github.com/ets-labs/python-dependency-injector/tree/master/examples/miniapps/monitoring-daemon-asyncio>`_.
|
||||
|
||||
What's next?
|
||||
|
||||
- Look at the other :ref:`tutorials`
|
||||
|
|
|
@ -1047,16 +1047,19 @@ Conclusion
|
|||
In this tutorial we've built a CLI application following the dependency injection principle.
|
||||
We've used the ``Dependency Injector`` as a dependency injection framework.
|
||||
|
||||
With a help of container and providers we have defined how to assemble application components.
|
||||
With a help of :ref:`containers` and :ref:`providers` we have defined how to assemble application components.
|
||||
|
||||
``Selector`` provider served as a switch for selecting the database format based on a configuration.
|
||||
``Configuration`` provider helped to deal with reading YAML file and environment variable.
|
||||
:ref:`configuration-provider` helped to deal with reading YAML file and environment variable.
|
||||
|
||||
We used :ref:`wiring` feature to inject the dependencies into the ``main()`` function.
|
||||
:ref:`provider-overriding` feature helped in testing.
|
||||
|
||||
We kept all the dependencies and injections defined explicitly. This will help when we need
|
||||
to add or change something in future.
|
||||
We kept all the dependencies injected explicitly. This will help when we need to add or
|
||||
change something in future.
|
||||
|
||||
You can find complete project on the
|
||||
`Github <https://github.com/ets-labs/python-dependency-injector/tree/master/examples/miniapps/movie-lister>`_.
|
||||
|
||||
What's next?
|
||||
|
||||
|
|
|
@ -988,10 +988,10 @@ Conclusion
|
|||
In this tutorial we've built a ``Flask`` application following the dependency injection principle.
|
||||
We've used the ``Dependency Injector`` as a dependency injection framework.
|
||||
|
||||
Container and providers helped to specify how to assemble search service and integrate it with a
|
||||
3rd-party library.
|
||||
:ref:`containers` and :ref:`providers` helped to specify how to assemble search service and
|
||||
integrate it with a 3rd-party library.
|
||||
|
||||
``Configuration`` provider helped to deal with reading YAML file and environment variable.
|
||||
:ref:`configuration-provider` helped to deal with reading YAML file and environment variable.
|
||||
|
||||
We used :ref:`wiring` feature to inject the dependencies into the ``index()`` view.
|
||||
:ref:`provider-overriding` feature helped in testing.
|
||||
|
|
Loading…
Reference in New Issue
Block a user