Python interface to the Brokermint API
Documentation: https://brokermint.dpguthrie.com
Source Code: https://github.com/dpguthrie/brokermint
Brokermint API Documentation: https://brokermint.com/api/
Overview
brokermint is a python interface to data stored in Brokermint.
The interface allows access to data on Brokermint through the Client class:
However, the user must supply an api_key to access or manipulate any data. The user can supply the api_key when instantiating the Client class:
import brokermint as bm
bmc = bm.Client("my_fake_api_key")
Or, you can set the environment variable BM_API_KEY and call the Client class with no arguments: bm.Client()
Linux / MacOS
export BM_API_KEY=my_fake_api_key
Windows
set BM_API_KEY=my_fake_api_key
Note: This environment variable is only available in the current process.
See this link for adding an environment variable that exists outside of this process: https://docs.oracle.com/en/database/oracle/r-enterprise/1.5.1/oread/creating-and-modifying-environment-variables-on-windows.html*
Requirements
Python 3.6+
- Requests - The elegant and simple HTTP library for Python, built for human beings.
Installation
pip install brokermint
Example
import brokermint as bm
bmc = bm.Client(api_key="my_fake_api_key")
# Get Transactions - defaults to 1,000
data = bmc.list_transactions()
# Get Transactions, limit to 5
data = bmc.list_transactions(count=5)
License
This project is licensed under the terms of the MIT license.
Metadata
Release files for brokermint 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| brokermint-0.0.4.tar.gz | 23.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| brokermint-0.0.4-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 32.2 kB
Release files / brokermint-0.0.4.tar.gz
| Download URL | brokermint-0.0.4.tar.gz |
|---|---|
| Size | 23.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
230985f89064d2ecd62fd3d0ff7c1e6fce8b00bb1cafe085671b3ce9ca4f2155
|
|
BLAKE2b-256 checksum How to use checksums |
822b1538264308bf0cbde05c4a5c18827184ac8cfdf4ef828a198f7988bedf88
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.25.0
|
Release files / brokermint-0.0.4-py2.py3-none-any.whl
| Download URL | brokermint-0.0.4-py2.py3-none-any.whl |
|---|---|
| Size | 9.0 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
5199e48fd1456833715acafef112a5267ea5a3ebe83f34ca60229204ceeed2a9
|
|
BLAKE2b-256 checksum How to use checksums |
4c2494744ff4ffc6e7621e4ba586248c52cd87caca94d37cd869ce8e636834cc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.25.0
|