Skip to main content

A python library to easily extract information and metrics from Moroccan bank statements.

Project description

openbk

Documentation Status PyPI - Downloads

openbk is a small python library that can be used to read and extract transaction information from Moroccan bank statements (PDF).

Installation | Docs | Motivation

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.

Supported Banks

  • ✅ CIH Bank (E-banking statements - Particuliers)
  • ✅ Attijariwafa Bank (E-banking statements - Particuliers)
  • 🔜 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.10+
  • Java 8+

To add openbk to your project:

pip install openbk

Learn more about how to use openbk on our docs.

openbk can also be run through CLI commands.

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

openbk-1.0.1.tar.gz (19.1 kB view details)

Uploaded Source

Built Distribution

openbk-1.0.1-py3-none-any.whl (19.1 kB view details)

Uploaded Python 3

File details

Details for the file openbk-1.0.1.tar.gz.

File metadata

  • Download URL: openbk-1.0.1.tar.gz
  • Upload date:
  • Size: 19.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.2

File hashes

Hashes for openbk-1.0.1.tar.gz
Algorithm Hash digest
SHA256 442184c33f838062fc2f6ca5413bbf02d7b192443a9d7ead1155f6d52a079c32
MD5 b89a4185c2243d5c2c31694391a31aba
BLAKE2b-256 0741db9aa936cdf2aa4b6b088630bd4c82ea8d0adeba8933d1ab650a4d321a33

See more details on using hashes here.

File details

Details for the file openbk-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: openbk-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 19.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.2

File hashes

Hashes for openbk-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6f6264f7d6bd5892d07477c5746cdf7b9c1d0d61f6b3557c629b6eb8b00cbcaf
MD5 6c3aa90be807e50475433155782fbaf1
BLAKE2b-256 d412ada6779cd9f4b2e739f9b1162621fb7bd71efa1386813083ece77de05420

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