A CLI tool for code checking, explanation, and AI assistance
Project description
🚀 omga-cli
omga-cli is an AI-powered command-line assistant for developers. It provides intelligent code analysis, explanations, fixes, and more with a beautiful interface.
✨ Features
- 🔍 Code Analysis - Syntax checking, linting, error detection
- 🤖 AI Assistant - Code explanations, fixes, improvements, documentation
- 🎨 Beautiful UI - Rich, colorful terminal interface
- ⚡ Fast & Smart - Cached responses, progress indicators, tab completion
- 🚀 Project Tools - Scaffolding, snippets, shell commands
🚀 Quick Start
Installation
pip install omga-cli
Usage
# Interactive mode
omga-cli
# Direct commands
omga-cli check file.py
omga-cli explain file.py
omga-cli ask "How to optimize Python code?"
📋 Commands
| Command | Description |
|---|---|
check <file> |
Check syntax and linting |
explain <file> |
Get AI code explanation |
ask <question> |
Ask AI questions |
fix <file> |
Fix code issues |
improve <file> |
Get improvement suggestions |
docs <file> |
Generate documentation |
run <command> |
Run shell commands |
generate project <template> <name> |
Create new project |
snippet add/list/remove |
Manage code snippets |
config |
Show configuration |
status |
Show system status |
help |
Show help |
🎯 Examples
# Check your code
omga-cli check main.py
# Get detailed explanation
omga-cli explain main.py
# Ask for help
omga-cli ask "What's the best way to handle errors in Python?"
# Fix issues automatically
omga-cli fix main.py
# Generate FastAPI project
omga-cli generate project fastapi myapp
# Interactive mode
omga-cli
> check file.py
> explain file.py
> ask "How can I improve this?"
> exit
⚙️ Configuration
Configuration is stored in ~/.omga_cli/config.json. You can customize:
- UI Settings: Themes, colors, progress indicators
- AI Settings: Model, temperature, response length
- Features: Auto-fix, caching, smart completion
- Security: Confirmation prompts, safe mode
🛡️ Security
- ✅ Built-in API Key - No setup required
- 🔒 Safe Execution - Confirmation for destructive operations
- ⏱️ Timeouts - Prevents hanging commands
- 🚫 No Data Collection - All processing via your API
🐛 Troubleshooting
Permission Errors
chmod 755 ~/.omga_cli
Import Errors
pip install --upgrade omga-cli
Debug Mode
export OMGA_DEBUG=1
omga-cli check file.py
👨💻 Author
Pouria Hosseini
📧 PouriaHosseini@Outlook.com
Happy coding! 🎉
Project details
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 omga_cli-0.3.0.tar.gz.
File metadata
- Download URL: omga_cli-0.3.0.tar.gz
- Upload date:
- Size: 1.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
50579ea493a2fd4b76927907f7d2d573c82c7c3cf617a68d98b62a360fe200ee
|
|
| MD5 |
284e35af86cf4cda46ea3a563c0156ce
|
|
| BLAKE2b-256 |
c27a601f95e1bb9c8010dbb80956774b3b595338ab3661d7a397da8487b891c3
|
File details
Details for the file omga_cli-0.3.0-cp313-cp313-macosx_14_0_x86_64.whl.
File metadata
- Download URL: omga_cli-0.3.0-cp313-cp313-macosx_14_0_x86_64.whl
- Upload date:
- Size: 1.6 MB
- Tags: CPython 3.13, macOS 14.0+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6f9cf50613e438007f145da02c5f7553631d0aabe6b9cff2d9b26038e210831a
|
|
| MD5 |
ffd52b59009384c0b700d716a2dea934
|
|
| BLAKE2b-256 |
a9e0c9f7a2de7e1da74fc77e486a4245a5eb0bad5ecf1c415ca7a76303c09b8c
|