Pyromania creates and manages Python 3 venvs, inspired by virtualenvwrapper.
Project description
Pyromania venv Manager
Pyromania helps make venv management straightforward, inspired by virtualenvwrapper
. By default, Pyromania will create a venv named venv
in the current directory, and:
- Install the latest versions of
pip
andwheel
. - Includes handy options for switching to the
site-packages
folder. - Creates pre and post activation hook scripts for additional customization.
- Activating your
venv
will automagically move to your project directory with a default pre-activation hook.
System Wide Installation
To install the pyro
command for all users on your system with sudo escalation:
curl -sS https://raw.githubusercontent.com/FlipperPA/pyromania/main/install-sudo.sh | sh
User Installation
To install the pyro
command for the current user only:
curl -sS https://raw.githubusercontent.com/FlipperPA/pyromania/main/install.sh | sh
Usage
pyro --list
: Lists the venvs currently managed by pyromania.pyro my_venv
: Activate a venv calledmy_venv
, or creates it if it doesn't exist.pyro my_venv --delete
: Deletes a venv calledmy_venv
.pyro my_venv --venv
: Changes to to the venv's directory.
Settings
VENV_DIR
(default:venv
): default venv directory name.VENV_PYTHON
(default:python3
): the default version of Python to include.
Pre and Post Activation Hooks
Your venv
will contain to files which can be modified for pre and post activation options:
venv/pre_activate.sh
: script is run before thevenv
is activated.venv/post_activate.sh
: script is run after thevenv
is activated.
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
pyromania-1.0.0.dev1.tar.gz
(4.3 kB
view hashes)
Built Distribution
Close
Hashes for pyromania-1.0.0.dev1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a382d07a7c2b36bb1bbb4cea790cea6ef5e53351aa4b1747bf74f0b7786cdd2a |
|
MD5 | 26973108f8eec9ad61313a57d8ad2d8a |
|
BLAKE2b-256 | b396ce7ae34790a9535839c4fb5cecee6eecf00f0d6153a9ac78b592a5938aef |