Skip to main content

Use the BRX API using Python.

Project description

brx-python

Welcome to the the documentation for the BRX Python package.

Get started with the examples located in tests.py.

It's easy to implement BRX's Python package:

  1. Initialize your BRX Client with your access token:
brx_client = BRX(os.environ.get("BRX_ACCESS_TOKEN")) 
  1. Get your schema from your dashboard
  2. Convert your schema to a modifiable query
query_rebuild = sftoq(schema)
  1. Extract the input fields, and set your desired values.
output_object = query_rebuild["brx_query"]
input_fields = query_rebuild["input_fields"]
  1. Set your desired values
for index, input_field in enumerate(input_fields):
    input_fields[index]["value"] = input(f"Please enter the value for {input_field['name']}: ")
  1. Update your query
updated_query = uif(input_fields, output_object)
  1. Run your BRX!
result = brx_client.execute(updated_query["brx_query"])

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

brx-0.1.2.tar.gz (2.6 kB view hashes)

Uploaded Source

Built Distribution

brx-0.1.2-py3-none-any.whl (3.0 kB view hashes)

Uploaded Python 3

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