Skip to main content

Mono Python API wrapper

Project description

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

MIT LICENSE

Contribution guides

Todo

  • Webhook Support

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

Py-Mono-0.0.1.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

Py_Mono-0.0.1-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file Py-Mono-0.0.1.tar.gz.

File metadata

  • Download URL: Py-Mono-0.0.1.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for Py-Mono-0.0.1.tar.gz
Algorithm Hash digest
SHA256 60e60e12fc1e308a2a17ece06dda6d95836ab774f15a8aacc956be6445367050
MD5 cf888b80132817363e56245a153b3ac2
BLAKE2b-256 f8dea312900f6f76d31b08adc9be4c37dc7396f7a42dee5a3b27c002829477f9

See more details on using hashes here.

File details

Details for the file Py_Mono-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: Py_Mono-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for Py_Mono-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d88d5a0fae54e1fc27f3088d1962166d81e5f9a0244726b859fa1d3f28b449c1
MD5 d2da03a3f5d47cc282799d512a03982b
BLAKE2b-256 a8c5f4940363350b95cc394da79ce1fe3f499d5ac0203f6f99de850b8e21003c

See more details on using hashes here.

Supported by

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