Metadata-Version: 2.4
Name: aikitx
Version: 1.0.0
Summary: A comprehensive GUI toolkit for Large Language Models (LLMs) with GGUF support, document processing, email automation, and multi-backend inference
Author-email: Hussain Nazary <hussainnazary475@gmail.com>
License-Expression: MIT
Project-URL: Homepage, https://github.com/hussainnazary2/LLM-Toolkit
Project-URL: Repository, https://github.com/hussainnazary2/LLM-Toolkit
Project-URL: Documentation, https://github.com/hussainnazary2/LLM-Toolkit#readme
Project-URL: Bug Tracker, https://github.com/hussainnazary2/LLM-Toolkit/issues
Project-URL: Changelog, https://github.com/hussainnazary2/LLM-Toolkit/releases
Keywords: llm,ai,machine-learning,gguf,transformers,chatbot,nlp,gui,pyside6,llama-cpp,ctransformers,huggingface,document-processing,email-automation,pdf-processing,summarization,inference,neural-networks,deep-learning,language-models,text-generation,conversation-ai
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: Intended Audience :: End Users/Desktop
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: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Text Processing :: Linguistic
Classifier: Topic :: Communications :: Email
Classifier: Topic :: Office/Business :: Office Suites
Classifier: Topic :: Desktop Environment
Classifier: Operating System :: OS Independent
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: MacOS
Classifier: Operating System :: POSIX :: Linux
Classifier: Environment :: X11 Applications :: Qt
Classifier: Environment :: Win32 (MS Windows)
Classifier: Environment :: MacOS X
Classifier: Natural Language :: English
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: PySide6<7.0.0,>=6.4.0
Requires-Dist: llama-cpp-python<1.0.0,>=0.2.0
Requires-Dist: ctransformers<1.0.0,>=0.2.0
Requires-Dist: psutil<6.0.0,>=5.9.0
Requires-Dist: pynvml<12.0.0,>=11.4.1
Requires-Dist: pyyaml<7.0.0,>=6.0
Requires-Dist: jsonschema<5.0.0,>=4.17.3
Requires-Dist: appdirs<2.0.0,>=1.4.4
Requires-Dist: networkx<4.0.0,>=3.0
Requires-Dist: PyPDF2<4.0.0,>=3.0.0
Requires-Dist: pdfplumber<1.0.0,>=0.11.0
Requires-Dist: python-docx<2.0.0,>=0.8.11
Requires-Dist: requests<3.0.0,>=2.28.0
Requires-Dist: urllib3<3.0.0,>=1.26.0
Requires-Dist: importlib-resources<7.0.0,>=5.0.0; python_version < "3.9"
Requires-Dist: pywin32>=306; sys_platform == "win32"
Requires-Dist: pyobjc-framework-Cocoa>=9.0; sys_platform == "darwin"
Provides-Extra: transformers
Requires-Dist: transformers<5.0.0,>=4.30.0; extra == "transformers"
Requires-Dist: huggingface_hub<1.0.0,>=0.16.0; extra == "transformers"
Requires-Dist: safetensors<1.0.0,>=0.3.0; extra == "transformers"
Requires-Dist: accelerate<1.0.0,>=0.20.0; extra == "transformers"
Requires-Dist: tokenizers<1.0.0,>=0.13.0; extra == "transformers"
Provides-Extra: gpu
Requires-Dist: torch<3.0.0,>=2.0.0; extra == "gpu"
Requires-Dist: torchvision<1.0.0,>=0.15.0; extra == "gpu"
Provides-Extra: google
Requires-Dist: google-auth<3.0.0,>=2.17.0; extra == "google"
Requires-Dist: google-auth-oauthlib<2.0.0,>=1.0.0; extra == "google"
Requires-Dist: google-api-python-client<3.0.0,>=2.88.0; extra == "google"
Provides-Extra: dev
Requires-Dist: pytest<8.0.0,>=7.0.0; extra == "dev"
Requires-Dist: pytest-qt<5.0.0,>=4.0.0; extra == "dev"
Requires-Dist: pytest-cov<5.0.0,>=4.1.0; extra == "dev"
Requires-Dist: pytest-xvfb<4.0.0,>=3.0.0; extra == "dev"
Requires-Dist: pytest-timeout<3.0.0,>=2.1.0; extra == "dev"
Requires-Dist: pytest-mock<4.0.0,>=3.10.0; extra == "dev"
Requires-Dist: pytest-benchmark<5.0.0,>=4.0.0; extra == "dev"
Requires-Dist: pytest-html<4.0.0,>=3.1.0; extra == "dev"
Requires-Dist: pytest-json-report<2.0.0,>=1.5.0; extra == "dev"
Requires-Dist: pytest-parallel<1.0.0,>=0.1.1; extra == "dev"
Requires-Dist: black<25.0.0,>=23.1.0; extra == "dev"
Requires-Dist: isort<6.0.0,>=5.12.0; extra == "dev"
Requires-Dist: flake8<8.0.0,>=6.0.0; extra == "dev"
Requires-Dist: mypy<2.0.0,>=1.0.0; extra == "dev"
Requires-Dist: build<1.0.0,>=0.10.0; extra == "dev"
Requires-Dist: twine<5.0.0,>=4.0.0; extra == "dev"
Provides-Extra: all
Requires-Dist: transformers<5.0.0,>=4.30.0; extra == "all"
Requires-Dist: huggingface_hub<1.0.0,>=0.16.0; extra == "all"
Requires-Dist: safetensors<1.0.0,>=0.3.0; extra == "all"
Requires-Dist: accelerate<1.0.0,>=0.20.0; extra == "all"
Requires-Dist: tokenizers<1.0.0,>=0.13.0; extra == "all"
Requires-Dist: torch<3.0.0,>=2.0.0; extra == "all"
Requires-Dist: torchvision<1.0.0,>=0.15.0; extra == "all"
Requires-Dist: google-auth<3.0.0,>=2.17.0; extra == "all"
Requires-Dist: google-auth-oauthlib<2.0.0,>=1.0.0; extra == "all"
Requires-Dist: google-api-python-client<3.0.0,>=2.88.0; extra == "all"
Dynamic: license-file

