Metadata-Version: 2.4
Name: brave-deepseek-book-review
Version: 1.0.1
Summary: Intelligent book reviews and search using Brave Search API + DeepSeek LLM
Project-URL: Homepage, https://github.com/example/brave-deepseek-book-review
Project-URL: Documentation, https://github.com/example/brave-deepseek-book-review#readme
Project-URL: Repository, https://github.com/example/brave-deepseek-book-review.git
Project-URL: Issues, https://github.com/example/brave-deepseek-book-review/issues
Author-email: Brave-DeepSeek Team <team@example.com>
License: MIT License
        
        Copyright (c) 2025 Brave-DeepSeek Pip Install Service
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
License-File: LICENSE
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Topic :: Internet :: WWW/HTTP :: Indexing/Search
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.8
Requires-Dist: pydantic>=1.8.0
Requires-Dist: requests>=2.25.0
Provides-Extra: dev
Requires-Dist: black>=21.0.0; extra == 'dev'
Requires-Dist: flake8>=3.8.0; extra == 'dev'
Requires-Dist: mypy>=0.800; extra == 'dev'
Requires-Dist: pytest>=6.0.0; extra == 'dev'
Description-Content-Type: text/markdown

# Brave DeepSeek Book Review

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

## Installation

```bash
pip install brave-deepseek-book-review
```

## Quick Start

### Python Library Usage

```python
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

```bash
# 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

```python
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