python-dependency-injector/docs/examples-other/password-hashing.rst

25 lines
698 B
ReStructuredText
Raw Normal View History

2020-09-07 18:50:32 +03:00
Password hashing example
========================
2020-09-07 19:34:49 +03:00
.. meta::
:keywords: Python,Dependency Injection,Inversion of Control,Container,Example,Application,
Framework,Callable
:description: This example demonstrates a usage of the Callable provider.
2020-09-07 18:50:32 +03:00
This example demonstrates an injection of the ``Callable`` provider.
2020-09-07 19:31:59 +03:00
The source code is available on the `Github <https://github.com/ets-labs/python-dependency-injector/tree/master/examples/miniapps/password-hashing>`_.
2020-09-07 18:50:32 +03:00
Listing of the ``example.py``:
.. literalinclude:: ../../examples/miniapps/password-hashing/example.py
:language: python
Instructions for running:
.. code-block:: bash
python example.py
.. disqus::