Metadata-Version: 2.4
Name: maahelper
Version: 0.0.5
Summary: MaaHelper - Advanced AI-powered coding assistant with real-time analysis and Git integration
Home-page: https://github.com/AIMLDev726/maahelper
Author: AIStudent
Author-email: AIStudent <aistudentlearn4@gmail.com>
Maintainer: AIMLDev726
Maintainer-email: AIMLDev726 <aistudentlearn4@gmail.com>
License-Expression: MIT
Project-URL: Homepage, https://github.com/AIMLDev726/maahelper
Project-URL: Documentation, https://github.com/AIMLDev726/maahelper#readme
Project-URL: Repository, https://github.com/AIMLDev726/maahelper
Project-URL: Bug Tracker, https://github.com/AIMLDev726/maahelper/issues
Project-URL: Changelog, https://github.com/AIMLDev726/maahelper/blob/main/CHANGELOG.md
Keywords: ai,assistant,code-analysis,bug-fixing,automation
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Software Development :: Quality Assurance
Classifier: Topic :: Software Development :: Code Generators
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
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: Programming Language :: Python :: 3.12
Classifier: Operating System :: OS Independent
Classifier: Environment :: Console
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: openai>=1.0.0
Requires-Dist: rich>=13.0.0
Requires-Dist: structlog>=23.0.0
Requires-Dist: cryptography>=3.4.0
Requires-Dist: aiohttp>=3.8.0
Requires-Dist: watchdog>=3.0.0
Requires-Dist: gitpython>=3.1.0
Requires-Dist: pathlib2; python_version < "3.4"
Requires-Dist: googlesearch-python>=1.2.0
Requires-Dist: typing-extensions>=4.0.0; python_version < "3.10"
Requires-Dist: aiofiles>=23.0.0
Requires-Dist: pygls>=1.0.0; extra == "lsp"
Provides-Extra: dev
Requires-Dist: pytest>=6.0; extra == "dev"
Requires-Dist: pytest-cov; extra == "dev"
Requires-Dist: black; extra == "dev"
Requires-Dist: flake8; extra == "dev"
Requires-Dist: mypy; extra == "dev"
Requires-Dist: pre-commit; extra == "dev"
Provides-Extra: test
Requires-Dist: pytest>=6.0; extra == "test"
Requires-Dist: pytest-cov; extra == "test"
Provides-Extra: lsp
Requires-Dist: pygls>=1.0.0; extra == "lsp"
Provides-Extra: ide
Requires-Dist: pygls>=1.0.0; extra == "ide"
Requires-Dist: aiofiles>=23.0.0; extra == "ide"
Provides-Extra: workflows
Requires-Dist: aiofiles>=23.0.0; extra == "workflows"
Dynamic: author
Dynamic: home-page
Dynamic: license-file
Dynamic: maintainer
Dynamic: requires-python


# 🙏 MaaHelper v0.0.5

**Advanced AI-Powered Coding Assistant with Real-time Analysis & Git Integration**

Created by **Meet Solanki (AIML Student)**

