Python interface to Brokermint's API
Project description
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.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file brokermint-0.0.3.tar.gz.
File metadata
- Download URL: brokermint-0.0.3.tar.gz
- Upload date:
- Size: 23.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.25.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f91c390cf91e9a3d2d46b50df0d94e799d6fda9a7c35b7f4e014424842f43e5e
|
|
| MD5 |
1fa3ab3b0ce646bb20bf8b3b787a7115
|
|
| BLAKE2b-256 |
32108c4d3e875a0beead154ac81845c4a414aa837ee42cb35932782d3d58c3f2
|
File details
Details for the file brokermint-0.0.3-py2.py3-none-any.whl.
File metadata
- Download URL: brokermint-0.0.3-py2.py3-none-any.whl
- Upload date:
- Size: 9.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.25.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e0262b956f6154c82fb2b72574e01b865b0488647ed0f45250f9f6855a368a5b
|
|
| MD5 |
72f5eff60591ad0261acdeda8bf16d61
|
|
| BLAKE2b-256 |
5876314f7ad2970a3b651d491a7bb654fba5c4f11eeb87069cf6128a0c0501f9
|