https://github.com/d99kris/tenv
Toggle python virtual environment
https://github.com/d99kris/tenv
linux macos python virtualenv virtualenvwrapper
Last synced: 3 months ago
JSON representation
Toggle python virtual environment
- Host: GitHub
- URL: https://github.com/d99kris/tenv
- Owner: d99kris
- License: mit
- Created: 2018-06-20T14:53:58.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2024-06-22T03:52:26.000Z (11 months ago)
- Last Synced: 2024-12-16T15:38:44.006Z (5 months ago)
- Topics: linux, macos, python, virtualenv, virtualenvwrapper
- Language: Shell
- Size: 15.6 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Tenv
====| **Linux** | **Mac** |
|-----------|---------|
| [](https://github.com/d99kris/tenv/actions?query=workflow%3ALinux) | [](https://github.com/d99kris/tenv/actions?query=workflow%3AmacOS) |Tenv - toggle python virtual environment - is a simple tool to toggle enabling/disabling a python
virtual environment.Example Usage
=============~$ tenv
(.venv) ~$ pip3 install spacy
Collecting spacy
...
(.venv) ~$ tenv
~$Supported Platforms
===================
Tenv is primarily developed and tested on Linux, but basic functionality
should work in macOS as well. Current version has been tested on:
- macOS Sonoma 14.5
- Ubuntu 22.04 LTSInstallation
============
Download the source code:git clone https://github.com/d99kris/tenv && cd tenv
Generate Makefile and build:
mkdir -p build && cd build && cmake .. && make -s
Optionally install in system:
sudo make install
Optionally add alias to simplify usage, by adding the following line in ~/.bashrc (Linux)
or ~/.bash_profile (Mac):alias tenv=". `which tenv`"
Usage
=====General usage syntax:
. `which tenv`
. `which tenv`
. `which tenv` --help
. `which tenv` --versionOptions:
optionally specify virtual environment directory name
--help display this help and exit
--version
output version information and exitTechnical Details
=================
Tenv test suite can be run using these commands:mkdir -p build && cd build && cmake .. && make -s && ctest --output-on-failure
License
=======
Tenv is distributed under the MIT license. See LICENSE file.Keywords
========
toggle, virtualenv.