Overview • Prerequisites • Set-up
Just used for extracting the sheets from a spreadsheet and placing them in their own appropriately titled PDF
- Python
- To check if downloaded you can run
python3 --version
- If not downloaded then go to the official website here and download version 3.9.10
- To check if downloaded you can run
- Git
- To check if downloaded you can run
git --version
- To check if downloaded you can run
- Excel (ofc)
- git clone this repo using the command
git clone https://github.com/rdavis-bc/invoice_automation.git
- Then move into the directory using
cd invoice_automation
- create a python environment with
python3 -m venv <Any name you want>
so for examplepython3 -m venv excel_venv
- Activate the environment with the command
source <environment name>/bin/activate
- Install the needed libraries with
pip install -r requirements.txt
- Once those have finished installing , make a directory to place your excel workbooks and another directory for your pdfs
For example you can create a structure like the following
where there is a subdirectory called
excel_sheets
and in this folder we place our.xlsx
files . Moreoever, we have another subdirectory called excel_pdfs where the pdfs will go.
- So inside
invoice_automation
we can just run a command with the following formatpython src.main.py <directory of xlsx> <directory for pdfs>
Note: Some errors will pop up in the command line but these aren't important for the time being