https://github.com/pizzapanther/python-quick-env
Command line to make starting virtual environments faster and easier.
https://github.com/pizzapanther/python-quick-env
Last synced: about 1 month ago
JSON representation
Command line to make starting virtual environments faster and easier.
- Host: GitHub
- URL: https://github.com/pizzapanther/python-quick-env
- Owner: pizzapanther
- Created: 2012-02-15T17:32:56.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2014-04-08T19:19:52.000Z (about 11 years ago)
- Last Synced: 2025-04-30T20:02:22.531Z (about 1 month ago)
- Language: Python
- Homepage:
- Size: 145 KB
- Stars: 11
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README
- Changelog: CHANGELOG
Awesome Lists containing this project
README
A command line tool to start Python virtual environments faster and easier.
Installation:
sudo pip install pyquickenvNext, 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 proj1The command "pyenv proj1" executes:
1. source /home/user/pyenv/proj1/bin/activate
2. cd /home/user/git/proj1_pathOnce in a virtual env you can type:
pyenvThis executes:
cd /home/user/git/proj1_pathTo add projects manually that are not added via "pyenv add" edit the file:
/home/user/.pyenv.jsonSample 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 listRemove an Environment:
pyenv rm proj1