Script Venv

https://img.shields.io/pypi/v/script-venv.svg Documentation Status Github ActionsCodecov coverage Requirements Updates Mergify Status

A python package for script (and command) virtualisation with less typing.

Features

  • Run scripts, either console, gui or pure python, in their own virtual environment (venv).
  • Scripts can be registered to a specific venv.
  • Console or gui scripts can be auto registered from their package into a venv.
  • VEnvs can be per user (default), local (under the current directory) or in a relative directory.
  • VEnvs can be registered with requirements, and such venvs can be created as needed.

Installation

Run the following command to ensure you have the latest version of Script Venv:

$ pip install -U script_venv

Examples

If Example.py is registered for the example local venv:

$ sv Example.py
Runs ".sv/example/bin/python Example.py"

If cookiecutter is registered for the cc user venv:

$ sv cookiecutter
Runs "~/.sv/cc/bin/cookiecutter"

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

Python dependencies scanned by PyUp.io