Convert bunq payments to csv
Project description
Bunqexport
After the some discussion in the lexware Finanzmanger forum, it looks like the authors do not feel the need to integrate bunq into their application (https://forum.lexware.de/threads/37851/)
Also in the bunq forums, no one seemed to have a prior solution (https://together.bunq.com/d/24026-lexware-quicken-finanzmanager-import-from-bunq).
So I decided to implement a simple export with python and the bunq rest API.
Features
- Connect to bunq (https://www.bunq.com) API with a pregenerated API key (see Tinker example: https://github.com/bunq/tinker_python)
- Export payments from bunq as
json
andcsv
into one file per account - support special
csv
format with timestamps inDD.MM.YYYY
format in timstamps, as expected fromHaufe-Lexware Finanzmanger
, when mode islexware
- Unit testing using
nose
- Pre-commit checking with
pre-commit
Usage
Install bunqexport
and generate an export:
$ pip install bunqexport
$ bunqexport --conf bunq-production.conf --mode lexware
[INFO ] Using conf: bunq-production.conf
[INFO ] found XX while fetching last 200 Payments for account XXXXXXX
[INFO ] Wrote bunq_XXXXXXX_Default.csv
[INFO ] Wrote bunq_XXXXXXX_Default.json
created type counterparty_alias.name amount.currency amount.value description
23.12.2019 CHECKOUT_MERCHANT bunq EUR 200.00 bunq account top up
23.12.2019 MASTERCARD XXXXXXXXXXXXXXXXXXXXXX EUR -16.96 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
23.12.2019 SAVINGS XXXXXXXXXXX EUR -0.04
24.12.2019 EBA_SCT XXXXXXXXXX EUR 500.00 ---
27.12.2019 EBA_SCT PayPal (Europe) S.a.r.l. et Cie., S.C.A. EUR 0.13 PAYPAL BEVEILIGINGSMAATREGEL
27.12.2019 EBA_SCT PayPal (Europe) S.a.r.l. et Cie., S.C.A. EUR 0.03 PAYPAL BEVEILIGINGSMAATREGEL
...
Contributing
Any contributions are very welcome.
When contributing to this repository, please first discuss the change you wish to make via issue with the owners of this repository before making a change.
Pull Request Process
- Ensure any install or build dependencies are removed before the end of the layer when doing a build.
- Document your changes (whereever useful), e.g in
README.md
. - Use
pre-commit
hooks by installingpip install pre-commit
and runpre-commit install
.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for bunqexport-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9cbd0105e8a2299c1d9f4d4e02392c0e70e6b7c583cc376eecf7bd8ccf654655 |
|
MD5 | ba6f346f6df048b823834e18abe83e4a |
|
BLAKE2b-256 | 75bc24ebcf60b3dcab77f9411d81121ccde6fb17fe54e0026e0a1fd01b6515a7 |