# LLM Toolkit

[![PyPI version](https://badge.fury.io/py/llmtoolkit.svg)](https://badge.fury.io/py/llmtoolkit)
[![Python Support](https://img.shields.io/pypi/pyversions/llmtoolkit.svg)](https://pypi.org/project/llmtoolkit/)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

A comprehensive toolkit for working with Large Language Models (LLMs) that provides an intuitive GUI interface for model loading, chat interactions, document summarization, and email automation. Built with modern Python technologies and designed for both developers and end-users.

## Features

### 🤖 Multiple Model Backends
- **GGUF Support**: Optimized inference with ctransformers and llama-cpp-python
- **Hugging Face Integration**: Direct model loading from HF Hub (optional)
- **Hardware Detection**: Automatic GPU/CPU optimization
- **Memory Management**: Intelligent resource allocation

### 💬 Advanced Chat Interface
- **Interactive Conversations**: Real-time chat with loaded models
- **History Management**: Persistent conversation storage
- **Parameter Control**: Fine-tune generation settings
- **Context Awareness**: Maintain conversation context

### 📄 Document Processing
- **Multi-format Support**: PDF, Word, and text documents
- **Intelligent Summarization**: AI-powered content extraction
- **Chunked Processing**: Handle large documents efficiently
- **Batch Operations**: Process multiple files simultaneously

### 📧 Email Automation
- **Gmail Integration**: Secure OAuth2 authentication
- **AI-Powered Drafting**: Generate professional emails
- **Smart Replies**: Context-aware response generation
- **Bulk Operations**: Marketing and communication automation

### 🎨 Modern User Interface
- **Cross-Platform**: Windows, macOS, and Linux support
- **Theme Support**: Dark and light mode options
- **Responsive Design**: Adaptive layout for different screen sizes
- **Accessibility**: Keyboard shortcuts and screen reader support

### ⚡ Performance & Reliability
- **Multi-threading**: Non-blocking UI operations
- **Resource Monitoring**: Real-time memory and CPU tracking
- **Error Recovery**: Graceful handling of failures
- **Logging System**: Comprehensive debugging information

## Quick Start

1. **Install the package:**
   ```bash
   pip install llmtoolkit
   ```

2. **Launch the application:**
   ```bash
   llmtoolkit
   ```

3. **Load a model and start chatting!**

## Installation

### Basic Installation

```bash
pip install llmtoolkit
```

### With Optional Dependencies

For Hugging Face transformers support:
```bash
pip install llmtoolkit[transformers]
```

For GPU acceleration:
```bash
pip install llmtoolkit[gpu]
```

For all features:
```bash
pip install llmtoolkit[all]
```

## Usage

### Command Line

After installation, you can launch the application with:

```bash
llmtoolkit
```

### Command Line Options

```bash
llmtoolkit --help          # Show help message
llmtoolkit --version       # Show version information
llmtoolkit --model PATH    # Load a specific model on startup
llmtoolkit --debug         # Enable debug logging
```

### Python Module

You can also run it as a Python module:

```bash
python -m llmtoolkit
```

### Programmatic Usage

```python
import llmtoolkit

# Launch the GUI application
llmtoolkit.main()

# Or access specific components
from llmtoolkit.app.core import ModelService
model_service = ModelService()
```

## Supported Model Formats

- **GGUF** (.gguf) - Recommended format for efficient inference
- **GGML** (.ggml) - Legacy format support
- **Hugging Face** - Direct model loading from HF Hub (with transformers extra)
- **PyTorch** (.bin, .pt, .pth) - PyTorch model files
- **Safetensors** (.safetensors) - Safe tensor format

## System Requirements

- **Python**: 3.8 or higher
- **Operating System**: Windows, macOS, or Linux
- **Memory**: 4GB RAM minimum (8GB+ recommended for larger models)
- **Storage**: 2GB free space (plus space for models)
- **GPU** (optional): NVIDIA CUDA, AMD ROCm, or Apple Metal support

## Configuration

The application stores configuration and data in:
- **Windows**: `%APPDATA%\llmtoolkit\`
- **macOS**: `~/Library/Application Support/llmtoolkit/`
- **Linux**: `~/.config/llmtoolkit/`

## Troubleshooting

### Common Issues

**Installation Problems:**
- Ensure you have Python 3.8+ installed
- Try upgrading pip: `pip install --upgrade pip`
- For GPU support issues, check your CUDA/ROCm installation

**Model Loading Issues:**
- Verify model file format is supported (GGUF recommended)
- Check available system memory
- Ensure model file is not corrupted

**GUI Not Starting:**
- Install GUI dependencies: `pip install llmtoolkit[all]`
- On Linux, ensure X11 forwarding is enabled if using SSH
- Check system compatibility with PySide6

**Performance Issues:**
- Close other memory-intensive applications
- Use smaller models for limited hardware
- Enable GPU acceleration if available

## Development

### Setting up Development Environment

```bash
git clone https://github.com/hussainnazary2/LLM-Toolkit.git
cd LLM-Toolkit
pip install -e .[dev]
```

### Running Tests

```bash
pytest
```

### Code Formatting

```bash
black llmtoolkit/
isort llmtoolkit/
```

## Contributing

Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.

## License

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

## Acknowledgments

- Built with [PySide6](https://doc.qt.io/qtforpython/) for the GUI framework
- Model loading powered by [llama-cpp-python](https://github.com/abetlen/llama-cpp-python) and [ctransformers](https://github.com/marella/ctransformers)
- Optional Hugging Face integration via [transformers](https://github.com/huggingface/transformers)

## Changelog

See [CHANGELOG.md](https://github.com/hussainnazary2/LLM-Toolkit/releases) for version history and updates.

## Support

If you encounter any issues or have questions:

1. Check the [documentation](https://github.com/hussainnazary2/LLM-Toolkit#readme)
2. Search [existing issues](https://github.com/hussainnazary2/LLM-Toolkit/issues)
3. Create a [new issue](https://github.com/hussainnazary2/LLM-Toolkit/issues/new) if needed
4. Contact the developer: [hussainnazary475@gmail.com](mailto:hussainnazary475@gmail.com)

## Author

**Hussain Nazary**
- Email: [hussainnazary475@gmail.com](mailto:hussainnazary475@gmail.com)
- GitHub: [@hussainnazary2](https://github.com/hussainnazary2)
- Project: [LLM-Toolkit](https://github.com/hussainnazary2/LLM-Toolkit)

---

**Made with ❤️ for the AI community**
