Skip to main content
Python Brink API Wrapper
========================

Install the Python Package
-------------------------

::

$ pip install python-brink


Using the API
--------------

1. Login to the api to receive a jwt token that can be used in future requests without the need to reauthenticate

.. code-block:: python

from brink.client import BrinkAPI
from brink.exceptions import BrinkAPIException

api = BrinkAPI()

try:
# Login to the api via username and password
access = api.login( 'username', 'password' )

except BrinkApiException, e:

# Login error
exit()

jwt_token = access['jwt_token']

# After logging in using the api.login() method, the token is already set so additional
# requests can be handled correctly
flights = api.getFlights()

2. If you already have a jwt token prepared, you can use it when creating the api instance and bypass logging in.

.. code-block:: python

from brink.client import BrinkAPI

token='eyJ0eXAiOiJKV1QiLCJhbGc...'
api = BrinkAPI(token)

# Get flights
flights = api.getFlights()

# Get details for a specific flights
flight = api.getFlight(10)

# Get data points for a specific flight
params = { 'page': 1, 'per_page': 50 }
flight_data = api.getFlightData(10,params)

Metadata

Release files for python-brink 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for python-brink 0.0.1
File Size Uploaded Provenance Actions
python-brink-0.0.1.zip 6.7 kB Without provenance Details for python-brink-0.0.1.zip

Release files / python-brink-0.0.1.zip

Download URL python-brink-0.0.1.zip
Size 6.7 kB
Tags Source
SHA-256 checksum
How to use checksums
364e53961d64d311fdb63868e789d6422d7b0348470d430306ee5919601b9e44
BLAKE2b-256 checksum
How to use checksums
a99044f8176bfa74c736a6155e642f7a9d2d37e743bf9fcf62edfa9f895f6fb4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for python-brink 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.1 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page