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.5.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

brx-0.1.5-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file brx-0.1.5.tar.gz.

File metadata

  • Download URL: brx-0.1.5.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.13 Linux/6.5.0-1022-azure

File hashes

Hashes for brx-0.1.5.tar.gz
Algorithm Hash digest
SHA256 f7636797fb0271652791b68b43d5120a59bbb5128ae1fbcb45631f28fc73f049
MD5 4fa533e50109e40f1bc13f886158d2a6
BLAKE2b-256 d15f6d0887eb448d2cffde57a31ba7839debadb2a958a9921543630bbb8cb49e

See more details on using hashes here.

File details

Details for the file brx-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: brx-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.13 Linux/6.5.0-1022-azure

File hashes

Hashes for brx-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 c41adcb0122481f03aa544efb9f99598fe28755d1283a9926038ac72fd0ec544
MD5 c1da7467fd762b1dc0f96fbe87d2c839
BLAKE2b-256 beeca3c3bbbcd535273c63dd40463782e7edc102525bf013bb93a49de5a412f5

See more details on using hashes here.

Supported by

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