https://github.com/hamzzy/mono-python
Mono API with Python
https://github.com/hamzzy/mono-python
api-wrapper mono python python-sdk
Last synced: 6 months ago
JSON representation
Mono API with Python
- Host: GitHub
- URL: https://github.com/hamzzy/mono-python
- Owner: hamzzy
- License: mit
- Created: 2020-12-28T22:47:10.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2022-01-14T21:34:22.000Z (almost 4 years ago)
- Last Synced: 2025-06-29T17:16:11.739Z (6 months ago)
- Topics: api-wrapper, mono, python, python-sdk
- Language: Python
- Homepage:
- Size: 5.09 MB
- Stars: 8
- Watchers: 1
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.MD
Awesome Lists containing this project
README
# 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
```python
pip install -U Py-Mono
```
# Usage
## Environment Key
```
os.environ['MONO-SEC-KEY'] = " "
```
## Usage
#### Import
```python
from pymono import Mono
```
#### Exchange Key or Authenticaton
> Set your mono-code accpeted from mono-connect widget.
```python
mono= Mono('mono-code')
(data,status) = mono.Auth()
```
#### User Id
> set the user id to get other function working
```python
mono.SetUserId(data.get("id"))
```
#### Account
> The user account details is returned
```python
mono.getAccount()
```
#### Transactions
>
| params | example
| :--- | :----:
| start | "1-10-2020"
| end | "7-11-2020"
|narration | uber etc
|types | debit, credit
| paginate | true ,false
```python
#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
```python
mono.getStatement()
# statement with filter
mono.getStatement("last12month","pdf")
```
#### Credits
>
get credits details if user
```python
mono.getCredits()
```
#### Debits
```python
mono.getDebits()
```
#### Identity
```python
mono.getIdentity()
```
#### BVN Lookup
| params | example
| :--- | :----:
| bvn | 2256244
```python
mono.bvn_lookup(bvn)
```
## Sanbox to test mono-connect
## LICENSE
MIT LICENSE
# Contribution guides
## Todo
- [ ] Webhook Support