A python library to easily extract information and metrics from Moroccan bank statements.
Project description
openbk
openbk is a small python library that can be used to read and extract transaction information from Moroccan bank statements (PDF).
Features
- Import an e-banking PDF statement and retrieve a clean DataFrame with transactions.
- Get basic metrics (total debit, total credit, net movements).
- Analyze bank transactions to extract their categories.
- Analyze card payments (online and offline) to detect merchants.
- Automatically detect which bank corresponds to the uploaded statement (Coming Soon).
Supported Banks
- ✅ CIH Bank (E-banking statements - Particuliers)
- 🔜 Attijariwafa Bank (Coming Soon)
- 🔜 Banque Centrale Populaire (Coming Soon)
Other banks will be decided in the future
ℹ️ Transaction categories: I do not have a comprehensive list of transaction types, so I hope that the classification gets better with your contribution!
Dependencies and Installation
openbk relies on tabula-py
to read and extract tables from PDFs. Tabula requires the following to function properly:
- Python 3.7+
- Java 8+
To add openbk to your project:
pip install openbk
Motivation
This project aims to simplify the task for developers who want to build apps that rely on the analysis of bank statements (Wallets, Lending, Consumer Behavior analysis, etc.). Ideally, openbk can help developers and data analysts in their financial scoring processes for applications in the Moroccan context.
Data Privacy
Please be careful when handling sensitive financial information and make sure to comply with the latest Moroccan data privacy laws and guidelines.
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
File details
Details for the file openbk-0.0.2.tar.gz
.
File metadata
- Download URL: openbk-0.0.2.tar.gz
- Upload date:
- Size: 16.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78d9eb8c7c4f6025d51efdc0e25a069566328750aef3470a290b5f08815c0a7d |
|
MD5 | a50959fdfd555e534a1b874dde97520b |
|
BLAKE2b-256 | 37f496f169430b8cae18e07f906766998e731fcc05ed2c9854f39d850a7ffdf0 |