omga-cli 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- omga_cli-0.1.0/LICENSE +21 -0
- omga_cli-0.1.0/PKG-INFO +97 -0
- omga_cli-0.1.0/README.md +74 -0
- omga_cli-0.1.0/core/__init__.c +4710 -0
- omga_cli-0.1.0/core/__init__.py +1 -0
- omga_cli-0.1.0/core/ai.c +10470 -0
- omga_cli-0.1.0/core/ai.py +54 -0
- omga_cli-0.1.0/core/cache_db.c +9646 -0
- omga_cli-0.1.0/core/cache_db.py +44 -0
- omga_cli-0.1.0/core/checker.c +11039 -0
- omga_cli-0.1.0/core/checker.py +50 -0
- omga_cli-0.1.0/core/cli.c +12004 -0
- omga_cli-0.1.0/core/cli.py +84 -0
- omga_cli-0.1.0/core/commands.c +13403 -0
- omga_cli-0.1.0/core/commands.py +101 -0
- omga_cli-0.1.0/core/completer.c +12955 -0
- omga_cli-0.1.0/core/completer.py +51 -0
- omga_cli-0.1.0/core/config.c +5118 -0
- omga_cli-0.1.0/core/config.py +9 -0
- omga_cli-0.1.0/core/logger.c +5321 -0
- omga_cli-0.1.0/core/logger.py +16 -0
- omga_cli-0.1.0/core/shell.c +8544 -0
- omga_cli-0.1.0/core/shell.py +30 -0
- omga_cli-0.1.0/core/utils.c +9244 -0
- omga_cli-0.1.0/core/utils.py +17 -0
- omga_cli-0.1.0/omga_cli.egg-info/PKG-INFO +97 -0
- omga_cli-0.1.0/omga_cli.egg-info/SOURCES.txt +32 -0
- omga_cli-0.1.0/omga_cli.egg-info/dependency_links.txt +1 -0
- omga_cli-0.1.0/omga_cli.egg-info/entry_points.txt +2 -0
- omga_cli-0.1.0/omga_cli.egg-info/requires.txt +6 -0
- omga_cli-0.1.0/omga_cli.egg-info/top_level.txt +1 -0
- omga_cli-0.1.0/pyproject.toml +31 -0
- omga_cli-0.1.0/setup.cfg +4 -0
- omga_cli-0.1.0/setup.py +27 -0
omga_cli-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 xAI
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
omga_cli-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: omga-cli
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: A CLI tool for code checking, explanation, and AI assistance
|
|
5
|
+
Author: Pouria Hosseini
|
|
6
|
+
Author-email: Pouria Hosseini <PouriaHosseini@outlook.com>
|
|
7
|
+
License: MIT
|
|
8
|
+
Keywords: cli,code-analysis,ai
|
|
9
|
+
Classifier: Programming Language :: Python :: 3
|
|
10
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
11
|
+
Classifier: Operating System :: OS Independent
|
|
12
|
+
Requires-Python: >=3.10
|
|
13
|
+
Description-Content-Type: text/markdown
|
|
14
|
+
License-File: LICENSE
|
|
15
|
+
Requires-Dist: prompt_toolkit>=3.0.0
|
|
16
|
+
Requires-Dist: click>=8.0.0
|
|
17
|
+
Requires-Dist: google-generativeai>=0.3.0
|
|
18
|
+
Requires-Dist: requests>=2.28
|
|
19
|
+
Requires-Dist: rich>=13.0.0
|
|
20
|
+
Requires-Dist: python-dotenv>=0.20.0
|
|
21
|
+
Dynamic: author
|
|
22
|
+
Dynamic: license-file
|
|
23
|
+
|
|
24
|
+
# omga-cli
|
|
25
|
+
|
|
26
|
+
**omga-cli** is an advanced, AI-powered command-line assistant built for developers.
|
|
27
|
+
It combines **local checks** (syntax, linting, project scaffolding) with the power of **OMGA**, giving you a smart, minimal, and developer-friendly workflow.
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
## ✨ Features
|
|
32
|
+
|
|
33
|
+
- ✅ Syntax & lint checks (`check file.py`)
|
|
34
|
+
- 🤖 AI explanations & Q&A (`explain`, `ask`)
|
|
35
|
+
- 🔧 Auto-fixes with diff previews (`fix --apply`)
|
|
36
|
+
- ⚡ Run shell commands safely (`run "ls -la"`)
|
|
37
|
+
- 🚀 Project scaffolding (e.g., FastAPI starter)
|
|
38
|
+
- 📚 Snippet management (`snippet add/list`)
|
|
39
|
+
- 💡 Interactive mode with **Tab-completion** (static + AI suggestions)
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
## 🚀 Quickstart
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
# 1. Install omga-cli
|
|
47
|
+
pip install omga-cli
|
|
48
|
+
|
|
49
|
+
# 2. Run in interactive mode
|
|
50
|
+
omga-cli
|
|
51
|
+
|
|
52
|
+
# Or run a one-shot command
|
|
53
|
+
omga-cli <command>
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
## 🖥️ Example Usage
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
# Check syntax
|
|
62
|
+
omga-cli check file.py
|
|
63
|
+
# → "Syntax OK" or error list
|
|
64
|
+
|
|
65
|
+
# Explain code
|
|
66
|
+
omga-cli explain file.py
|
|
67
|
+
# → "This code does X, but watch for Y pitfall."
|
|
68
|
+
|
|
69
|
+
# Ask general AI question
|
|
70
|
+
omga-cli ask "how to use pandas?"
|
|
71
|
+
|
|
72
|
+
# Fix code with AI suggestions
|
|
73
|
+
omga-cli fix file.py --apply
|
|
74
|
+
|
|
75
|
+
# Scaffold a FastAPI project
|
|
76
|
+
omga-cli generate project fastapi myapp
|
|
77
|
+
|
|
78
|
+
# Manage code snippets
|
|
79
|
+
omga-cli snippet add hello "print('Hello World')"
|
|
80
|
+
omga-cli snippet list
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
---
|
|
84
|
+
|
|
85
|
+
## 🔒 Security Note
|
|
86
|
+
|
|
87
|
+
The `run` command executes **local shell commands** directly.
|
|
88
|
+
⚠️ Use it only with trusted commands. No sandboxing is provided.
|
|
89
|
+
|
|
90
|
+
---
|
|
91
|
+
|
|
92
|
+
## 👨💻 Author
|
|
93
|
+
|
|
94
|
+
Developed with ❤️ by **Pouria Hosseini**
|
|
95
|
+
📧 Contact: [PouriaHosseini@Outlook.com](mailto:PouriaHosseini@Outlook.com)
|
|
96
|
+
|
|
97
|
+
---
|
omga_cli-0.1.0/README.md
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# omga-cli
|
|
2
|
+
|
|
3
|
+
**omga-cli** is an advanced, AI-powered command-line assistant built for developers.
|
|
4
|
+
It combines **local checks** (syntax, linting, project scaffolding) with the power of **OMGA**, giving you a smart, minimal, and developer-friendly workflow.
|
|
5
|
+
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## ✨ Features
|
|
9
|
+
|
|
10
|
+
- ✅ Syntax & lint checks (`check file.py`)
|
|
11
|
+
- 🤖 AI explanations & Q&A (`explain`, `ask`)
|
|
12
|
+
- 🔧 Auto-fixes with diff previews (`fix --apply`)
|
|
13
|
+
- ⚡ Run shell commands safely (`run "ls -la"`)
|
|
14
|
+
- 🚀 Project scaffolding (e.g., FastAPI starter)
|
|
15
|
+
- 📚 Snippet management (`snippet add/list`)
|
|
16
|
+
- 💡 Interactive mode with **Tab-completion** (static + AI suggestions)
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## 🚀 Quickstart
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
# 1. Install omga-cli
|
|
24
|
+
pip install omga-cli
|
|
25
|
+
|
|
26
|
+
# 2. Run in interactive mode
|
|
27
|
+
omga-cli
|
|
28
|
+
|
|
29
|
+
# Or run a one-shot command
|
|
30
|
+
omga-cli <command>
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
---
|
|
34
|
+
|
|
35
|
+
## 🖥️ Example Usage
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
# Check syntax
|
|
39
|
+
omga-cli check file.py
|
|
40
|
+
# → "Syntax OK" or error list
|
|
41
|
+
|
|
42
|
+
# Explain code
|
|
43
|
+
omga-cli explain file.py
|
|
44
|
+
# → "This code does X, but watch for Y pitfall."
|
|
45
|
+
|
|
46
|
+
# Ask general AI question
|
|
47
|
+
omga-cli ask "how to use pandas?"
|
|
48
|
+
|
|
49
|
+
# Fix code with AI suggestions
|
|
50
|
+
omga-cli fix file.py --apply
|
|
51
|
+
|
|
52
|
+
# Scaffold a FastAPI project
|
|
53
|
+
omga-cli generate project fastapi myapp
|
|
54
|
+
|
|
55
|
+
# Manage code snippets
|
|
56
|
+
omga-cli snippet add hello "print('Hello World')"
|
|
57
|
+
omga-cli snippet list
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
---
|
|
61
|
+
|
|
62
|
+
## 🔒 Security Note
|
|
63
|
+
|
|
64
|
+
The `run` command executes **local shell commands** directly.
|
|
65
|
+
⚠️ Use it only with trusted commands. No sandboxing is provided.
|
|
66
|
+
|
|
67
|
+
---
|
|
68
|
+
|
|
69
|
+
## 👨💻 Author
|
|
70
|
+
|
|
71
|
+
Developed with ❤️ by **Pouria Hosseini**
|
|
72
|
+
📧 Contact: [PouriaHosseini@Outlook.com](mailto:PouriaHosseini@Outlook.com)
|
|
73
|
+
|
|
74
|
+
---
|