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.

Files for bearer, version 1.1.0
Filename, size File type Python version Upload date Hashes
Filename, size bearer-1.1.0.tar.gz (4.0 kB) File type Source Python version None Upload date Hashes View
Filename, size bearer-1.1.0-py3-none-any.whl (5.5 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page