Name | braintrust JSON |
Version |
0.2.6
JSON |
| download |
home_page | https://www.braintrust.dev |
Summary | SDK for integrating Braintrust |
upload_time | 2025-08-27 18:13:01 |
maintainer | None |
docs_url | None |
author | Braintrust |
requires_python | >=3.8.0 |
license | None |
keywords |
|
VCS |
 |
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
## Braintrust
A Python library for logging data to Braintrust. `braintrust` is distributed as
a [library on PyPI](https://pypi.org/project/braintrust/). It is open source and
[available on GitHub](https://github.com/braintrustdata/braintrust-sdk/tree/main/py).
### Quickstart
Install the library with pip.
```bash
pip install braintrust
```
Then, run a simple experiment with the following code (replace `YOUR_API_KEY` with
your Braintrust API key):
```python
from braintrust import Eval
def is_equal(expected, output):
return expected == output
Eval(
"Say Hi Bot",
data=lambda: [
{
"input": "Foo",
"expected": "Hi Foo",
},
{
"input": "Bar",
"expected": "Hello Bar",
},
], # Replace with your eval dataset
task=lambda input: "Hi " + input, # Replace with your LLM call
scores=[is_equal],
)
```
Raw data
{
"_id": null,
"home_page": "https://www.braintrust.dev",
"name": "braintrust",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8.0",
"maintainer_email": null,
"keywords": null,
"author": "Braintrust",
"author_email": "info@braintrust.dev",
"download_url": "https://files.pythonhosted.org/packages/e8/66/d8bf0a99a29ec7c6cbf47a1e9416ea2f9dcab7bf6d6539cd6a8e755ec22f/braintrust-0.2.6.tar.gz",
"platform": null,
"description": "## Braintrust\n\nA Python library for logging data to Braintrust. `braintrust` is distributed as\na [library on PyPI](https://pypi.org/project/braintrust/). It is open source and\n[available on GitHub](https://github.com/braintrustdata/braintrust-sdk/tree/main/py).\n\n### Quickstart\n\nInstall the library with pip.\n\n```bash\npip install braintrust\n```\n\nThen, run a simple experiment with the following code (replace `YOUR_API_KEY` with\nyour Braintrust API key):\n\n```python\nfrom braintrust import Eval\n\ndef is_equal(expected, output):\n return expected == output\n\nEval(\n \"Say Hi Bot\",\n data=lambda: [\n {\n \"input\": \"Foo\",\n \"expected\": \"Hi Foo\",\n },\n {\n \"input\": \"Bar\",\n \"expected\": \"Hello Bar\",\n },\n ], # Replace with your eval dataset\n task=lambda input: \"Hi \" + input, # Replace with your LLM call\n scores=[is_equal],\n)\n```\n",
"bugtrack_url": null,
"license": null,
"summary": "SDK for integrating Braintrust",
"version": "0.2.6",
"project_urls": {
"Bug Tracker": "https://github.com/braintrustdata/braintrust-sdk/issues",
"Homepage": "https://www.braintrust.dev",
"Source Code": "https://github.com/braintrustdata/braintrust-sdk"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "c2868d4bb3b0ab6dd40d2d428bb0b48d29601ed2a344aa6c618378311a73844a",
"md5": "f443c86573eee9ced9c1b699dbc5a33b",
"sha256": "d07f1666881c25a8d65a04cfb84f45a0016531928eb3133172942fae49f9a8f8"
},
"downloads": -1,
"filename": "braintrust-0.2.6-py3-none-any.whl",
"has_sig": false,
"md5_digest": "f443c86573eee9ced9c1b699dbc5a33b",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8.0",
"size": 210465,
"upload_time": "2025-08-27T18:13:00",
"upload_time_iso_8601": "2025-08-27T18:13:00.503147Z",
"url": "https://files.pythonhosted.org/packages/c2/86/8d4bb3b0ab6dd40d2d428bb0b48d29601ed2a344aa6c618378311a73844a/braintrust-0.2.6-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "e866d8bf0a99a29ec7c6cbf47a1e9416ea2f9dcab7bf6d6539cd6a8e755ec22f",
"md5": "a3ec9bfbf569a86395a9e694ca378928",
"sha256": "e9c2ae3cce09a8562fa436bc6ec20039c495a6f82928ac36050b5fbc7b89743a"
},
"downloads": -1,
"filename": "braintrust-0.2.6.tar.gz",
"has_sig": false,
"md5_digest": "a3ec9bfbf569a86395a9e694ca378928",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8.0",
"size": 180921,
"upload_time": "2025-08-27T18:13:01",
"upload_time_iso_8601": "2025-08-27T18:13:01.804926Z",
"url": "https://files.pythonhosted.org/packages/e8/66/d8bf0a99a29ec7c6cbf47a1e9416ea2f9dcab7bf6d6539cd6a8e755ec22f/braintrust-0.2.6.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-08-27 18:13:01",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "braintrustdata",
"github_project": "braintrust-sdk",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "braintrust"
}