A command line tool to start Python virtual environments faster and easier.
Installation:
sudo pip install pyquickenv
Next, add the following to your .bashrc:
pyenv() {
eval $(pyquickenv "$@")
}
Add An Environment:
pyenv add proj1 /home/user/git/proj1_path
*** Last argument is your project home directory and is optional ***
Activate Environment:
pyenv proj1
The command "pyenv proj1" executes:
1. source /home/user/pyenv/proj1/bin/activate
2. cd /home/user/git/proj1_path
Once in a virtual env you can type:
pyenv
This executes:
cd /home/user/git/proj1_path
To add projects manually that are not added via "pyenv add" edit the file:
/home/user/.pyenv.json
Sample JSON file, note "cd" is optional:
{
"proj1": {"env": "/home/user/ENVs/project1", "cd": "/home/user/git/project1"},
"proj2": {"env": "/home/user/ENVs/project2", "cd": "/home/user/git/project2"}
}
List Environments:
pyenv list
Remove an Environment:
pyenv rm proj1
Installation:
sudo pip install pyquickenv
Next, add the following to your .bashrc:
pyenv() {
eval $(pyquickenv "$@")
}
Add An Environment:
pyenv add proj1 /home/user/git/proj1_path
*** Last argument is your project home directory and is optional ***
Activate Environment:
pyenv proj1
The command "pyenv proj1" executes:
1. source /home/user/pyenv/proj1/bin/activate
2. cd /home/user/git/proj1_path
Once in a virtual env you can type:
pyenv
This executes:
cd /home/user/git/proj1_path
To add projects manually that are not added via "pyenv add" edit the file:
/home/user/.pyenv.json
Sample JSON file, note "cd" is optional:
{
"proj1": {"env": "/home/user/ENVs/project1", "cd": "/home/user/git/project1"},
"proj2": {"env": "/home/user/ENVs/project2", "cd": "/home/user/git/project2"}
}
List Environments:
pyenv list
Remove an Environment:
pyenv rm proj1
Metadata
Release files for pyquickenv 14.04
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyquickenv-14.04.tar.gz | 2.2 kB | Details |
Release files / pyquickenv-14.04.tar.gz
| Download URL | pyquickenv-14.04.tar.gz |
|---|---|
| Size | 2.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6f6e2b400c7e1031021d1bb109bd663fb78d86b765b042e8ec3252f617c430b0
|
|
BLAKE2b-256 checksum How to use checksums |
17a9da4af6f906b99331268a3dd52820b56cd9cb3633d064ca386b689d044a3d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |