38 releases (18 breaking)

✓ Uses Rust 2018 edition

new 0.19.0 Nov 6, 2019
0.17.0 Oct 8, 2019
0.16.1 Jul 24, 2019
0.12.0 Mar 20, 2019
0.6.0 Nov 9, 2018

#130 in Command line utilities

Download history 36/week @ 2019-07-23 45/week @ 2019-07-30 126/week @ 2019-08-06 7/week @ 2019-08-13 173/week @ 2019-08-20 112/week @ 2019-08-27 122/week @ 2019-09-03 38/week @ 2019-09-10 296/week @ 2019-09-17 118/week @ 2019-09-24 72/week @ 2019-10-01 22/week @ 2019-10-08 109/week @ 2019-10-15 183/week @ 2019-10-22 61/week @ 2019-10-29

473 downloads per month

BSD-3-Clause

99KB
2.5K SLoC

dmenv: simple and practical virtualenv manager for Python

Docs crates.io image Test Results Lint Results Audit Dependencies

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

~4.5MB
~98K SLoC