Monopoly is a Python library & CLI that converts bank statement PDFs to CSV
Project description
Monopoly is a Python library & CLI that converts bank statement PDFs to CSV.
Supported banks:
Bank | Credit Statement | Debit Statement |
---|---|---|
Citibank | :white_check_mark: | :x: |
DBS | :white_check_mark: | :white_check_mark: |
HSBC | :white_check_mark: | :x: |
OCBC | :white_check_mark: | :white_check_mark: |
Standard Chartered | :white_check_mark: | :x: |
🎉 Monopoly is now live! 🎉
Try it out:
https://monopoly.streamlitapp.com/
Install
Clone the repo
git clone https://github.com/benjamin-awd/monopoly.git
Install dependencies using Homebrew
brew install make
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 with a script using the StatementHandler 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_core-0.9.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a1c26009b6ff4e498b284206574cb6be3b9e9846902224d23c4883244a9f2db |
|
MD5 | c5ff6611c714320f000d3a030419e2b6 |
|
BLAKE2b-256 | 2d23b5639cfd8d77df1f5373165eaeefd01d23544787a7f4a1425d8cd6b92daa |