Skip to main content

Intelligent book reviews and search using Brave Search API + DeepSeek LLM

Project description

Brave DeepSeek Book Review

Intelligent book reviews and search using Brave Search API + DeepSeek LLM for comprehensive book information and analysis.

Installation

pip install brave-deepseek-book-review

Quick Start

Python Library Usage

from brave_deepseek_book_search import BookSearch

# Initialize with API keys
search = BookSearch(
    deepseek_api_key="your_deepseek_api_key",
    brave_api_key="your_brave_api_key"
)

# Generate book review
result = search.find_book("Dune Frank Herbert")

if result.success:
    print(f"Title: {result.title}")
    print(f"Author: {result.author}")
    print(f"Review: {result.description}")
else:
    print(f"Error: {result.error}")

Command Line Usage

# Set environment variables
export DEEPSEEK_API_KEY="your_key"
export BRAVE_API_KEY="your_key" 

# Generate book review
book-review "Dune Frank Herbert"

# JSON output
book-review "1984 George Orwell" --json

# Debug mode
book-review "The Great Gatsby" --debug

Configuration

SearchConfig Options

from brave_deepseek_book_search import BookSearch, SearchConfig

config = SearchConfig(
    max_results=10,                           # Max search results to analyze
    countries=["usa", "uk", "france"],        # Countries to search
    debug_mode=True,                          # Enable debug output
    model="deepseek-chat"                     # DeepSeek model to use
)

search = BookSearch(
    deepseek_api_key="...",
    brave_api_key="...", 
    config=config
)

API Keys

You need API keys from:

  1. DeepSeek: https://platform.deepseek.com/
  2. Brave Search: https://api.search.brave.com/

Features

  • 🌍 Multi-country search (15+ countries supported)
  • 🤖 AI-powered book analysis and review generation
  • 🔍 Intelligent search result synthesis
  • 📚 Comprehensive book information extraction
  • 💰 Cost-optimized API usage
  • 🖥️ Both library and CLI interfaces
  • 📖 Detailed book reviews and summaries

Countries Supported

  • 🇺🇸 USA
  • 🇬🇧 UK
  • 🇫🇷 France
  • 🇩🇪 Germany
  • 🇷🇺 Russia
  • 🇪🇸 Spain
  • 🇮🇹 Italy
  • 🇯🇵 Japan
  • 🇨🇳 China
  • 🇨🇦 Canada
  • 🇦🇺 Australia
  • 🇧🇷 Brazil
  • 🇵🇹 Portugal
  • 🇦🇷 Argentina
  • 🇲🇽 Mexico

License

MIT License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

brave_deepseek_book_review-1.0.1.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

brave_deepseek_book_review-1.0.1-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file brave_deepseek_book_review-1.0.1.tar.gz.

File metadata

File hashes

Hashes for brave_deepseek_book_review-1.0.1.tar.gz
Algorithm Hash digest
SHA256 47e8fabb24dc90b080b9c9004c63fa4bbf058ec456670440679d524cbae8efdb
MD5 e753e66c1aa0470ce8a2cecfb32c44c8
BLAKE2b-256 137151959f62760a15cd17b0831249bfb557cc3bc9806b5abbb023eb41b941bc

See more details on using hashes here.

File details

Details for the file brave_deepseek_book_review-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for brave_deepseek_book_review-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7dc34885bfa10a480c46738dbba4112918b641b3aaa05e467309093fec9da210
MD5 e8baafca734eb78ca3063a7b46a5e689
BLAKE2b-256 d808833a8330dbe2ca79ff663c2840e48dddf791dd0b8bd648bbcb7f883a2952

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page