A smarter virtual environment and dependency management tool
Project description
SmartVenv
SmartVenv is a smarter virtual environment and dependency management tool for Python, designed to simplify and enhance your development workflow. With a single command, you can create virtual environments, install dependencies, and ensure compatibility, all while keeping your projects isolated and clean.
Features
- Single Command Installation: Automatically create and activate virtual environments, and install packages or dependencies from
requirements.txt
with just one command. - Dependency Resolution: Smartly resolve and install packages with correct versions to avoid conflicts and ensure compatibility.
- Lock Dependencies: Generate a lock file to freeze exact versions of installed packages for reproducible environments.
- Easy Management: List, update, and remove packages effortlessly.
- Cross-Platform: Works seamlessly on both Unix-like systems and Windows.
Installation
From PyPI
pip install smartvenv
From Homebrew
brew tap yourusername/smartvenv
brew install smartvenv
Usage
Create and Install Dependencies
To create a virtual environment and install dependencies from a requirements.txt
file:
smartvenv -r requirements.txt
Install Specific Packages
To install specific packages with dependency resolution:
smartvenv install requests flask
Install Both requirements.txt
and Specific Packages
To install dependencies from requirements.txt
and additional packages:
smartvenv -r requirements.txt install requests flask
List Installed Packages
To list all installed packages in the virtual environment:
smartvenv list
Update All Packages
To update all installed packages to their latest versions:
smartvenv update
Remove a Specific Package
To remove a specific package:
smartvenv remove --package requests
Clean (Delete) the Virtual Environment
To clean up (delete) the virtual environment:
smartvenv clean
Example Workflow
Here's an example of a typical workflow using SmartVenv:
-
Create and install dependencies from
requirements.txt
:smartvenv -r requirements.txt
-
Install additional packages:
smartvenv install django numpy
-
Generate a lock file:
smartvenv lock
-
List installed packages:
smartvenv list
-
Update all packages:
smartvenv update
-
Remove a specific package:
smartvenv remove --package flask
-
Clean up the virtual environment:
smartvenv clean
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
Hashes for smartvenv-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 79f8ebc57303bb80a4302c8d84b50ce9f5c8a7b84464d4370650a01f67b84908 |
|
MD5 | ee933ee2ef6f5f38e63a7ea67a567b1c |
|
BLAKE2b-256 | f98a8fc12c6f9b964a1813ebff37404d01f6b9e8d04b3e15b8502775b2f56d9c |