Smart environment setup tool - One command to create virtual envs, install deps, and configure .env intelligently
Project description
🧙♂️ EnvWizard
Smart environment setup tool for Python projects - One command to create virtual environments, install dependencies, and configure .env files intelligently.
✨ Features
- 🔍 Auto-Detection - Automatically detects Django, FastAPI, Flask, and 20+ frameworks
- 🎯 Smart .env Generation - Creates comprehensive .env files with framework-specific variables
- 🐍 Virtual Environment Management - Creates and manages venvs with specific Python versions
- 📦 Dependency Installation - Auto-installs from requirements.txt, pyproject.toml, or Pipfile
- 🎨 Beautiful CLI - Rich terminal output with colors and progress indicators
- 🔒 Secure by Default - Input validation, path protection, secure file permissions
- 🚀 Cross-Platform - Works on Linux, macOS, and Windows
- ⚡ Fast - Saves 95% of setup time (15-30 min → 30 seconds)
📦 Installation
pip install envwizard
🚀 Quick Start
Initialize a New Project
# Navigate to your project directory
cd my-django-project
# Run envwizard
envwizard init
# That's it! ✨
EnvWizard will:
- Detect your frameworks (Django, PostgreSQL, etc.)
- Create a virtual environment
- Install all dependencies
- Generate .env and .env.example files
- Add .env to .gitignore
Usage Examples
Detect Project Type
envwizard detect
Create Virtual Environment Only
envwizard create-venv --name venv --python-version 3.11
Generate .env Files Only
envwizard create-dotenv
Custom Setup
# Skip dependency installation
envwizard init --no-install
# Skip .env generation
envwizard init --no-dotenv
# Custom virtual environment name
envwizard init --venv-name myenv
# Specific Python version
envwizard init --python-version 3.11
📋 Supported Frameworks
EnvWizard automatically detects and configures:
Web Frameworks
- Django
- FastAPI
- Flask
- Streamlit
Databases
- PostgreSQL
- MySQL
- MongoDB
- Redis
- SQLite
Tools & Libraries
- Celery (Task queues)
- SQLAlchemy (ORM)
- Pandas (Data analysis)
- NumPy (Scientific computing)
- Pytest (Testing)
📖 CLI Commands
envwizard init
Complete project setup - creates venv, installs deps, generates .env
Options:
--path, -p- Project directory (default: current)--venv-name, -n- Virtual environment name (default: venv)--python-version- Python version (e.g., 3.11)--no-install- Skip dependency installation--no-dotenv- Skip .env generation
envwizard detect
Analyze project and show detected frameworks
envwizard create-venv
Create virtual environment only
envwizard create-dotenv
Generate .env files only
envwizard --version
Show version information
envwizard --help
Show help message
💡 Use Cases
Starting a New Project
mkdir my-fastapi-app
cd my-fastapi-app
echo "fastapi>=0.100.0" > requirements.txt
envwizard init
Joining an Existing Project
git clone https://github.com/username/django-project.git
cd django-project
envwizard init
🔒 Security Features
- ✅ Input Validation - All inputs sanitized to prevent command injection
- ✅ Path Protection - Prevents path traversal to system directories
- ✅ Secure Permissions - .env files created with 0600 (owner-only)
- ✅ Auto .gitignore - Automatically adds .env to .gitignore
- ✅ No Secret Storage - Generates placeholder values only
📊 Performance
| Task | Manual | EnvWizard | Time Saved |
|---|---|---|---|
| Create venv | 30s | Auto | 30s |
| Install deps | 1-2 min | Auto | 60-120s |
| Create .env | 5-10 min | Auto | 5-10 min |
| Research variables | 5-15 min | Auto | 5-15 min |
| Total | 14-31 min | ~30s | 95% faster |
🤝 Contributing
Contributions are welcome!
git clone https://github.com/0xV8/envwizard.git
cd envwizard
pip install -e ".[dev]"
pytest tests/
📝 Requirements
- Python 3.9+
- pip
- Git (optional)
📄 License
MIT License - see LICENSE file for details
📧 Support
Made with ❤️ for Python developers
Save hours of setup time. Focus on building great applications.
pip install envwizard and get started in seconds! 🚀
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 Distributions
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 envwizard-0.1.0-py3-none-any.whl.
File metadata
- Download URL: envwizard-0.1.0-py3-none-any.whl
- Upload date:
- Size: 22.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fca432f3e819d61903a582151276ae98c024cb82cd3d35da2dad7be13cb3f73c
|
|
| MD5 |
9b5d6e0c858b763fcf240321d2e516b8
|
|
| BLAKE2b-256 |
9a45642bfad6f9ee844c890877a6b488ddd84158d520ff120f4474871faf471d
|