In this repository you can find the code and the presentation of the talk Inyección de dependencias, fácil! from PyConES 2022
- src/dependency_injection/dependency_inversion/abstraction_implementation.py
- src/dependency_injection/dependency_inversion
- src/dependency_injection/abstractions/duck_typing.py
- src/dependency_injection/abstractions/protocol.py
- src/dependency_injection/benefits/more_implementations.py
- src/dependency_injection/benefits/code_smell.py
- tests/testing/test_monkey_patching.py
- tests/testing/test_mocking.py
- src/dependency_injection/pure_di
- src/dependency_injection/dependency_injector_library/main_with_no_magic.py
- src/dependency_injection/dependency_injector_library/main_with_magic.py
- tests/dependency_injector_library/test_using_container.py
- src/dependency_injection/interception/decorator.py
- src/dependency_injection/interception/decorator_pattern.py
git clone https://github.com/panicoenlaxbox/pycones2022.git
pipenv install --dev
git init
pipenv shell
pre-commit install
pre-commit autoupdate
- http://principles-wiki.net/principles:dependency_inversion_principle
- https://www.amazon.es/Design-Patterns-Object-Oriented-professional-computing/dp/0201633612
- https://opensource.com/article/17/5/30-best-practices-software-development-and-testing
- https://github.com/getsentry/responses
- https://github.com/spulec/freezegun
- https://github.com/jmcgeheeiv/pyfakefs/
- https://blog.ploeh.dk/2014/06/10/pure-di/
- https://www.manning.com/books/dependency-injection-in-dot-net
- https://python-dependency-injector.ets-labs.org/
- ets-labs/python-dependency-injector#339 (comment)
- https://blog.ploeh.dk/2010/02/03/ServiceLocatorisanAnti-Pattern/
- https://peps.python.org/pep-0544/