Metadata-Version: 2.4
Name: leetagent
Version: 1.0.3
Summary: LeetAgentAutoSat — The Smart LeetCode AI Automation Tool
Home-page: https://github.com/satyamyadav/leetagent
Author: Satyam Yadav
Author-email: Satyam Yadav <satyamyadavaiml@gmail.com>
Maintainer-email: Satyam Yadav <satyamyadavaiml@gmail.com>
License-Expression: MIT
Project-URL: Homepage, https://github.com/satyamyadav/leetagent
Project-URL: Documentation, https://github.com/satyamyadav/leetagent#readme
Project-URL: Repository, https://github.com/satyamyadav/leetagent
Project-URL: Bug Tracker, https://github.com/satyamyadav/leetagent/issues
Keywords: leetcode,automation,ai,gemini,selenium,coding,interview-prep
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Code Generators
Classifier: Topic :: Education
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: google-generativeai>=0.3.0
Requires-Dist: selenium>=4.15.0
Requires-Dist: webdriver-manager>=4.0.1
Requires-Dist: requests>=2.31.0
Requires-Dist: httpx>=0.25.0
Requires-Dist: python-dotenv>=1.0.0
Requires-Dist: keyring>=24.0.0
Requires-Dist: rich>=13.7.0
Requires-Dist: typer>=0.9.0
Requires-Dist: click>=8.1.0
Requires-Dist: aiohttp>=3.9.0
Provides-Extra: dev
Requires-Dist: pytest>=7.4.0; extra == "dev"
Requires-Dist: pytest-cov>=4.1.0; extra == "dev"
Requires-Dist: pytest-asyncio>=0.21.0; extra == "dev"
Requires-Dist: black>=23.0.0; extra == "dev"
Requires-Dist: flake8>=6.1.0; extra == "dev"
Requires-Dist: mypy>=1.7.0; extra == "dev"
Provides-Extra: ai
Requires-Dist: langchain>=0.1.0; extra == "ai"
Requires-Dist: langchain-openai>=0.0.2; extra == "ai"
Requires-Dist: chromadb>=0.4.0; extra == "ai"
Requires-Dist: openai>=1.0.0; extra == "ai"
Dynamic: author
Dynamic: home-page
Dynamic: license-file
Dynamic: requires-python

# 🚀 LeetAgent - AI-Powered LeetCode Automation

**Automate your LeetCode daily challenges with AI-generated solutions in one command.**

LeetAgent is an intelligent automation tool that fetches, solves, and submits LeetCode problems using Google Gemini AI. Perfect for maintaining your coding streak, practicing different approaches, and learning from AI-generated solutions with detailed explanations.

**Features:** AI-powered solution generation • Browser automation with Selenium • Multi-language support (Python, C#, Java, JavaScript) • Telegram notifications • Interactive CLI with Rich UI • Robust retry logic • Session management

## 🎯 Quick Start

```bash
# Install
pip install leetagent

# Check installation and PATH setup
python -m leetagent-doctor

# Configure (interactive wizard)
leetagent config

# Solve today's daily challenge
leetagent solve

# Login to LeetCode (one-time setup)
leetagent login
```

**Note:** If `leetagent` command doesn't work, run `python -m leetagent` or `python -m leetagent-doctor` for PATH setup instructions.

## 📦 What You Get

- **One-command automation** - `leetagent solve` handles everything
- **AI-powered solutions** - Google Gemini generates optimized code
- **5 submission strategies** - Multiple fallback methods for reliability
- **Smart notifications** - Success/failure alerts via Telegram
- **Beautiful CLI** - Rich terminal UI with progress indicators
- **Session persistence** - Login once, use forever

## 🔑 Requirements

- Python 3.10+
- Google Chrome browser
- [Gemini API key](https://makersuite.google.com/app/apikey) (free)
- [Telegram bot token](https://t.me/BotFather) (optional, for notifications)

## 📖 Documentation

**Full documentation:** [github.com/satyamyadav/leetagent](https://github.com/satyamyadav/leetagent)

- [Complete Setup Guide](https://github.com/satyamyadav/leetagent/blob/main/docs/SETUP.md)
- [Usage Examples](https://github.com/satyamyadav/leetagent/blob/main/docs/USAGE.md)
- [Configuration Reference](https://github.com/satyamyadav/leetagent/blob/main/docs/CONFIG.md)
- [Troubleshooting](https://github.com/satyamyadav/leetagent/blob/main/docs/TROUBLESHOOTING.md)

## 🎨 Usage Examples

```bash
# Solve specific problem
leetagent solve https://leetcode.com/problems/two-sum/

# Use different language
leetagent solve --language python

# Interactive mode with menu
leetagent --interactive

# View configuration
leetagent config-show

# Check status
leetagent status
```

## 🏗️ Architecture

Modular design with clean separation:
- **Core modules**: Scraper, AI generator, formatter, notifier
- **Browser automation**: Selenium with 5 submission strategies
- **AI agents**: Decision agent for approach analysis
- **CLI**: Interactive Typer-based interface

## 🤝 Contributing

Contributions welcome! Visit [GitHub repository](https://github.com/satyamyadav/leetagent) for:
- Source code
- Issue reporting
- Feature requests
- Development guide

## 📄 License

MIT License - see [LICENSE](https://github.com/satyamyadav/leetagent/blob/main/LICENSE) for details.

## 🙏 Credits

Built with: Google Gemini AI • Selenium WebDriver • Rich UI • Typer CLI

---

**⭐ [Star on GitHub](https://github.com/satyamyadav/leetagent) if you find this useful!**
