A command line tool to start Python virtual environments faster and easier.
Project description
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"}
}
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"}
}
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
pyquickenv-12.05.2.tar.gz
(2.0 kB
view details)
File details
Details for the file pyquickenv-12.05.2.tar.gz.
File metadata
- Download URL: pyquickenv-12.05.2.tar.gz
- Upload date:
- Size: 2.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fb2ce5b674a19b3f4154b5a55156c376b5c3e1a46d9b472bcf310d123072f2fd
|
|
| MD5 |
6b7da1f07c8b60ba97200b76b30be4c0
|
|
| BLAKE2b-256 |
4de68514e5745f950e58434dc3af7ab1ef625f3f7d6156d66d3a615ccb34fa67
|