Parse Hang Seng eStatements to Beancount/CSV
Project description
Beancount/CSV parser for Hang Seng e-Statement / MPower MasterCard
Parse Hang Seng (Hong Kong) Integrated Account e-Statement PDF / MPower MasterCard, output results as beancount or CSV. For Hang Seng Integrated Account eStatements, 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
/MPowerMasterImporter
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 -f {hangseng,mpower} /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 -t {hangseng, mpower} -v /path/to/HangSeng_*.pdf -d /tmp/
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.3.0-py3.7.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18273360fe4427f93b02687beb0676a56c28163ea8e6d00fe1ef8e26747b858f |
|
MD5 | ea3002441840fa63aef0773c3cbfbe7f |
|
BLAKE2b-256 | 660fa03b59ce46ef05418083d2f7ca862dfcb69dc9a82409d0998ab699e90c2b |
Hashes for beancount_hangseng-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f11f5cefe96604bb60e27acce9e757ee241130ff1911fba9d9c58ba09e20e70d |
|
MD5 | d94b8b61666399de4f9e2dfd2be9099c |
|
BLAKE2b-256 | 97c640b40501f394e79bd56f24cbb9ae32d5e09838939b4272cbf491b38ce474 |