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
- Clone the repository
- Create a virtual environment:
python -m venv venv - Activate the virtual environment:
- Windows:
venv\Scripts\activate - macOS/Linux:
source venv/bin/activate
- Windows:
- 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.
Metadata
Release files for ocbc-dbs-statement-parser 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ocbc_dbs_statement_parser-0.2.1.tar.gz | 28.5 kB | Without provenance | Details for ocbc_dbs_statement_parser-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ocbc_dbs_statement_parser-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for ocbc_dbs_statement_parser-0.2.1-py3-none-any.whl |
Total release size: 39.6 kB
Release files / ocbc_dbs_statement_parser-0.2.1.tar.gz
| Download URL | ocbc_dbs_statement_parser-0.2.1.tar.gz |
|---|---|
| Size | 28.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3fa2820dd31ee89362ded4ddd6673a89bb9ef446ccdea3dcbd7ad4a894679569
|
|
BLAKE2b-256 checksum How to use checksums |
9b64195d833df31c6d2c176e07f7938b029579de02a915c9b2446f39e6d0cd80
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.20
|
Release files / ocbc_dbs_statement_parser-0.2.1-py3-none-any.whl
| Download URL | ocbc_dbs_statement_parser-0.2.1-py3-none-any.whl |
|---|---|
| Size | 11.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
102b15ac9bfa138833961b24e6485055c1be46c711e24f38364c05f6c7ec9565
|
|
BLAKE2b-256 checksum How to use checksums |
be4fb3569344a2ef6850a6b1ab2a4bd996dfd75b775c7fcd79aa09906e36b294
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.20
|
Security for ocbc-dbs-statement-parser 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.