Skip to main content

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 roshanlam/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:

  1. Create and install dependencies from requirements.txt:

    smartvenv -r requirements.txt
    
  2. Install additional packages:

    smartvenv install django numpy
    
  3. Generate a lock file:

    smartvenv lock
    
  4. List installed packages:

    smartvenv list
    
  5. Update all packages:

    smartvenv update
    
  6. Remove a specific package:

    smartvenv remove --package flask
    
  7. Clean up the virtual environment:

    smartvenv clean
    

Release files for smartvenv 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for smartvenv 0.0.2
File Size Uploaded
smartvenv-0.0.2.tar.gz 2.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for smartvenv 0.0.2
File Interpreter ABI Platform
smartvenv-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 4.6 kB

Release files / smartvenv-0.0.2.tar.gz

Download URL smartvenv-0.0.2.tar.gz
Size 2.3 kB
Tags Source
SHA-256 checksum
How to use checksums
c49b963b9e062d5c4e8931cef7851964704ab9b1017110c7c602dd6499174b13
BLAKE2b-256 checksum
How to use checksums
da8fccf0d611c475329602aeda932a1644c2c52e9231e45a2a1af55faf5c2021
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/68.2.2 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.8.18

Release files / smartvenv-0.0.2-py3-none-any.whl

Download URL smartvenv-0.0.2-py3-none-any.whl
Size 2.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
18345bce9758759b14de199a1f48e2fc4ae5bafe903b060290313d6f9be7d0b8
BLAKE2b-256 checksum
How to use checksums
6d46b968ed0462a87db7c4906d25c0f88aa69bb9eea03cdfac57d92a650fd26c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/68.2.2 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.8.18

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page