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

or if you're running it from source:

pip install -e .

Usage

python -m ocbc-dbs-statement-parser <pdf_path> [--debug] [--verify] [--help]

Locally

python -m ocbc-dbs-statement-parser.cli <pdf_path> [--debug] [--verify][--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

Push releases

bumpversion patch|minor|major
git push && git push --tags

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.2.1.tar.gz (28.5 kB view details)

Uploaded Source

Built Distribution

ocbc_dbs_statement_parser-0.2.1-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for ocbc_dbs_statement_parser-0.2.1.tar.gz
Algorithm Hash digest
SHA256 3fa2820dd31ee89362ded4ddd6673a89bb9ef446ccdea3dcbd7ad4a894679569
MD5 1b00dbfb255dd69917af34f0495bd652
BLAKE2b-256 9b64195d833df31c6d2c176e07f7938b029579de02a915c9b2446f39e6d0cd80

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ocbc_dbs_statement_parser-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 102b15ac9bfa138833961b24e6485055c1be46c711e24f38364c05f6c7ec9565
MD5 d5c21124b4cf5b10c8735cb7cb58b3e6
BLAKE2b-256 be4fb3569344a2ef6850a6b1ab2a4bd996dfd75b775c7fcd79aa09906e36b294

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