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
Requires
and python3
Install
pip install mbbank-lib
or Dev Ver
pip install git+https://github.com/thedtvn/MBBank
How to Use
import asyncio
import 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
Project details
Release history Release notifications | RSS feed
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.2.tar.gz
(7.4 kB
view details)
File details
Details for the file mbbank-lib-0.0.2.tar.gz.
File metadata
- Download URL: mbbank-lib-0.0.2.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3c1268ba592277d5a1d81c3a926eeca1e5862fc28ca0e67fa64dbfaa5bf1be4c
|
|
| MD5 |
6937b5da12f032a7f8b613c137363ced
|
|
| BLAKE2b-256 |
d3647ebe09855589be13cb55a9728c382ea36ccf369276d483ffe19b463093b2
|