An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

        

Tenv
====

| **Linux** | **Mac** |
|-----------|---------|
| [![Linux](https://github.com/d99kris/tenv/workflows/Linux/badge.svg)](https://github.com/d99kris/tenv/actions?query=workflow%3ALinux) | [![macOS](https://github.com/d99kris/tenv/workflows/macOS/badge.svg)](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 LTS

Installation
============
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` --version

Options:

optionally specify virtual environment directory name

--help display this help and exit

--version
output version information and exit

Technical 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.