pymono is a python wrapper for Mono
- Account
- Transactions
- Statements
- Credits
- Debits
- Bvn Lookup
- Register on Mono website and get your Authorization key.
- Setup your mono connect with your mono public key
- Set Your "MONO-SEC-KEY" env
pip install -U Py-Monoos.environ['MONO-SEC-KEY'] = " "
from pymono import MonoSet your mono-code accpeted from mono-connect widget.
mono= Mono('mono-code')
(data,status) = mono.Auth()set the user id to get other function working
mono.SetUserId(data.get("id"))The user account details is returned
mono.getAccount()| params | example |
|---|---|
| start | "1-10-2020" |
| end | "7-11-2020" |
| narration | uber etc |
| types | debit, credit |
| paginate | true ,false |
#Get all the transactions without filter
mono.getTransactions()
#Parameter accepted to filter Transaction
mono.getTransactions(start="",end=" ",narration="",types="",paginate="")The user statement of account is returned
It accept parameter to filter statement
| params | example |
|---|---|
| month | last6month,last12month |
| output | json, pdf |
mono.getStatement()
# statement with filter
mono.getStatement("last12month","pdf")get credits details if user
mono.getCredits() mono.getDebits() mono.getIdentity() | params | example |
|---|---|
| bvn | 2256244 |
mono.bvn_lookup(bvn)- Webhook Support