mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-11-25 02:53:56 +03:00
31 lines
757 B
ReStructuredText
31 lines
757 B
ReStructuredText
Password hashing example
|
|
========================
|
|
|
|
.. meta::
|
|
:keywords: Python,Dependency Injection,Inversion of Control,Container,Example,Application,
|
|
Framework,Callable
|
|
:description: This example demonstrates a usage of the Callable provider.
|
|
|
|
This example demonstrates an injection of the ``Callable`` provider.
|
|
|
|
The source code is available on the `Github <https://github.com/ets-labs/python-dependency-injector/tree/master/examples/miniapps/password-hashing>`_.
|
|
|
|
Sample code
|
|
-----------
|
|
|
|
Listing of the pattern example:
|
|
|
|
.. literalinclude:: ../../examples/miniapps/password-hashing/example.py
|
|
:language: python
|
|
|
|
Run the example
|
|
---------------
|
|
|
|
Instructions for running:
|
|
|
|
.. code-block:: bash
|
|
|
|
python example.py
|
|
|
|
.. disqus::
|