[![PyPI version](https://badge.fury.io/py/maahelper.svg)](https://badge.fury.io/py/maahelper)
[![Python 3.8+](https://img.shields.io/badge/python-3.8+-blue.svg)](https://www.python.org/downloads/)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)


## ✨ Features

### 🎯 Core Features
- 🎨 **Rich CLI**: Real-time streaming, beautiful panels, markdown/code rendering
- 🤖 **Multi-Provider AI**: OpenAI, Groq, Anthropic, Google, Ollama
- 📁 **AI File Analysis**: `file-search <filepath>` for code/data/doc files
- 🔐 **Secure API Key Management**: Local encrypted storage in `C:/Users/<username>/.maahelper/`
- 💬 **Interactive Chat**: Persistent conversation history, context-aware
- 🚀 **Async Performance**: Fast streaming, low memory, instant startup
- 📊 **Live Stats**: Session, file, and model metrics

### 🆕 New in v0.0.5
- 🤖 **Custom Agent Prompts (Vibecoding)**: Specialized AI workflows for coding tasks
- 🔍 **Dynamic Model Discovery**: Auto-fetch latest models from all providers
- 📊 **Real-time Code Analysis**: Live error detection and suggestions
- 🔧 **Smart Git Integration**: AI-powered commit messages and branch suggestions
- ⚡ **Enhanced Performance**: Rate limiting, memory management, and caching


## 🚀 Quick Start

### Installation

```bash
pip install maahelper
```

### 📓 Complete Tutorial
**NEW**: Interactive Jupyter notebook with step-by-step guide!

```bash
# Download and run the complete tutorial
jupyter notebook MaaHelper_Getting_Started.ipynb
```

The notebook covers:
- ✅ Installation & API key setup
- ✅ Basic to advanced usage
- ✅ All new v0.0.5 features
- ✅ Pro tips and workflows

### Usage

```bash
# Start the CLI
maahelper

# Try new v0.0.5 commands
> prompts             # 🆕 List custom AI agent prompts
> code-review         # 🆕 AI-powered code review
> bug-analysis        # 🆕 Deep bug analysis
> discover-models     # Auto-discover latest AI models
> analyze-start       # Start real-time code analysis
> git-commit          # AI-powered smart commits

# Or run via Python
python -m maahelper.cli.modern_enhanced_cli
```

### API Key Setup

On first run, you'll be prompted to enter API keys for Groq, OpenAI, etc. These are securely stored in:

```
C:/Users/<username>/.maahelper/config.json
```

You can manage, edit, or delete keys via the Rich UI manager:

```bash
maahelper-keys
```


## 🎯 Core Commands

### Basic
- `help` — Show help
- `exit`, `quit`, `bye` — Exit
- `clear` — Clear history
- `status` — Show config

### File
- `file-search <filepath>` — AI file analysis
- `files` — Show files
- `dir` — Show directory

### Config
- `providers` — List providers
- `models` — List models


## 🤖 Supported AI Providers

| Provider | Models | Notes |
|----------|--------|-------|
| **Groq** | Llama 3.1, Llama 3.2, Mixtral, Gemma | ⚡ **Fastest & Free** |
| **OpenAI** | GPT-4, GPT-3.5-turbo | 🧠 Most capable |
| **Anthropic** | Claude 3, Claude 2 | 📝 Great for analysis |
| **Google** | Gemini Pro, Gemini Flash | 🔍 Multimodal support |
| **Ollama** | Local models | 🏠 Privacy-focused |


## 📁 File Analysis Example

```python
You: file-search src/main.py

🤖 AI Assistant
Analyzing your Python file...

File Analysis: src/main.py

File Type: Python Source Code
Size: 1.2KB
Language: Python 3.8+

### Key Components:
- Main Function: Entry point with argument parsing
- Error Handling: Comprehensive try-catch blocks
- Dependencies: requests, json, argparse

### Code Quality:
✅ Good Clean structure and readable code
⚠️ Suggestion: Add type hints for better maintainability
⚠️ Suggestion: Consider adding docstrings

### Recommendations:
1. Add input validation for user arguments
2. Implement logging for better debugging
3. Consider async/await for API calls
```


## 🎨 Rich CLI Features

- **Live Streaming**: See AI responses in real-time
- **Syntax Highlighting**: Code blocks with proper formatting
- **Progress Indicators**: Visual feedback for operations
- **Interactive Menus**: Beautiful provider and model selection
- **Error Handling**: Elegant error messages with helpful suggestions


## 🔧 Configuration

### API Key Management

MaaHelper uses a secure local configuration system:

```
C:\Users\{username}\.maahelper\
├── config.json          # Encrypted API keys
├── conversation_history/ # Chat sessions
└── logs/                # Application logs
```

### Environment Variables

```bash
# Recommended method
export GROQ_API_KEY="gsk_..."
export OPENAI_API_KEY="sk-..."
export ANTHROPIC_API_KEY="sk-ant-..."
export GOOGLE_API_KEY="AIza..."
```


## 📊 Performance

- **Streaming Speed**: Up to 500+ tokens/second with Groq
- **Memory Usage**: < 50MB typical usage
- **Startup Time**: < 2 seconds cold start
- **File Analysis**: Processes files up to 10MB


## 🛠️ Development

### Requirements
- Python 3.8+
- Rich >= 13.0.0
- OpenAI >= 1.0.0
- Cryptography >= 3.4.0

### Installation for Development

```bash
git clone https://github.com/AIMLDev726/maahelper.git
cd maahelper
pip install -e .
```


## 📝 Examples

### Basic Chat
```bash
You: Explain async/await in Python

🤖 AI Assistant
# Async/Await in Python

**Async/await** is Python's way of handling asynchronous programming...
```

### File Analysis
```bash
You: file-search requirements.txt

🤖 AI Assistant
## Dependency Analysis

Your project has **12 dependencies**:
- **Core**: openai, rich, cryptography
- **Optional**: anthropic, google-generativeai
- **Development**: pytest, black, flake8
```

### Code Review
```bash
You: Review this function for bugs

🤖 AI Assistant
## Code Review Results

✅ **Good Practices**:
- Clear function naming
- Proper error handling

⚠️ **Issues Found**:
- Missing input validation on line 15
- Potential memory leak in loop (line 23)
```


# Demo Video

[![Watch the demo](https://img.youtube.com/vi/6NrRqqopUjw/0.jpg)](https://youtu.be/6NrRqqopUjw)




## 📚 Documentation

### 📓 Getting Started
- **[MaaHelper_Getting_Started.ipynb](MaaHelper_Getting_Started.ipynb)** - Complete interactive tutorial
- **[FEATURES_v0.0.5.md](FEATURES_v0.0.5.md)** - Detailed feature documentation
- **[CHANGELOG.md](CHANGELOG.md)** - Version history and changes

### 🏗️ Development
- **[CODE_STRUCTURE.md](CODE_STRUCTURE.md)** - Complete architecture documentation
- **[CLEANUP_REPORT.md](CLEANUP_REPORT.md)** - Code quality improvements

## 🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

1. Fork the repository
2. Create your feature branch (`git checkout -b feature/AmazingFeature`)
3. Commit your changes (`git commit -m 'Add some AmazingFeature'`)
4. Push to the branch (`git push origin feature/AmazingFeature`)
5. Open a Pull Request

### 🏗️ Development Setup
```bash
# Clone the repository
git clone https://github.com/AIMLDev726/maahelper.git
cd maahelper

# Install in development mode
pip install -e .

# Run tests
pytest tests/

# Check code structure
cat CODE_STRUCTURE.md
```


## 📄 License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.


## 👨‍💻 Author

Created by **Meet Solanki (AIML Student)**

- GitHub: [@AIMLDev726](https://github.com/AIMLDev726)
- Email: aistudentlearn4@gmail.com


## 🙏 Acknowledgments

- Built with [Rich](https://github.com/Textualize/rich) for beautiful CLI
- Powered by [OpenAI](https://openai.com/) and multiple AI providers
- Thanks to the open-source Python community

---

**⭐ Star this repository if you find it helpful!**
