Skip to main content

Bearer python helper

Project description

Bearer Python

Bearer Python client


pip install bearer


Get your Bearer API Key and integration id from the Dashboard and use the Bearer client as follows:

Calling any APIs

from bearer import Bearer

bearer = Bearer('your api key') # find it on
github = (
      .integration('your integration id') # you'll find it on the Bearer dashboard
      .auth('your auth id') # Create an auth id for your integration via the dashboard


We use requests internally and we return the response from this library from the request methods (request, get, head, post, put, patch, delete).

More advanced examples:

# With query parameters
print(github.get('/repositories', query={ 'since': 364 }).json())

# With body data
print('/user/repos', body={ 'name': 'Just setting up my' }).json())

Calling custom functions

from bearer import Bearer

bearer = Bearer('your api key')
github = bearer.integration('your integration id')

print(github.invoke('your function name'))

Learn more on how to use custom functions with

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
bearer-1.1.0-py3-none-any.whl (5.5 kB) Copy SHA256 hash SHA256 Wheel py3
bearer-1.1.0.tar.gz (4.0 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page