Parse Hang Seng eStatements to Beancount/CSV
Project description
Beancount/CSV parser for Hang Seng e-Statement
Parse Hang Seng (Hong Kong) Integrated Account e-Statement PDF, output results as beancount or CSV. Only Savings account is supported at the moment.
Installation
-
Install external dependency
pdftotext
. This is normally packaged underpoppler
for most Linux distros. Windows users may try with this. -
Install package via
pip
:pip install beancount-hangseng
Usage
Beancount
- Add
HangSengSavingsImporter
to your import config (See config.py for example) - Run
bean-extract config.py /path/to/eStatement.pdf > output.beancount
CSV
beancount-hangseng-csv -o output.csv /path/to/statement.pdf
If statements are already downloaded in one folder, you may process and verify output in one go:
# cd /path/to/output_dir
# beancount-hangseng-csv -v /path/to/HangSeng_*.pdf
Run beancount-hangseng-csv -h
for more options and debug suggestions.
Credits
Inspired by @dictcp's Gist.
"Therefore I say unto you, Take no thought for your life, what ye shall eat, or what ye shall drink; nor yet for your body, what ye shall put on. Is not the life more than meat, and the body than raiment?" -- Matthew 6:25
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 beancount_hangseng-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83c9c3c74e01cd3efec2c9f1b6d9f95eee7b8833689c53fa6bcdaafb66fc356a |
|
MD5 | de9563caaab46bf4c075e983e1f017df |
|
BLAKE2b-256 | e4bc0f9df48347e0bcfb99c9c50b06006757f5ffe15e4d76334dcfee5bb16025 |