How to use Dependency Injection in Python

Xavier Escudero
4 min readSep 24, 2023
Photo by Shreya Thomas on Unsplash

A brief introduction of dependency injection

If you have never heard about SOLID principles they are 5 principles of object-oriented software design to develop maintainable and scalable software.

One of its principles is the dependency inversion (DIP) principle, which states that high-level modules should not depend on low-level modules…

--

--

Xavier Escudero

Innovation enthusiast, passionate about automation in several fields, like software testing and trading bots