Name | braintrust JSON |
Version |
0.2.7
JSON |
| download |
home_page | https://www.braintrust.dev |
Summary | SDK for integrating Braintrust |
upload_time | 2025-09-11 23:44:58 |
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/9e/ab/199161c7810f9c22fd04dff374075536fc66aabcca5ea522296aedeb6378/braintrust-0.2.7.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.7",
"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": "8202f704c8ea68622286dd7aaa16a3a223a9ee2f8b337c86c652d111aa05b442",
"md5": "6230d7b263eff9cc82f9e6dd5196a428",
"sha256": "735e1b32a785e144756c4821e0515dd40dca921c86c417000f4b5617024f1349"
},
"downloads": -1,
"filename": "braintrust-0.2.7-py3-none-any.whl",
"has_sig": false,
"md5_digest": "6230d7b263eff9cc82f9e6dd5196a428",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8.0",
"size": 214417,
"upload_time": "2025-09-11T23:44:57",
"upload_time_iso_8601": "2025-09-11T23:44:57.028306Z",
"url": "https://files.pythonhosted.org/packages/82/02/f704c8ea68622286dd7aaa16a3a223a9ee2f8b337c86c652d111aa05b442/braintrust-0.2.7-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "9eab199161c7810f9c22fd04dff374075536fc66aabcca5ea522296aedeb6378",
"md5": "a3a835fc4f215e853a6cc1e7b7d46143",
"sha256": "faa9d54c2d6dac30b11d9b4b68817aa1258aeab5945758159107fb6402ac5b80"
},
"downloads": -1,
"filename": "braintrust-0.2.7.tar.gz",
"has_sig": false,
"md5_digest": "a3a835fc4f215e853a6cc1e7b7d46143",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8.0",
"size": 184823,
"upload_time": "2025-09-11T23:44:58",
"upload_time_iso_8601": "2025-09-11T23:44:58.661727Z",
"url": "https://files.pythonhosted.org/packages/9e/ab/199161c7810f9c22fd04dff374075536fc66aabcca5ea522296aedeb6378/braintrust-0.2.7.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-09-11 23:44:58",
"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"
}