mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-05-22 21:46:17 +03:00
Update examples docs
This commit is contained in:
parent
7270236811
commit
aa69851938
|
@ -37,7 +37,6 @@ Listing of ``bundles/users/__init__.py``:
|
||||||
|
|
||||||
.. literalinclude:: ../../examples/miniapps/bundles/bundles/users/__init__.py
|
.. literalinclude:: ../../examples/miniapps/bundles/bundles/users/__init__.py
|
||||||
:language: python
|
:language: python
|
||||||
:linenos:
|
|
||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
|
|
||||||
|
@ -47,7 +46,6 @@ Listing of ``bundles/photos/__init__.py``:
|
||||||
|
|
||||||
.. literalinclude:: ../../examples/miniapps/bundles/bundles/photos/__init__.py
|
.. literalinclude:: ../../examples/miniapps/bundles/bundles/photos/__init__.py
|
||||||
:language: python
|
:language: python
|
||||||
:linenos:
|
|
||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
|
|
||||||
|
@ -65,7 +63,6 @@ Listing of ``run.py``:
|
||||||
|
|
||||||
.. literalinclude:: ../../examples/miniapps/bundles/run.py
|
.. literalinclude:: ../../examples/miniapps/bundles/run.py
|
||||||
:language: python
|
:language: python
|
||||||
:linenos:
|
|
||||||
|
|
||||||
Links
|
Links
|
||||||
~~~~~
|
~~~~~
|
||||||
|
|
|
@ -10,14 +10,12 @@ Listing of ``data.py``, demonstrates sample classes structure:
|
||||||
|
|
||||||
.. literalinclude:: ../../examples/miniapps/factory_patterns/data.py
|
.. literalinclude:: ../../examples/miniapps/factory_patterns/data.py
|
||||||
:language: python
|
:language: python
|
||||||
:linenos:
|
|
||||||
|
|
||||||
Listing of ``chained_factories.py``, demonstrates "Chained Factories"
|
Listing of ``chained_factories.py``, demonstrates "Chained Factories"
|
||||||
pattern and provide some explanation:
|
pattern and provide some explanation:
|
||||||
|
|
||||||
.. literalinclude:: ../../examples/miniapps/factory_patterns/chained_factories.py
|
.. literalinclude:: ../../examples/miniapps/factory_patterns/chained_factories.py
|
||||||
:language: python
|
:language: python
|
||||||
:linenos:
|
|
||||||
|
|
||||||
|
|
||||||
.. disqus::
|
.. disqus::
|
||||||
|
|
|
@ -9,14 +9,12 @@ Listing of ``data.py``, demonstrates sample classes structure:
|
||||||
|
|
||||||
.. literalinclude:: ../../examples/miniapps/factory_patterns/data.py
|
.. literalinclude:: ../../examples/miniapps/factory_patterns/data.py
|
||||||
:language: python
|
:language: python
|
||||||
:linenos:
|
|
||||||
|
|
||||||
Listing of ``factory_of_factories.py``, demonstrates "Chained Factories"
|
Listing of ``factory_of_factories.py``, demonstrates "Chained Factories"
|
||||||
pattern and provide some explanation:
|
pattern and provide some explanation:
|
||||||
|
|
||||||
.. literalinclude:: ../../examples/miniapps/factory_patterns/factory_of_factories.py
|
.. literalinclude:: ../../examples/miniapps/factory_patterns/factory_of_factories.py
|
||||||
:language: python
|
:language: python
|
||||||
:linenos:
|
|
||||||
|
|
||||||
|
|
||||||
.. disqus::
|
.. disqus::
|
||||||
|
|
|
@ -70,7 +70,6 @@ Listing of ``movies/__init__.py``:
|
||||||
|
|
||||||
.. literalinclude:: ../../examples/miniapps/movie_lister/movies/__init__.py
|
.. literalinclude:: ../../examples/miniapps/movie_lister/movies/__init__.py
|
||||||
:language: python
|
:language: python
|
||||||
:linenos:
|
|
||||||
|
|
||||||
Example application
|
Example application
|
||||||
~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~
|
||||||
|
@ -88,13 +87,11 @@ Listing of ``examples/main.py``:
|
||||||
|
|
||||||
.. literalinclude:: ../../examples/miniapps/movie_lister/example/main.py
|
.. literalinclude:: ../../examples/miniapps/movie_lister/example/main.py
|
||||||
:language: python
|
:language: python
|
||||||
:linenos:
|
|
||||||
|
|
||||||
Listing of ``examples/db.py``:
|
Listing of ``examples/db.py``:
|
||||||
|
|
||||||
.. literalinclude:: ../../examples/miniapps/movie_lister/example/db.py
|
.. literalinclude:: ../../examples/miniapps/movie_lister/example/db.py
|
||||||
:language: python
|
:language: python
|
||||||
:linenos:
|
|
||||||
|
|
||||||
Csv application
|
Csv application
|
||||||
~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~
|
||||||
|
@ -103,7 +100,6 @@ Listing of ``app_csv.py``:
|
||||||
|
|
||||||
.. literalinclude:: ../../examples/miniapps/movie_lister/app_csv.py
|
.. literalinclude:: ../../examples/miniapps/movie_lister/app_csv.py
|
||||||
:language: python
|
:language: python
|
||||||
:linenos:
|
|
||||||
|
|
||||||
Database application
|
Database application
|
||||||
~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~
|
||||||
|
@ -112,7 +108,6 @@ Listing of ``app_db.py``:
|
||||||
|
|
||||||
.. literalinclude:: ../../examples/miniapps/movie_lister/app_db.py
|
.. literalinclude:: ../../examples/miniapps/movie_lister/app_db.py
|
||||||
:language: python
|
:language: python
|
||||||
:linenos:
|
|
||||||
|
|
||||||
Csv and database application
|
Csv and database application
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
@ -121,7 +116,6 @@ Listing of ``app_db_csv.py``:
|
||||||
|
|
||||||
.. literalinclude:: ../../examples/miniapps/movie_lister/app_db_csv.py
|
.. literalinclude:: ../../examples/miniapps/movie_lister/app_db_csv.py
|
||||||
:language: python
|
:language: python
|
||||||
:linenos:
|
|
||||||
|
|
||||||
|
|
||||||
.. disqus::
|
.. disqus::
|
||||||
|
|
|
@ -14,6 +14,5 @@ Listing of ``example.py``:
|
||||||
|
|
||||||
.. literalinclude:: ../../examples/miniapps/password_hashing/example.py
|
.. literalinclude:: ../../examples/miniapps/password_hashing/example.py
|
||||||
:language: python
|
:language: python
|
||||||
:linenos:
|
|
||||||
|
|
||||||
.. disqus::
|
.. disqus::
|
||||||
|
|
|
@ -47,13 +47,11 @@ Listing of ``example/services.py``:
|
||||||
|
|
||||||
.. literalinclude:: ../../examples/miniapps/services_v1/example/services.py
|
.. literalinclude:: ../../examples/miniapps/services_v1/example/services.py
|
||||||
:language: python
|
:language: python
|
||||||
:linenos:
|
|
||||||
|
|
||||||
Listing of ``example/main.py``:
|
Listing of ``example/main.py``:
|
||||||
|
|
||||||
.. literalinclude:: ../../examples/miniapps/services_v1/example/main.py
|
.. literalinclude:: ../../examples/miniapps/services_v1/example/main.py
|
||||||
:language: python
|
:language: python
|
||||||
:linenos:
|
|
||||||
|
|
||||||
IoC containers
|
IoC containers
|
||||||
~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~
|
||||||
|
@ -62,7 +60,6 @@ Listing of ``containers.py``:
|
||||||
|
|
||||||
.. literalinclude:: ../../examples/miniapps/services_v1/containers.py
|
.. literalinclude:: ../../examples/miniapps/services_v1/containers.py
|
||||||
:language: python
|
:language: python
|
||||||
:linenos:
|
|
||||||
|
|
||||||
Run application
|
Run application
|
||||||
~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~
|
||||||
|
@ -71,7 +68,6 @@ Listing of ``run.py``:
|
||||||
|
|
||||||
.. literalinclude:: ../../examples/miniapps/services_v1/run.py
|
.. literalinclude:: ../../examples/miniapps/services_v1/run.py
|
||||||
:language: python
|
:language: python
|
||||||
:linenos:
|
|
||||||
|
|
||||||
|
|
||||||
.. disqus::
|
.. disqus::
|
||||||
|
|
|
@ -47,13 +47,11 @@ Listing of ``example/services.py``:
|
||||||
|
|
||||||
.. literalinclude:: ../../examples/miniapps/services_v2/example/services.py
|
.. literalinclude:: ../../examples/miniapps/services_v2/example/services.py
|
||||||
:language: python
|
:language: python
|
||||||
:linenos:
|
|
||||||
|
|
||||||
Listing of ``example/main.py``:
|
Listing of ``example/main.py``:
|
||||||
|
|
||||||
.. literalinclude:: ../../examples/miniapps/services_v2/example/main.py
|
.. literalinclude:: ../../examples/miniapps/services_v2/example/main.py
|
||||||
:language: python
|
:language: python
|
||||||
:linenos:
|
|
||||||
|
|
||||||
IoC container
|
IoC container
|
||||||
~~~~~~~~~~~~~
|
~~~~~~~~~~~~~
|
||||||
|
@ -62,7 +60,6 @@ Listing of ``container.py``:
|
||||||
|
|
||||||
.. literalinclude:: ../../examples/miniapps/services_v2/container.py
|
.. literalinclude:: ../../examples/miniapps/services_v2/container.py
|
||||||
:language: python
|
:language: python
|
||||||
:linenos:
|
|
||||||
|
|
||||||
Run application
|
Run application
|
||||||
~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~
|
||||||
|
@ -71,7 +68,6 @@ Listing of ``run.py``:
|
||||||
|
|
||||||
.. literalinclude:: ../../examples/miniapps/services_v2/run.py
|
.. literalinclude:: ../../examples/miniapps/services_v2/run.py
|
||||||
:language: python
|
:language: python
|
||||||
:linenos:
|
|
||||||
|
|
||||||
|
|
||||||
.. disqus::
|
.. disqus::
|
||||||
|
|
|
@ -29,7 +29,6 @@ Listing of ``use_cases/containers.py``:
|
||||||
|
|
||||||
.. literalinclude:: ../../examples/miniapps/use_cases/containers.py
|
.. literalinclude:: ../../examples/miniapps/use_cases/containers.py
|
||||||
:language: python
|
:language: python
|
||||||
:linenos:
|
|
||||||
|
|
||||||
Run application
|
Run application
|
||||||
~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~
|
||||||
|
@ -38,7 +37,6 @@ Listing of ``run.py``:
|
||||||
|
|
||||||
.. literalinclude:: ../../examples/miniapps/use_cases/run.py
|
.. literalinclude:: ../../examples/miniapps/use_cases/run.py
|
||||||
:language: python
|
:language: python
|
||||||
:linenos:
|
|
||||||
|
|
||||||
Instructions for running:
|
Instructions for running:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user