The main purpose of this project is to build messages and attachment files from some Excel files and send them to the clients as invoicing reminders.
This project is the first part of an RPA system developed in Python and uses an inner file manager for sorting pending files from submitted ones. The outputs of this script are the inputs of another automated process.
- Python_Scripts:
- credentials.py: Edit this file with the sender data (email and password account).
- main.py: This is the head pice of code of the project.
- input_files:
- providers: Where directories of clients (receivers information) are.
- pending_base_file: Where base files (patients, services and clinics information) are.
- output_files:
- Reports: Where the summaries created by the bot are.
- Submitted:
- E1P1_base_file: Where base files are moved after the process.
- E1P2_Submitted_files: Where files created by the bot and used for the next process are.
- Tables: Where attachments (html and csv files created by the bot) are.
- Images: Where files used in README.md are.
- A script that installs all the required modules for the project.
- A script that asks the user for sender credentials (e-mail address, password and port).
- A script that sets the absolute path of the project (enviroment variable DEFAULT_DIR in main.py, for Windows and Linux).
- Handle the most of excepetions in main.py.
- The main.py script should work as 'lazy'. So, files must not be created if all the messages are not sent.
I used VSCode as source-code editor. Also, I have employed the following modules listed in main.py header:
numpy==1.20.1
openpyxl==3.0.6
pandas==1.2.2
xlrd==2.0.1