PDF parsing for Singaporean banks
Project description
Monopoly is a Python library that converts Singapore bank statement PDFs to CSV using pdftotext
Supported banks:
- Citibank
- DBS
- HSBC
- OCBC
- Standard Chartered
Only credit card statements are supported (for now)
Install
Clone the repo
git clone https://github.com/benjamin-awd/monopoly.git
Install dependencies using apt & Homebrew
make setup
Usage
Monopoly can be run as a Python package, allowing you to extract, transform and write bank statements to a CSV file.
To see how Monopoly works, you can run this example
python3 src/monopoly/examples/single_statement.py
If you need to run monopoly on a password protected file, ensure that passwords are set in the .env file:
cp .env.template env
If you have multiple statements from the same bank with different passwords (e.g. HSBC statements), make sure to set both passwords in an array format like so:
HSBC_PDF_PASSWORDS=["password1","password2"]
Features
- Unlocks PDFs using user-provided credentials
- Statements can be parsed with the CLI, or manually with the bank processor class.
- Support for cashback transactions and refunds
- Monopoly can be run on Google Cloud as a scheduled Cloud Run job, which opens up more sophisticated use-cases like historical analysis and personal finance visualization
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 monopoly_sg-0.4.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 110cce57b3086de7b11ae9ba22fb1a39628b6aba0aa6a555a4e9f2ff918bc770 |
|
MD5 | a56fb5a806a331d99f713773315e1b55 |
|
BLAKE2b-256 | 25211a0cdd579c59e2eee2fbf9145516a4cf5b5762aca756be018c2a453f917d |