PyMono
pymono is a python wrapper for Mono
- Account
- Transactions
- Statements
- Credits
- Debits
- Bvn Lookup
Getting Started
- Register on Mono website and get your Authorization key.
- Setup your mono connect with your mono public key
- Set Your "MONO-SEC-KEY" env
Installing
pip install Py-mono
Usage
Environment Key
os.environ['MONO-SEC-KEY'] = " "
Usage
Import
from pymono import Mono
Exchange Key or Authenticaton
Set your mono-code accpeted from mono-connect widget.
mono= Mono('mono-code')
(data,status) = mono.Auth()
User Id
set the user id to get other function working
mono.SetUserId(data.get("id"))
Account
The user account details is returned
mono.getAccount()
Transactions
| 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="")
Statement
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")
Credits
get credits details if user
mono.getCredits()
Debits
mono.getDebits()
Identity
mono.getIdentity()
BVN Lookup
| params | example |
|---|---|
| bvn | 2256244 |
mono.bvn_lookup(bvn)
Sanbox to test mono-connect
LICENSE
Contribution guides
Todo
- Webhook Support
Metadata
Release files for Py-Mono 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| Py-Mono-0.0.1.tar.gz | 5.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| Py_Mono-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.8 kB
Release files / Py-Mono-0.0.1.tar.gz
| Download URL | Py-Mono-0.0.1.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
60e60e12fc1e308a2a17ece06dda6d95836ab774f15a8aacc956be6445367050
|
|
BLAKE2b-256 checksum How to use checksums |
f8dea312900f6f76d31b08adc9be4c37dc7396f7a42dee5a3b27c002829477f9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.7
|
Release files / Py_Mono-0.0.1-py3-none-any.whl
| Download URL | Py_Mono-0.0.1-py3-none-any.whl |
|---|---|
| Size | 6.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d88d5a0fae54e1fc27f3088d1962166d81e5f9a0244726b859fa1d3f28b449c1
|
|
BLAKE2b-256 checksum How to use checksums |
a8c5f4940363350b95cc394da79ce1fe3f499d5ac0203f6f99de850b8e21003c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.7
|