mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-07-27 08:19:57 +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,
|
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?
|
What's next?
|
||||||
|
|
||||||
- Look at the other :ref:`tutorials`
|
- 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?
|
What's next?
|
||||||
|
|
||||||
- Look at the other :ref:`tutorials`
|
- 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.
|
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.
|
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.
|
``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.
|
We used :ref:`wiring` feature to inject the dependencies into the ``main()`` function.
|
||||||
:ref:`provider-overriding` feature helped in testing.
|
:ref:`provider-overriding` feature helped in testing.
|
||||||
|
|
||||||
We kept all the dependencies and injections defined explicitly. This will help when we need
|
We kept all the dependencies injected explicitly. This will help when we need to add or
|
||||||
to add or change something in future.
|
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?
|
What's next?
|
||||||
|
|
||||||
|
|
|
@ -988,10 +988,10 @@ Conclusion
|
||||||
In this tutorial we've built a ``Flask`` application following the dependency injection principle.
|
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.
|
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
|
:ref:`containers` and :ref:`providers` helped to specify how to assemble search service and
|
||||||
3rd-party library.
|
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.
|
We used :ref:`wiring` feature to inject the dependencies into the ``index()`` view.
|
||||||
:ref:`provider-overriding` feature helped in testing.
|
:ref:`provider-overriding` feature helped in testing.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user