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