commandor-ai 0.0.1__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.
@@ -0,0 +1,92 @@
1
+ # Commandor License
2
+
3
+ ## Open Source License with Commercial Attribution Requirements
4
+
5
+ This software is **free and open source** for all users, with specific attribution requirements for commercial use.
6
+
7
+ ### Personal/Individual Use (Free)
8
+
9
+ **Permission is hereby granted, free of charge, to any individual** to use, copy, modify, distribute, and contribute to this software for **personal, educational, or non-commercial purposes** without any restrictions or attribution requirements.
10
+
11
+ ### Commercial Use (Free with Attribution)
12
+
13
+ **Commercial use is permitted free of charge**, provided that commercial users comply with the following attribution requirements:
14
+
15
+ **Required Attribution:**
16
+ - Display **"Powered by Commandor"** prominently in your product interface, documentation, or about section
17
+ - Include a clickable link to the official repository: `https://github.com/ravin-d-27/Commandor`
18
+ - Mention Commandor in relevant marketing materials, press releases, or product announcements
19
+ - If feasible, submit a brief case study or testimonial about your usage for our community showcase
20
+
21
+ **Commercial use includes:**
22
+ - Use by organizations or businesses of any size
23
+ - Integration into commercial products or services
24
+ - Use that generates revenue or commercial benefit
25
+ - Use by government agencies or institutions
26
+
27
+ ### Contributions Welcome
28
+
29
+ **All contributions are welcome and encouraged:**
30
+ - Pull requests, bug reports, and feature suggestions are appreciated
31
+ - Contributors retain copyright to their contributions
32
+ - By contributing, you agree your contributions will be licensed under the same terms
33
+ - All contributors will be acknowledged in the project documentation
34
+
35
+ ### Reproduction and Redistribution
36
+
37
+ **Permitted:**
38
+ - ✅ Fork the repository and create derivatives
39
+ - ✅ Modify and distribute modified versions
40
+ - ✅ Use components in other projects
41
+ - ✅ Create packages or distributions
42
+
43
+ **Required for Reproduction/Redistribution:**
44
+ - ❌ **You may NOT claim this software as your own original work**
45
+ - ❌ **You may NOT remove or modify copyright notices**
46
+ - ❌ **You may NOT redistribute without including this license**
47
+ - ✅ **You MUST clearly indicate if changes were made**
48
+ - ✅ **You MUST provide attribution to the original project**
49
+
50
+ ### Attribution Requirements for Derivatives
51
+
52
+ If you create a derivative work or redistribute this software:
53
+ - Include original copyright notice and this license
54
+ - Clearly state that your work is based on Commandor
55
+ - Provide link to the original repository
56
+ - If you've made modifications, clearly indicate what was changed
57
+
58
+ ### Open Source Commitment
59
+
60
+ This project is committed to remaining **free and open source forever**:
61
+ - No future license changes that restrict existing freedoms
62
+ - Community-driven development
63
+ - Transparent decision making
64
+ - Welcoming to all contributors regardless of background
65
+
66
+ ### Enforcement and Compliance
67
+
68
+ - Attribution compliance is verified through community monitoring
69
+ - Non-compliance will result in polite contact requesting correction
70
+ - Repeated violations may result in license termination for that user
71
+ - Community members are encouraged to report non-compliance
72
+
73
+ ### Definitions
74
+
75
+ - **Personal Use**: Use by individuals for their own personal, educational, or research purposes
76
+ - **Commercial Use**: Any use by organizations, businesses, or for commercial advantage
77
+ - **Attribution**: Proper credit given to the original project and maintainers
78
+ - **Derivative Work**: Software that incorporates, modifies, or builds upon this project
79
+
80
+ ### Disclaimer
81
+
82
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
83
+
84
+ ---
85
+
86
+ **Copyright (c) 2025 Ravin D**
87
+
88
+ **This software is proudly open source and free for everyone!**
89
+
90
+ For questions about attribution requirements or to submit your case study, contact: [your-email@example.com]
91
+
92
+ **⭐ If this project helps you, please star it on GitHub to help others discover it!**
@@ -0,0 +1,11 @@
1
+ include README.md
2
+ include LICENSE
3
+
4
+ # Include all files inside the commandor package that aren't .py
5
+ recursive-include commandor *
6
+
7
+ # Exclude unnecessary files (optional but good practice)
8
+ global-exclude *.pyc __pycache__ *.pyo *.pyd *.swp *.bak
9
+
10
+ # Include any other data files, e.g., configs/templates if you have them
11
+ # recursive-include commandor/templates *
@@ -0,0 +1,216 @@
1
+ Metadata-Version: 2.4
2
+ Name: commandor-ai
3
+ Version: 0.0.1
4
+ Summary: An intelligent terminal assistant that uses AI to convert natural language to shell commands
5
+ Home-page: https://github.com/ravin-d-27/Commandor
6
+ Author: Ravin D
7
+ Author-email: Ravin D <ravin.d3107@outlook.com>
8
+ License: Proprietary
9
+ Project-URL: Homepage, https://github.com/ravin-d-27/Commandor
10
+ Project-URL: BugReports, https://github.com/ravin-d-27/Commandor/issues
11
+ Project-URL: Source, https://github.com/ravin-d-27/Commandor
12
+ Project-URL: Documentation, https://github.com/ravin-d-27/Commandor#readme
13
+ Keywords: terminal,ai,shell,command-line,natural-language,gemini,assistant,automation,cli,productivity
14
+ Classifier: Development Status :: 4 - Beta
15
+ Classifier: Intended Audience :: Developers
16
+ Classifier: Intended Audience :: System Administrators
17
+ Classifier: License :: Free for non-commercial use
18
+ Classifier: Operating System :: OS Independent
19
+ Classifier: Programming Language :: Python :: 3
20
+ Classifier: Programming Language :: Python :: 3.7
21
+ Classifier: Programming Language :: Python :: 3.8
22
+ Classifier: Programming Language :: Python :: 3.9
23
+ Classifier: Programming Language :: Python :: 3.10
24
+ Classifier: Programming Language :: Python :: 3.11
25
+ Classifier: Programming Language :: Python :: 3.12
26
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
27
+ Classifier: Topic :: System :: Shells
28
+ Classifier: Topic :: System :: System Shells
29
+ Classifier: Topic :: Terminals
30
+ Classifier: Topic :: Utilities
31
+ Requires-Python: >=3.7
32
+ Description-Content-Type: text/markdown
33
+ License-File: LICENSE
34
+ Requires-Dist: google-generativeai>=0.3.0
35
+ Requires-Dist: python-decouple>=3.6
36
+ Requires-Dist: colorama>=0.4.4
37
+ Requires-Dist: rich>=10.0.0
38
+ Provides-Extra: windows
39
+ Requires-Dist: pyreadline3>=3.4.1; extra == "windows"
40
+ Dynamic: author
41
+ Dynamic: home-page
42
+ Dynamic: license-file
43
+ Dynamic: requires-python
44
+
45
+ # Commandor
46
+
47
+ An intelligent terminal assistant that uses AI to **convert natural language into shell commands** and now **answers questions directly** with `/ask`.
48
+ Bring the power of AI to your terminal and work smarter!
49
+
50
+ [![GitHub stars](https://img.shields.io/github/stars/ravin-d-27/Commandor?style=social)](https://github.com/ravin-d-27/Commandor/stargazers)
51
+ [![License](https://img.shields.io/badge/License-Open%20Source%20with%20Attribution-blue.svg)](LICENSE)
52
+ [![Python](https://img.shields.io/badge/Python-3.6%2B-blue.svg)](https://python.org)
53
+
54
+ ---
55
+
56
+
57
+ ## Key Features
58
+
59
+ - **/ai** – Convert natural language instructions to shell commands
60
+ - **/ask** – Ask AI anything: get explanations, coding help, system tips & more
61
+ - **Beautiful interface** – Colorful ASCII art, emoji cues, color-coded prompts
62
+ - **Context-aware** – Commands tailored to your current directory
63
+ - **Safety checks** – Warn before running dangerous commands
64
+ - **Command history** – Navigate with arrow keys (readline support)
65
+ - **Cross-platform** – Works on Linux, macOS & Windows
66
+
67
+ ---
68
+
69
+ ## Installation
70
+
71
+ ### Clone & install (recommended)
72
+
73
+ ```bash
74
+ git clone https://github.com/ravin-d-27/Commandor.git
75
+ cd Commandor
76
+ pip install -e .
77
+ ````
78
+
79
+ ### Set up your API key
80
+
81
+ Get your Gemini API key from [Google AI Studio](https://makersuite.google.com/app/apikey):
82
+
83
+ ```bash
84
+ echo "GEMINI=your_api_key_here" > ~/.env
85
+ ```
86
+
87
+ Or set it directly:
88
+
89
+ ```bash
90
+ export GEMINI=your_api_key_here
91
+ ```
92
+
93
+ > **Windows tip:** Use `set GEMINI=your_api_key_here` instead
94
+
95
+ ---
96
+
97
+ ## Usage
98
+
99
+ Run from any terminal:
100
+
101
+ ```bash
102
+ commandor
103
+ ```
104
+
105
+ ---
106
+
107
+ ## 🛠️ Available Commands
108
+
109
+ | Command | What it does |
110
+ | ------------------: | --------------------------------------------------------: |
111
+ | `/ai <instruction>` | Convert natural language to shell command |
112
+ | `/ask <question>` | Ask AI anything (coding, concepts, tips, general queries) |
113
+ | `/help` | Show help message |
114
+ | `/info` | Show basic system info |
115
+ | `/history` | View past generated commands |
116
+ | `/clear` | Clear terminal screen |
117
+ | `exit` / `Ctrl+C` | Exit Commandor |
118
+
119
+ ---
120
+
121
+ ## Examples
122
+
123
+ ```bash
124
+ Commandor $ /ai list all .py files
125
+ 🤖 AI → find . -name "*.py" -type f
126
+
127
+ Commandor $ /ask What is a virtual environment in Python?
128
+ 🤔 Thinking...
129
+
130
+ 🤖 AI Response:
131
+ ────────────────────────────────────────────
132
+ A virtual environment isolates your Python packages ...
133
+ ────────────────────────────────────────────
134
+ ```
135
+
136
+ ---
137
+
138
+ ## Beautiful UI
139
+
140
+ * Rainbow-colored ASCII logo on start
141
+ * 🤖 & 💡 emojis for quick visual cues
142
+ * Clear, color-coded prompts to separate AI and user input
143
+
144
+ ---
145
+
146
+ ## Troubleshooting
147
+
148
+ ✅ Command not found?
149
+
150
+ * Ensure it’s installed: `pip show commandor`
151
+ * Check your PATH: `echo $PATH`
152
+
153
+ ✅ API key issues?
154
+
155
+ * Verify `.env` contains: `GEMINI=your_actual_key`
156
+ * Key must be valid on [Google AI Studio](https://makersuite.google.com/app/apikey)
157
+
158
+ ✅ Windows users:
159
+
160
+ ```bash
161
+ pip install pyreadline3
162
+ ```
163
+
164
+ ---
165
+
166
+ ## 🤝 Contribute
167
+
168
+ We love contributions!
169
+
170
+ * ⭐ Star the repo
171
+ * 🐛 Report bugs / request features via [issues](https://github.com/ravin-d-27/Commandor/issues)
172
+ * 📚 Improve docs
173
+ * 🔧 Submit pull requests
174
+
175
+ > Follow code style & add tests if you add features!
176
+
177
+ ---
178
+
179
+ ## License
180
+
181
+ Open Source, free to use personally & commercially (with attribution):
182
+
183
+ * Display **"Powered by Commandor"** if used commercially
184
+ * Link back to this repo
185
+ See [LICENSE](LICENSE) for full details.
186
+
187
+ ---
188
+
189
+ ## ✏Author & Contact
190
+
191
+ Made with ❤️ by **Ravin D**
192
+
193
+ * Email: [ravin.d3107@outlook.com](mailto:ravin.d3107@outlook.com)
194
+
195
+ ---
196
+
197
+ ## Show your support
198
+
199
+ If you find Commandor helpful:
200
+
201
+ * Star this repository!
202
+ * Share with fellow developers!
203
+
204
+ ---
205
+
206
+ ## Uninstall
207
+
208
+ ```bash
209
+ pip uninstall commandor
210
+ ```
211
+
212
+ ---
213
+
214
+ **Happy coding! 🚀**
215
+
216
+
@@ -0,0 +1,172 @@
1
+ # Commandor
2
+
3
+ An intelligent terminal assistant that uses AI to **convert natural language into shell commands** and now **answers questions directly** with `/ask`.
4
+ Bring the power of AI to your terminal and work smarter!
5
+
6
+ [![GitHub stars](https://img.shields.io/github/stars/ravin-d-27/Commandor?style=social)](https://github.com/ravin-d-27/Commandor/stargazers)
7
+ [![License](https://img.shields.io/badge/License-Open%20Source%20with%20Attribution-blue.svg)](LICENSE)
8
+ [![Python](https://img.shields.io/badge/Python-3.6%2B-blue.svg)](https://python.org)
9
+
10
+ ---
11
+
12
+
13
+ ## Key Features
14
+
15
+ - **/ai** – Convert natural language instructions to shell commands
16
+ - **/ask** – Ask AI anything: get explanations, coding help, system tips & more
17
+ - **Beautiful interface** – Colorful ASCII art, emoji cues, color-coded prompts
18
+ - **Context-aware** – Commands tailored to your current directory
19
+ - **Safety checks** – Warn before running dangerous commands
20
+ - **Command history** – Navigate with arrow keys (readline support)
21
+ - **Cross-platform** – Works on Linux, macOS & Windows
22
+
23
+ ---
24
+
25
+ ## Installation
26
+
27
+ ### Clone & install (recommended)
28
+
29
+ ```bash
30
+ git clone https://github.com/ravin-d-27/Commandor.git
31
+ cd Commandor
32
+ pip install -e .
33
+ ````
34
+
35
+ ### Set up your API key
36
+
37
+ Get your Gemini API key from [Google AI Studio](https://makersuite.google.com/app/apikey):
38
+
39
+ ```bash
40
+ echo "GEMINI=your_api_key_here" > ~/.env
41
+ ```
42
+
43
+ Or set it directly:
44
+
45
+ ```bash
46
+ export GEMINI=your_api_key_here
47
+ ```
48
+
49
+ > **Windows tip:** Use `set GEMINI=your_api_key_here` instead
50
+
51
+ ---
52
+
53
+ ## Usage
54
+
55
+ Run from any terminal:
56
+
57
+ ```bash
58
+ commandor
59
+ ```
60
+
61
+ ---
62
+
63
+ ## 🛠️ Available Commands
64
+
65
+ | Command | What it does |
66
+ | ------------------: | --------------------------------------------------------: |
67
+ | `/ai <instruction>` | Convert natural language to shell command |
68
+ | `/ask <question>` | Ask AI anything (coding, concepts, tips, general queries) |
69
+ | `/help` | Show help message |
70
+ | `/info` | Show basic system info |
71
+ | `/history` | View past generated commands |
72
+ | `/clear` | Clear terminal screen |
73
+ | `exit` / `Ctrl+C` | Exit Commandor |
74
+
75
+ ---
76
+
77
+ ## Examples
78
+
79
+ ```bash
80
+ Commandor $ /ai list all .py files
81
+ 🤖 AI → find . -name "*.py" -type f
82
+
83
+ Commandor $ /ask What is a virtual environment in Python?
84
+ 🤔 Thinking...
85
+
86
+ 🤖 AI Response:
87
+ ────────────────────────────────────────────
88
+ A virtual environment isolates your Python packages ...
89
+ ────────────────────────────────────────────
90
+ ```
91
+
92
+ ---
93
+
94
+ ## Beautiful UI
95
+
96
+ * Rainbow-colored ASCII logo on start
97
+ * 🤖 & 💡 emojis for quick visual cues
98
+ * Clear, color-coded prompts to separate AI and user input
99
+
100
+ ---
101
+
102
+ ## Troubleshooting
103
+
104
+ ✅ Command not found?
105
+
106
+ * Ensure it’s installed: `pip show commandor`
107
+ * Check your PATH: `echo $PATH`
108
+
109
+ ✅ API key issues?
110
+
111
+ * Verify `.env` contains: `GEMINI=your_actual_key`
112
+ * Key must be valid on [Google AI Studio](https://makersuite.google.com/app/apikey)
113
+
114
+ ✅ Windows users:
115
+
116
+ ```bash
117
+ pip install pyreadline3
118
+ ```
119
+
120
+ ---
121
+
122
+ ## 🤝 Contribute
123
+
124
+ We love contributions!
125
+
126
+ * ⭐ Star the repo
127
+ * 🐛 Report bugs / request features via [issues](https://github.com/ravin-d-27/Commandor/issues)
128
+ * 📚 Improve docs
129
+ * 🔧 Submit pull requests
130
+
131
+ > Follow code style & add tests if you add features!
132
+
133
+ ---
134
+
135
+ ## License
136
+
137
+ Open Source, free to use personally & commercially (with attribution):
138
+
139
+ * Display **"Powered by Commandor"** if used commercially
140
+ * Link back to this repo
141
+ See [LICENSE](LICENSE) for full details.
142
+
143
+ ---
144
+
145
+ ## ✏Author & Contact
146
+
147
+ Made with ❤️ by **Ravin D**
148
+
149
+ * Email: [ravin.d3107@outlook.com](mailto:ravin.d3107@outlook.com)
150
+
151
+ ---
152
+
153
+ ## Show your support
154
+
155
+ If you find Commandor helpful:
156
+
157
+ * Star this repository!
158
+ * Share with fellow developers!
159
+
160
+ ---
161
+
162
+ ## Uninstall
163
+
164
+ ```bash
165
+ pip uninstall commandor
166
+ ```
167
+
168
+ ---
169
+
170
+ **Happy coding! 🚀**
171
+
172
+
@@ -0,0 +1,11 @@
1
+ """
2
+ Commandor - An intelligent terminal assistant that uses AI to convert natural language to shell commands.
3
+ """
4
+
5
+ __version__ = "0.0.1"
6
+ __author__ = "Ravin D"
7
+ __email__ = "ravin.d3107@outlook.com"
8
+
9
+ from .terminal import AITerminal
10
+
11
+ __all__ = ["AITerminal"]
@@ -0,0 +1,22 @@
1
+ #!/usr/bin/env python3
2
+ """
3
+ Commandor - An intelligent terminal assistant
4
+ """
5
+
6
+ import sys
7
+ from .terminal import AITerminal
8
+
9
+ def main():
10
+ """Main entry point for the Commandor command."""
11
+ try:
12
+ terminal = AITerminal()
13
+ terminal.run()
14
+ except KeyboardInterrupt:
15
+ print("\n👋 Goodbye!")
16
+ sys.exit(0)
17
+ except Exception as e:
18
+ print(f"Error starting Commandor: {e}")
19
+ sys.exit(1)
20
+
21
+ if __name__ == "__main__":
22
+ main()