#python #virtualenv

bin+lib dmenv

Simple and practical virtualenv manager for Python

31 releases (13 breaking)

✓ Uses Rust 2018 edition

0.14.3 May 15, 2019
0.13.0 Apr 3, 2019
0.12.0 Mar 20, 2019
0.8.0 Dec 21, 2018
0.6.0 Nov 9, 2018

#90 in Command line utilities

Download history 11/week @ 2019-01-28 2/week @ 2019-02-04 1/week @ 2019-02-11 12/week @ 2019-02-18 40/week @ 2019-02-25 28/week @ 2019-03-04 4/week @ 2019-03-11 75/week @ 2019-03-18 582/week @ 2019-03-25 58/week @ 2019-04-01 10/week @ 2019-04-08 1/week @ 2019-04-15 30/week @ 2019-04-22 27/week @ 2019-04-29 31/week @ 2019-05-06

299 downloads per month

BSD-3-Clause

84KB
2K SLoC

dmenv: simple and practical virtualenv manager for Python

Docs crates.io image Build Coverage

Overview

dmenv handles creation of virtualenv and lock files for you.

Here it is in action:

  • First, generate a requirements.lock to "freeze" all your dependencies
$ dmenv lock
Creating virtualenv in: /path/to/.venv/3.6.7
-> running /usr/bin/python3 -m /path/to/.venv venv/3.6.7
-> running /path/to/.venv/3.6.7/bin/python -m pip install pip --upgrade
...
-> running /path/to/.venv/3.6.7/bin/pip freeze --exclude-editable
:: Requirements written to /path/to/requirements.lock
  • Then, anyone can use the requirements.lock to install all the dependencies at their frozen version:
$ dmenv install
:: Creating virtualenv in: /path/to/.venv/3.6.7
-> running /usr/bin/python3 -m venv /path/to/.venv/3.6.7
-> running /path/to/.venv/3.6.7/bin/python -m pip install pip --upgrade
...
-> running /path/to/.venv/3.6.7/bin/python setup.py develop --no-deps
...
Installing demo script to /path/to/.venv/3.6.7/bin

Interested?

Go read the fine documentation and learn how to use dmenv for your own Python project :)

Dependencies

~6MB
~101K SLoC