skillfed

brave-search-python-client

🦁 Brave Search Python Client supporting Web, Image, News and Video search.

brave-search-python-client v0.4.27 85.3K downloads/30d#13,932 on PyPI13
Permissive license MIT License Copyright (c) [2025] [Helmut Hoffer von Ankershoffen (helmuthva@googlemail.com)] Permission is hereby granted, free of charge, to any person obtaining a copy of this software and… (full text in the JSON record) Active released

What it is and what it does

Brave Search Python Client is an async-first wrapper around the Brave Search API that lets you perform web, image, news, and video searches from Python code. It uses pydantic-settings for configuration, tenacity for resilience, and typer for its command-line interface. The library is designed to work with current Python versions (3.11, 3.12, 3.13) and includes both a programmatic API for integration into applications and a CLI for shell scripts.

Typical use cases include adding search capabilities to Python applications, giving language models access to current web information, and running searches from the command line. The package is in pre-alpha development status but actively maintained, with comprehensive documentation, examples, and test coverage.

Use it for:

  • Integrate web search into Python applications so users can find current information without leaving your app.
  • Add real-time web data to LLM applications to supplement model knowledge with current search results.
  • Use the CLI in shell scripts to fetch search results in JSON format for further processing.
  • Build image or video search features into web or desktop applications.
  • Create news aggregation tools that pull recent articles on specific topics.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

A Python client library for the Brave Search API that supports web, image, news, and video search with both async library and CLI interfaces.

Yes, with conditions. The package is actively maintained, has low install friction, and offers a clean async API with CLI support. However, it is marked pre-alpha, so expect potential API changes. You must obtain a Brave Search API key and be aware of the free tier's 2,000 monthly request limit. If you need a stable, production-ready search client and can work within those constraints, this is a solid choice.

Install

brave-search-python-client on PyPI

pip

pip install brave-search-python-client

uv

uv add brave-search-python-client

poetry

poetry add brave-search-python-client

Installing brave-search-python-client

Before you install

Low install friction with a pure-Python wheel and only three runtime dependencies (pydantic-settings, tenacity, typer). Actively maintained with recent releases; last commit 2026-08-08.

License in practice

MIT license is permissive; you can use, modify, and distribute this package freely in commercial and private projects without restriction.

Quickstart

pip install brave-search-python-client

import asyncio
from brave_search_python_client import BraveSearch, WebSearchRequest

async def search():
    client = BraveSearch()
    response = await client.web(WebSearchRequest(q="python"))
    return response

asyncio.run(search())

Requires a Brave Search API key (obtain from https://brave.com/search/api/); free tier includes 2,000 requests per month.

Verify before relying

  • Whether tenacity is used for automatic retry logic on API failures
  • Specific rate-limiting behavior and how it interacts with the free tier quota

Package facts

License MIT License Copyright (c) [2025] [Helmut Hoffer von Ankershoffen (helmuthva@googlemail.com)] Permission is hereby granted, free of charge, to any person obtaining a copy of this software and… (full text in the JSON record) (permissive)
Python support supports the current Python release (<4.0,>=3.11)
Install friction low — pure-Python wheel
Runtime dependencies 3 — pydantic-settings, tenacity, typer
Maintenance actively maintained — 474 days since the last release
Last repo commit
First released
Downloads 85,306/month — #13,932 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: brave_search_python_client-0.4.27-py3-none-any.whl

Keywords: act, api, brave, brave-api, brave-search, brave-search-api, brave-search-python-client, bravesearch, bravesearchapi, codecov, copier, cyclonedx, detect-secrets, devcontainer, docker, git-cliff, jupyter, marimo, mypy, nox, oe-python-template, pip-audit, pip-licenses, pre-commit, pydantic, pypi, pytest, python, readthedocs, ruff, sonarcloud, sonarqube, sphinx, streamlit, typer, uv, web-search, websearch

Development Status :: 2 - Pre-AlphaFramework :: AsyncIOFramework :: PydanticFramework :: PytestIntended Audience :: DevelopersIntended Audience :: End Users/DesktopLicense :: OSI Approved :: MIT LicenseNatural Language :: EnglishOperating System :: MacOS :: MacOS XOperating System :: Microsoft :: WindowsOperating System :: POSIX :: LinuxProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Typing :: Typed

Tags

brave search api python clientweb search integration pythonimage news video search apiasync search client librarybrave search cli tool
search-apiasync-clientcli-tool

More WWW/HTTP packages