This repository contains basic example on how to use Dependency Injection in Python.
How to run -
- Modify config with your email address and password in main.py
- Change the Subject for email search in main.py file
- run command "python main.py"
The program should return list of tuples containing subject, to and from information of latest matching email. For example, [('SUBJECT', '{EMAIL_SUBJECT}'), ('TO', '{TO_EMAIL_ADDRESS}'), ('FROM', '{FROM_EMAIL_ADDRESS}')]
For detailed information on dependency injection in python, refer https://medium.com/@shivama205/dependency-injection-python-cb2b5f336dce
Thank you