A Python wrapper for the Brave Search API that provides convenient access to Brave's privacy-preserving search endpoints. Current version 0.2.0, compatible with Python 3.8-3.12. Active development with monthly releases.
pip install brave-searchNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Instantiate with your API key (set as env var BRAVE_API_KEY) and perform a simple web search.
Use 'pip install brave-search' and 'from brave import Brave'.
Set 'BRAVE_API_KEY' environment variable or pass key to 'Brave(api_key="...")'.
Upgrade to >=0.1.8 and pass 'raw=True' to the search method to get raw JSON if validation fails.
Install with 'pip install brave-search' and import as 'from brave import Brave'.
Set 'BRAVE_API_KEY' environment variable or pass key to 'Brave(api_key="...")'.
Upgrade to >=0.1.8 and use 'raw=True' in the search call to bypass validation, or handle the error gracefully.