34 releases (15 breaking)

✓ Uses Rust 2018 edition

0.16.1 Jul 24, 2019
0.15.0 Jun 26, 2019
0.12.0 Mar 20, 2019
0.8.0 Dec 21, 2018
0.6.0 Nov 9, 2018

#85 in Command line utilities

Download history 7/week @ 2019-04-09 1/week @ 2019-04-16 44/week @ 2019-04-23 13/week @ 2019-04-30 31/week @ 2019-05-07 81/week @ 2019-05-14 102/week @ 2019-05-21 65/week @ 2019-05-28 31/week @ 2019-06-04 155/week @ 2019-06-11 94/week @ 2019-06-18 177/week @ 2019-06-25 155/week @ 2019-07-02 116/week @ 2019-07-09 33/week @ 2019-07-16

368 downloads per month

BSD-3-Clause

89KB
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

~6.5MB
~128K SLoC