{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/15"}],"enrichment":{"capability":"Provides a Python client library for the Braintrust REST API with type-safe request and response handling, supporting both synchronous and asynchronous operations.","skillfed_tags":["api-client","async-support","type-safe"],"use_cases":["Build a Python application that creates and manages Braintrust projects programmatically with full type safety.","Integrate Braintrust API calls into an async/await workflow for non-blocking I/O in concurrent applications.","Iterate over paginated Braintrust API responses automatically without manually tracking cursors or page tokens.","Catch and handle specific API errors (rate limits, authentication failures, timeouts) with dedicated exception types.","Serialize Braintrust API responses to JSON or dictionaries for logging, caching, or downstream processing."],"what_it_does":"Braintrust-api is the official Python client for the Braintrust REST API, generated using Stainless. It wraps HTTP calls to Braintrust's service with full type annotations for request parameters and response objects, enabling IDE autocomplete and type checking. The library ships both synchronous and asynchronous clients powered by httpx, so you can choose the concurrency model that fits your application.\n\nTypical usage involves instantiating a Braintrust client with an API key, then calling methods like client.projects.create() or client.projects.list(). Responses are Pydantic models with helper methods for JSON serialization and dictionary conversion. The library handles pagination automatically via iterators, retries transient errors up to 2 times by default, and raises specific exception types (APIConnectionError, RateLimitError, APIStatusError) so you can handle failures gracefully.","worth_installing":"Yes. The library is actively maintained, has low install friction, carries no known vulnerabilities, and is licensed permissively. It is well-suited for any Python project that needs to interact with the Braintrust API. The main prerequisite is a valid API key and network access to Braintrust's service."},"id":"braintrust-api","links":{"html":"https://skillfed.io/packages/braintrust-api","md":"https://skillfed.io/packages/braintrust-api.md","pypi":"https://pypi.org/project/braintrust-api/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2024-11-28","license_spdx":null,"license_treatment":"permissive","name":"braintrust-api","python_support":"supports_current","summary":"The official Python library for the braintrust API"},"popularity":{"monthly_downloads":218120,"position":9343,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.6.0"}
