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.

Requirements

  • Python 3.7 or 3.8

Installation

pip install ocbc-dbs-statement-parser

Usage

python -m src.cli <pdf_path> [--debug] [--verify]

For more information, run:

python -m src.cli --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.7.tar.gz (28.3 kB view details)

Uploaded Source

Built Distribution

ocbc_dbs_statement_parser-0.1.7-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for ocbc_dbs_statement_parser-0.1.7.tar.gz
Algorithm Hash digest
SHA256 f181be7faf4eaf2bcd084c78fe296df6ead315e7ce07d173c29136572d41239d
MD5 b039d590c61043d149356752025f39e5
BLAKE2b-256 01547ddfc5df4bcc5ea9e006748ed914323008c787a8faf713494dd2e0b26721

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ocbc_dbs_statement_parser-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 1816e33c8e65eb38dfce029ac74f2dd91117edb65cf7f409489032a6c8a3c668
MD5 a3ca177587f46b1c1f3a507726090995
BLAKE2b-256 1834598de16f0b82a7f6193e83eecb77d22af95f68125576055a3cb94e0c2f46

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