Skip to main content

Enter a local .venv created by uv

Project description

uvshell

Simple command to enter a Python virtual environment created with uv.

uvshell creates a local .venv if it doesn’t exist and opens a new shell session with the environment activated. Exit the shell to return to your normal environment.


What it does

  • Creates a .venv using uv if one does not exist
  • Opens a new interactive shell with the virtual environment activated
  • Works across Windows, macOS, and Linux
  • Keeps your workflow to a single command

Installation

Install with uv (recommended)

uv pip install uvshell

or install as a global tool:

uv tool install uvshell

Install with pip

pip install uvshell

Requirements

  • Python 3.9+
  • uv installed and available in your PATH

Install uv if needed:

pip install uv

or:

brew install uv

Usage

From your project directory:

uvshell

Behavior:

  • If .venv does not exist → it will be created
  • A new shell opens with the virtual environment active
  • Type exit to leave the environment

Options

Use a different virtual environment directory

uvshell --venv .venv-dev

Specify Python version when creating environment

uvshell --python 3.13

Error if environment is missing

uvshell --no-create

Example Workflow

git clone my-project
cd my-project
uvshell
# work normally inside environment
exit

License

Apache License 2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

uvshell-0.1.2.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

uvshell-0.1.2-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

Details for the file uvshell-0.1.2.tar.gz.

File metadata

  • Download URL: uvshell-0.1.2.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for uvshell-0.1.2.tar.gz
Algorithm Hash digest
SHA256 32300b77cc86df283665cf0b7bd3f96b2e8bff005dd4adaa83c8297bac13ce02
MD5 818bae9f2149faaad4a93f7c0b3a786e
BLAKE2b-256 64e216e2487fcf2fd7dabb5a12a586e8a51b2f0d084a331217c0bd98f8248654

See more details on using hashes here.

File details

Details for the file uvshell-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: uvshell-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 11.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for uvshell-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e268692eddce6592dcc270b92de87faea5376b57c982004f0d39aa5a7ffa911c
MD5 54770d2f9f9f48e50d22d0139e468e37
BLAKE2b-256 645cf22cc6bc57cd015f496ba90a85c97a3f21cab23a0bd7a63eb0defc975e01

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page