This project provides a Python script to automate the process of downloading bank statements from Česká spořitelna (CSAS) and importing them into Pohoda accounting software.
- Download bank statements using csas-statement-tools
- Import statements into Pohoda using pohoda-abo-importer
- Command-line interface for easy automation
- Error handling and logging
- Unit tests included
- Python 3.8+
csas-statement-tools
Python packagepohoda-abo-importer
Python package
Install dependencies using pip:
pip install csas-statement-tools pohoda-abo-importer
Run the script to download statements and import them into Pohoda:
python src/statement_sync.py --from-date YYYY-MM-DD --to-date YYYY-MM-DD --output-dir /path/to/output --pohoda-url URL --pohoda-token TOKEN
--from-date
Start date inYYYY-MM-DD
format (required)--to-date
End date inYYYY-MM-DD
format (required)--output-dir
Directory to save downloaded statements (default:statements
)--pohoda-url
Pohoda API URL (required)--pohoda-token
Pohoda API token (required)
Run unit tests with:
python -m unittest discover tests
src/statement_sync.py # Main script
tests/test_statement_sync.py # Unit tests
MIT
VitexSoftware, Spoje-NET