Installation
Install the Brew SDK using pip:Package Details
| Property | Value |
|---|---|
| Package Name | brew_sdk |
| Version | 0.1.0 |
| License | Apache-2.0 |
| Repository | github.com/GetBrew/brew-python-sdk |
Requirements
Python Version
Python 3.9 or higher is required. Supported Python versions:- Python 3.9
- Python 3.10
- Python 3.11
- Python 3.12
- Python 3.13
Dependencies
The SDK automatically installs these dependencies:| Package | Version | Purpose |
|---|---|---|
httpx | >=0.23.0, <1 | HTTP client |
pydantic | >=1.9.0, <3 | Data validation |
typing-extensions | >=4.10, <5 | Type hints |
anyio | >=3.5.0, <5 | Async support |
distro | >=1.7.0, <2 | Platform detection |
sniffio | latest | Async library detection |
Basic Setup
After installation, import and initialize the client:Configuration Options
The client accepts these configuration options:Fine-Grained Timeout Control
Async Client
For async applications, useAsyncBrewSDK:
await with the async client.
Custom HTTP Client
Configure the underlying httpx client for advanced use cases:Context Manager
Use the client as a context manager to ensure proper cleanup:Verifying Installation
Verify the SDK is installed correctly:Virtual Environments
We recommend using a virtual environment:Next Steps
Need Help?
Our team is ready to support you at every step of your journey with Brew. Choose the option that works best for you:- Self-Service Tools
- Talk to Our Team
Search Documentation
Type in the “Ask any question” search bar at the top left to instantly find relevant documentation pages.
ChatGPT/Claude Integration
Click “Open in ChatGPT” at the top right of any page to analyze documentation with ChatGPT or Claude for deeper insights.