Skip to main content

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"])

Release files for brx 0.1.5

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

Source distribution (sdist)

Source distribution for brx 0.1.5
File Size Uploaded
brx-0.1.5.tar.gz 3.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for brx 0.1.5
File Interpreter ABI Platform
brx-0.1.5-py3-none-any.whl Python 3 none any Details

Total release size: 6.6 kB

Release files / brx-0.1.5.tar.gz

Download URL brx-0.1.5.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
f7636797fb0271652791b68b43d5120a59bbb5128ae1fbcb45631f28fc73f049
BLAKE2b-256 checksum
How to use checksums
d15f6d0887eb448d2cffde57a31ba7839debadb2a958a9921543630bbb8cb49e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.10.13 Linux/6.5.0-1022-azure

Release files / brx-0.1.5-py3-none-any.whl

Download URL brx-0.1.5-py3-none-any.whl
Size 3.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c41adcb0122481f03aa544efb9f99598fe28755d1283a9926038ac72fd0ec544
BLAKE2b-256 checksum
How to use checksums
beeca3c3bbbcd535273c63dd40463782e7edc102525bf013bb93a49de5a412f5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.10.13 Linux/6.5.0-1022-azure

Release history Release notifications | RSS feed

This release

0.1.5 This release

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

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