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:
- DeepSeek: https://platform.deepseek.com/
- 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file brave_deepseek_book_review-1.0.1.tar.gz.
File metadata
- Download URL: brave_deepseek_book_review-1.0.1.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
47e8fabb24dc90b080b9c9004c63fa4bbf058ec456670440679d524cbae8efdb
|
|
| MD5 |
e753e66c1aa0470ce8a2cecfb32c44c8
|
|
| BLAKE2b-256 |
137151959f62760a15cd17b0831249bfb557cc3bc9806b5abbb023eb41b941bc
|
File details
Details for the file brave_deepseek_book_review-1.0.1-py3-none-any.whl.
File metadata
- Download URL: brave_deepseek_book_review-1.0.1-py3-none-any.whl
- Upload date:
- Size: 8.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7dc34885bfa10a480c46738dbba4112918b641b3aaa05e467309093fec9da210
|
|
| MD5 |
e8baafca734eb78ca3063a7b46a5e689
|
|
| BLAKE2b-256 |
d808833a8330dbe2ca79ff663c2840e48dddf791dd0b8bd648bbcb7f883a2952
|