Skip to main content

A unofficially light weight Python Api for the "Military Commercial Joint Stock Bank" accounts

Project description

MBBank API for Python

A unofficially light weight Python Api for the "Military Commercial Joint Stock Bank" account

why we have this lib ?

Because I don't want to lose money on some api services like casso.vn

Requires

tesseract (windows)

tesseract (Linux & Mac)

and python3

Install

pip install mbbank-lib

or Dev Ver

pip install git+https://github.com/thedtvn/MBBank

How to Use

sync

import datetime
import mbbank

mb = mbbank.MBBank(username="<account number>", password="<account password>" [, tesseract_path="path/to/tesseract"])
daynow = datetime.datetime.now()
lasttime = daynow - datetime.timedelta(weeks=4*3) # maximum time 3 Month
mb.getTransactionAccountHistory(from_date=lasttime, to_date=daynow)
mb.getBalance()
mb.getBalanceLoyalty()
mb.getInterestRate()
mb.getFavorBeneficiaryList(transactionType= "TRANSFER" or "PAYMENT", searchType="MOST" or "LATEST")
mb.getCardList()
mb.getSavingList()
mb.getLoanList()
mb.userinfo()

async

import asyncio
from mbbank import mb_async as mbbank
import datetime

async def main():
    mb = mbbank.MBBank(username="<account number>", password="<account password>" [, tesseract_path="path/to/tesseract"])
    daynow = datetime.datetime.now()
    lasttime = daynow - datetime.timedelta(weeks=4*3) # maximum time 3 Month
    await mb.getTransactionAccountHistory(from_date=lasttime, to_date=daynow)
    await mb.getBalance()
    await mb.getBalanceLoyalty()
    await mb.getInterestRate()
    await mb.getFavorBeneficiaryList(transactionType= "TRANSFER" or "PAYMENT", searchType="MOST" or "LATEST")
    await mb.getCardList()
    await mb.getSavingList()
    await mb.getLoanList()
    await mb.userinfo()

asyncio.run(main())

and all this is return json for you have full control your data

Hits

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

mbbank-lib-0.0.4.tar.gz (7.8 kB view details)

Uploaded Source

File details

Details for the file mbbank-lib-0.0.4.tar.gz.

File metadata

  • Download URL: mbbank-lib-0.0.4.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for mbbank-lib-0.0.4.tar.gz
Algorithm Hash digest
SHA256 b2109c352fde02c6da17f026b93b4307c73800385beee6661dd9abcc7bc6d7a9
MD5 72d9e1a446e32c25119998f26c4ba10e
BLAKE2b-256 91cfd43680901e591f2ac54205cb154c522e8f8c579558799593436725456a39

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page