Skip to main content

A tool to parse OCBC and DBS bank and credit card statements from PDF files

Project description

OCBC DBS Statement Parser

A Python tool to parse bank statements from PDF files, specifically designed for OCBC and DBS statements but potentially compatible with other banks.

Installation

pip install ocbc-dbs-statement-parser

Usage

python main.py <pdf_path> [--debug] [--verify]

For more information, run:

python main.py --help

Features

  • Extracts transactions from bank account and credit card statements
  • Supports various date formats
  • Verifies transaction totals
  • Debug mode for detailed output

Development

Setup

  1. Clone the repository
  2. Create a virtual environment: python -m venv venv
  3. Activate the virtual environment:
    • Windows: venv\Scripts\activate
    • macOS/Linux: source venv/bin/activate
  4. Install dependencies: pip install -r requirements.txt

Testing

To run tests using pytest, execute the following command:

pytest tests/test_main.py

Dependencies

The main dependencies for this project are:

  • camelot-py==0.11.0
  • pandas==2.0.3
  • pycountry==24.6.1
  • pypdf==4.3.1

For a complete list of dependencies, please refer to the requirements.txt file.

License

This project is licensed under the MIT License.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ocbc_dbs_statement_parser-0.1.0.tar.gz (19.7 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file ocbc_dbs_statement_parser-0.1.0.tar.gz.

File metadata

File hashes

Hashes for ocbc_dbs_statement_parser-0.1.0.tar.gz
Algorithm Hash digest
SHA256 fd09bab36b9c71ef5ab7a89651d6e59f870bda3a6d1b53002b9f10abd9051544
MD5 cc1f4c30bc8be17b84f99fc572d540ff
BLAKE2b-256 9559aebc48a9d737b87f437b4a8ffd431cdc8743e3aaeac09cb571b2b857d29c

See more details on using hashes here.

File details

Details for the file ocbc_dbs_statement_parser-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ocbc_dbs_statement_parser-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6a5393bd642236e94182c8eefa26f74382a7373c339fbff47d80c34c68ee7bbd
MD5 bf4f5f4104e12ee670f0e05ba16710cb
BLAKE2b-256 0d82756520238f09b5903a00ace213ef110f57f3a7d0bac8a10add83e169e09e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page