Skip to content

Releases: kayvane1/brave-api

v.0.2.0

27 Apr 15:43
d413c91
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.1.8...v.0.2.0

Return Raw response & validation fixes

11 Mar 22:03
1889eb4
Compare
Choose a tag to compare

Fixed validation errors in pydantic models for:

  • book
  • thumbnail
  • news
  • web_search

Users can return raw if pydantic validation fails to not block them 🔥

from brave import Brave

query = "George Orwell, 1984"
num_results = 10

search_results = brave.search(q=query, raw=True)

@harishankar-gopalan fixed a compatability issue with Python 3.9 🚀

Add Apache 2.0 License

09 Mar 12:29
842c7f7
Compare
Choose a tag to compare

Adds permissive license for users to build on top of brave-api

Pydantic model updates following Brave changes

21 Feb 19:21
1161030
Compare
Choose a tag to compare

@dmabry - Fixed errors in the WebResponseSearch and updated QAPage to appropriately use Answer. Also made several fields optional as they don't always seem to be included depending on the query and response from Brave. 🚀

Fix Brave Pypi page

21 Feb 19:17
aa05029
Compare
Choose a tag to compare

Fixes reference on pypi to pull the readme

Adds Initial Tests

19 Dec 12:34
5657b06
Compare
Choose a tag to compare
  • Adds initial tests for the repository
  • Test coverage is at 92% but more fine-grained tests need to be built as pydantic is very strict and used on all responses

Minor Fixes

05 Dec 10:39
Compare
Choose a tag to compare
  • Fixes issue in pydantic class which meant urls , descriptions, product_clusters and their downstream methods were returning an error.
  • removes requirement for Python 3.11 for better cross-project compatibility

v0.1.0

04 Dec 15:15
d523413
Compare
Choose a tag to compare

This package provides a convenient way to integrate Brave's privacy-preserving search capabilities into your Python projects.

Overview

brave-search is designed to interact seamlessly with the Brave Search API, offering a range of endpoints to build diverse applications. Emphasizing privacy, Brave Search does not track users or their queries, making it an ideal alternative to traditional search engines.

Installation

You can install the package using pip install brave-search

Features

  • Search Functionality
    • Supports both synchronous and asynchronous requests.
    • API key can be set as an environment variable or passed directly.
    • Retrieve Web, News, and Video results.
  • Specialized Methods
    • Download PDFs: Download all PDFs found in the search results.
    • Aggregate Price Data: Get a list of prices from search results.
    • Aggregate Review Data: Calculate the average review score on a 100-point scale.
  • Goggles Integration
    • Customize search result ranking using goggles for specific use cases.
    • Includes support for community-contributed Goggles.