Add your description here
Project description
🚀 Getting Started
The easiest way to get traces flowing is to add the SDK to your app.
Install:
pip install brixo
Instrument your code:
from brixo import Brixo, interaction, begin_context, update_context
def process_response(response)
# do some job with the response
update_context(output=response.result)
@interaction("Agent Run")
def main():
prompt = "What’s the weather where I am?"
begin_context(
customer={"id": "1"},
user={"email": "user@example.com"},
session_id="session-123",
metadata={"env": "demo"},
input=prompt,
)
# call your agent / chain here and attach the output
response = agent.invoke(prompt={"messages": [{ "role": "user", "content": prompt }]})
process_response(response)
if __name__ == "__main__":
Brixo.init(app_name="example-app")
main()
Set BRIXO_API_KEY to avoid hardcoding secrets.
For full examples, see examples/.
Development
Running tests
uv run pytest
Docker
docker compose run --rm package-dev bash
Login to Codex using ChatGPT account inside the container
- Open a bash inside the container
docker compose run --rm package-dev bash
- Start the login process
codex login
- Copy the login URL and paste in the browser, login with your account and copy the callback URL that starts with
http://localhost:1455/auth/callback... - Find the name of the running docker container and with the callback URL, run the following command
docker exec -it brixo-package-dev-run-RUN_SUFFIX curl "http://localhost:1455/auth/callback..."
- Check the login status with:
codex login status
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
brixo-0.1.0.tar.gz
(4.0 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
brixo-0.1.0-py3-none-any.whl
(5.5 kB
view details)
File details
Details for the file brixo-0.1.0.tar.gz.
File metadata
- Download URL: brixo-0.1.0.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.16 {"installer":{"name":"uv","version":"0.9.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fde4428024f0626e4ecffd5163f027cf480b8e29ce25dd88ae3d563495d7fb65
|
|
| MD5 |
27f169f07aa623706b0fab53509b7594
|
|
| BLAKE2b-256 |
3dc363010de9b94d87bdaed4c837fce4a4296c742899f61b6dcac357ec381712
|
File details
Details for the file brixo-0.1.0-py3-none-any.whl.
File metadata
- Download URL: brixo-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.16 {"installer":{"name":"uv","version":"0.9.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3375f2647f8e66d5cf544745c8648d4bab5a91b831c92d2ce54befc55acbd403
|
|
| MD5 |
c2efdfce3b68d45f0d83cf5942a098c4
|
|
| BLAKE2b-256 |
c365257dfecada6a5340e3f479467a2dda1432f94f96a84fc763484a499f3438
|