I'm not very experienced in python, but I've been doing some manual work for accounting all last year and decided to automate the process.
Each month the accounting department requested uploads for
- payment cards
- cash
- realisations There are also uploads for online payments and payments via SBP.
items 1-3 are uploaded from postgresql database. online and sbp are unloaded from personal accounts
the script does the following:
- requests the year and month for uploads and creates working directories
- changes dates in sql files
- executes them and exports the data in json and xlsx formats
- asks for paths for online and sbp
- processes all files: xlsx to a readable form for accounting, json to a format for uploading to 1C
- make the code more flexible and reusable
- wrap it in an interface (web or desktop)
- test coverage
- git clone https://github.com/vsenichego/astra-accounting.git
- python -m venv .venv
- source .venv/bin/activate or ./.venv/Scripts/activate
- pip install -r requirements.txt
- get creds for .env 🙂
- run the run_scripts.py