AI-Powered Dev Environment Diagnoser & Fixer. Helps set up and troubleshoot local dev environments.
Project description
DevEnv Genie 🧞♂️
AI-Powered Dev Environment Diagnoser & Fixer.
DevEnv Genie is a command-line tool designed to help developers quickly set up and troubleshoot their local development environments. It intelligently parses project requirements, checks your local system, and leverages AI (via Groq LPU with Llama 3) to provide OS-specific fix suggestions.
Developed by: Hamdaan Baloch
- LinkedIn: linkedin.com/in/your-linkedin-profile
- Project for: Code Craft AI x Dev Hackathon
- Development Environment: Proudly built using Trae IDE
Key Features
- Smart Requirement Parsing: Understands requirements from text descriptions or common project files (e.g.,
package.json,requirements.txt). - Local Environment Diagnosis: Checks installed tool versions on your system.
- Project-Specific Version Detection: Recognizes versions defined in files like
.nvmrcor.python-versionwithin your project. - AI-Powered Fix Suggestions: Uses Groq's Llama 3 to generate OS-specific command-line fixes for discrepancies.
- Version Manager Aware: Provides hints for common version managers (nvm, pyenv, sdkman).
- Cross-Platform: Offers suggestions tailored for macOS, Linux, and Windows.
- Easy to Use CLI: Simple and intuitive command-line interface.
Installation
You can install DevEnv Genie using pip:
pip install devenv-genie
API Key Setup
DevEnv Genie requires a Groq API key to leverage its AI capabilities.
Obtain a free API key from GroqCloud.
Make the key available to DevEnv Genie in one of two ways:
Recommended: Environment Variable: Set GROQ_API_KEY as a system environment variable.
For example, on Linux:
export GROQ_API_KEY=your-api-key
Alternative: .env File: Create a file named .env in the directory where you run the genie command and add your key:
GROQ_API_KEY=your-api-key
Usage
To use DevEnv Genie, simply run the command:
genie diagnose
DevEnv Genie will analyze your project and suggest fixes for any discrepancies.
#Usage
Once installed and the API key is configured, you can use the genie command from your terminal:
-
Diagnose based on a text description: genie diagnose --description "My project needs Python 3.10, Node.js version 18.x, and git. I'm on macOS." Use code with caution. Bash Shorthand: genie diagnose -d "Python 3.9, npm 8" Use code with caution.
-
Diagnose based on a project file: Supported files include package.json (for Node.js/npm versions from engines) and requirements.txt (for Python version hints from comments). genie diagnose --file ./package.json genie diagnose -f ./project/requirements.txt``` (DevEnv Genie will also automatically look for
.nvmrc, `.python-version`, etc., in the current or parent directories.)
3. Specify target OS (otherwise auto-detected):
genie diagnose -d "Java 17, Maven" --os-target windows Use code with caution. Bash 4. Get help or version information: genie --help genie diagnose --help genie --version
#Example Output
$ genie diagnose -d "Python 3.9, Node 20, but I have Node 18. OS is macOS"
🧞♂️ DevEnv Genie analyzing...
📋 Initial Requirements (from description): { "os_hint": "macOS", "requirements": [ { "name": "Python", "version_required": "3.9" }, { "name": "Node", "version_required": "20" } ] }
💻 Targeting OS: macos (Detected: macos)
🔍 Diagnosis Results: ✅ Python: Required: 3.9 (from .python-version), Found: 3.9.13 (OK) ❌ Node.js: Required: 20, Found: 18.17.0 (ISSUE) ⏳ Getting AI suggestion... 💡 Suggestion: nvm install 20 && nvm use 20 && nvm alias default 20 🔗 More Info: https://github.com/nvm-sh/nvm
✨ Diagnosis Complete.
Developed by Hamdaan Baloch with Trae IDE for the Code Craft AI x Dev Hackathon.
Project details
Release history Release notifications | RSS feed
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 devenv_genie-0.2.4.tar.gz.
File metadata
- Download URL: devenv_genie-0.2.4.tar.gz
- Upload date:
- Size: 13.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
74ccb71ff953822c8a403657bbdc1a0cfbf0728a0a9da37240e3ac777ae1de72
|
|
| MD5 |
a3fade09a569c2bf166f10905d37346a
|
|
| BLAKE2b-256 |
b5bb7c2abd9d28c16648a9a09af2cdfc8095e400baabfb88ec3ede8d224f2c12
|
File details
Details for the file devenv_genie-0.2.4-py3-none-any.whl.
File metadata
- Download URL: devenv_genie-0.2.4-py3-none-any.whl
- Upload date:
- Size: 14.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a64e1ee695dd0ca66f98eb821d9946a3eb77e0d071b3c2a2fe3a6a7a4ffa3347
|
|
| MD5 |
5e73a7dede6dac821a373eeff746a0c3
|
|
| BLAKE2b-256 |
f4b07f053d0463015015124f6152c0c2991e5cc81401712218bd48da89cef250
|