Skip to main content

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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

omga_cli-0.2.0-cp313-cp313-macosx_14_0_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.13macOS 14.0+ x86-64

File details

Details for the file omga_cli-0.2.0-cp313-cp313-macosx_14_0_x86_64.whl.

File metadata

File hashes

Hashes for omga_cli-0.2.0-cp313-cp313-macosx_14_0_x86_64.whl
Algorithm Hash digest
SHA256 15fbc51fa22e9a43528631c43e54f334e4083e5bf131982dfe0f9618b3093a4c
MD5 c4912b807255644b1a419b081cc88833
BLAKE2b-256 76f60fa7e7e9caa551360db0550dc0cab33d7c16948ea1739e97743b770e4181

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page