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:
- Initialize your BRX Client with your access token:
brx_client = BRX(os.environ.get("BRX_ACCESS_TOKEN"))
- Get your schema from your dashboard
- Convert your schema to a modifiable query
query_rebuild = sftoq(schema)
- Extract the input fields, and set your desired values.
output_object = query_rebuild["brx_query"]
input_fields = query_rebuild["input_fields"]
- 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']}: ")
- Update your query
updated_query = uif(input_fields, output_object)
- 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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
brx-0.1.5-py3-none-any.whl
(3.5 kB
view details)
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f7636797fb0271652791b68b43d5120a59bbb5128ae1fbcb45631f28fc73f049
|
|
| MD5 |
4fa533e50109e40f1bc13f886158d2a6
|
|
| BLAKE2b-256 |
d15f6d0887eb448d2cffde57a31ba7839debadb2a958a9921543630bbb8cb49e
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c41adcb0122481f03aa544efb9f99598fe28755d1283a9926038ac72fd0ec544
|
|
| MD5 |
c1da7467fd762b1dc0f96fbe87d2c839
|
|
| BLAKE2b-256 |
beeca3c3bbbcd535273c63dd40463782e7edc102525bf013bb93a49de5a412f5
|