Skip to main content

Python interface to Brokermint's API

Project description

Python interface to the Brokermint API

Coverage Package version


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

brokermint-0.0.2.tar.gz (23.3 kB view details)

Uploaded Source

Built Distribution

brokermint-0.0.2-py2.py3-none-any.whl (8.8 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file brokermint-0.0.2.tar.gz.

File metadata

  • Download URL: brokermint-0.0.2.tar.gz
  • Upload date:
  • Size: 23.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.25.0

File hashes

Hashes for brokermint-0.0.2.tar.gz
Algorithm Hash digest
SHA256 5f349bb8cd97b92ded6e90cb8aeb02f7c76114f989d1213f60ee4facdf1296e9
MD5 72c60e83e35730376dbf94cf2295ab85
BLAKE2b-256 3a1f39c46f444e964506d3db2b806d14fbc911d7107cf9a0f75634f8a8f9c6d3

See more details on using hashes here.

File details

Details for the file brokermint-0.0.2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for brokermint-0.0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 df8ca332a148a393d303c196a7d5248079e3ff0a02749384e75e071737e21e63
MD5 2bbeb50d0105cba24fc3c5a25af9d367
BLAKE2b-256 fe6410c3e4099e0e9bfebe07c0c97fdefb6ee535ce0a49fe2edd53ff7a843fb4

See more details on using hashes here.

Supported by

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