https://github.com/tcsenpai/nixvenv
: moved from thecookingsenpai for migration using CloneReclone.bash
https://github.com/tcsenpai/nixvenv
Last synced: about 2 months ago
JSON representation
: moved from thecookingsenpai for migration using CloneReclone.bash
- Host: GitHub
- URL: https://github.com/tcsenpai/nixvenv
- Owner: tcsenpai
- Created: 2023-12-25T12:28:04.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-12-25T12:28:08.000Z (almost 2 years ago)
- Last Synced: 2025-03-03T13:27:17.186Z (7 months ago)
- Language: Python
- Homepage: https://github.com
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# NixVenv
## A pythonesque venv like approach to system virtual environments
### What is this?
Just as Python's venv allows developers to specify virtual environments for their python projects, NixVenv goal is to provide developers with the possibility to create virtual environments for their whole system.
Have you ever met a dependency that is required but would break your code elsewhere in your system? With NixVenv you can create a virtual environment for that specific application and run it with customized files, environment variables and configurations. Once you have finished, just deactivate it and you will be back in your usual shell environment.
### Features
• Customizable environment variables
• Easy to set up configuration
• Local files support
• Local binaries support and priority### Installation
To install NixVenv, execute in a terminal:
git clone https://github.com/thecookingsenpai/nixvenv
cd nixvenv
pip install -r requirements.txtAlternatively, you can install NixVenv using pip:
pip install nixvenv
Or by building the pip package yourself:
git clone https://github.com/thecookingsenpai/nixvenv
cd nixvenv
python -m pip install -e pip_packageIn both these cases, you will have to provide (or copy from here) your own config.json file
### Usage
python nvenv.py operation= config_file=
### Command Line Arguments
#### operation=
• run: activate the nvenv environment specified by the configuration
• activate: same as above
• new: create and activate the nvenv environment specified by the configuration if not already present
• remove: remove the nvenv environment specified by the configuration#### config_file=
Any valid json file containing a nvenv configuration (relative path).