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-toolsSystem packagepohoda-abo-importerSystem package
Install dependencies using pip:
pip install csas-statement-tools pohoda-abo-importerRun 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-dateStart date inYYYY-MM-DDformat (required)--to-dateEnd date inYYYY-MM-DDformat (required)--output-dirDirectory to save downloaded statements (default:statements)--pohoda-urlPohoda API URL (required)--pohoda-tokenPohoda API token (required)
Run unit tests with:
python -m unittest discover testssrc/statement_sync.py # Main script
tests/test_statement_sync.py # Unit tests
MIT
VitexSoftware, Spoje-NET
CSas to Pohoda is ready for run as MultiFlexi application. See the full list of ready-to-run applications within the MultiFlexi platform on the application list page.