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
.venvusinguvif 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+
uvinstalled and available in your PATH
Install uv if needed:
pip install uv
or:
brew install uv
Usage
From your project directory:
uvshell
Behavior:
- If
.venvdoes not exist → it will be created - A new shell opens with the virtual environment active
- Type
exitto 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
32300b77cc86df283665cf0b7bd3f96b2e8bff005dd4adaa83c8297bac13ce02
|
|
| MD5 |
818bae9f2149faaad4a93f7c0b3a786e
|
|
| BLAKE2b-256 |
64e216e2487fcf2fd7dabb5a12a586e8a51b2f0d084a331217c0bd98f8248654
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e268692eddce6592dcc270b92de87faea5376b57c982004f0d39aa5a7ffa911c
|
|
| MD5 |
54770d2f9f9f48e50d22d0139e468e37
|
|
| BLAKE2b-256 |
645cf22cc6bc57cd015f496ba90a85c97a3f21cab23a0bd7a63eb0defc975e01
|