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 Distributions
Hashes for beancount_hangseng-0.2.1-py3.7.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca76f8f1730b3fde904ad266e7e17973498cbd68d866d9faa9012b96c53edb58 |
|
MD5 | 4146267267efd9546db4f6846f02c8d0 |
|
BLAKE2b-256 | 41cca102049d2d199e7d5ccd5cedc70f852b760f6efc4d4538c6038cb8babefe |
Hashes for beancount_hangseng-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 383d82ec86e9bcfaf4a0808c949714fcd961b94307cfbc504f526897499066e1 |
|
MD5 | 60be6286fb644e0ad1ba4ed0bcbbc650 |
|
BLAKE2b-256 | d1c0369ab728434bb8d48bdc9c265ee24f84b6220828d4e396c8b945714026e1 |