Enter a local .venv created by uv
Project description
uvshell
Open a shell inside a local uv virtual environment.
uvshell creates a local .venv if it does not 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 - Initializes a
uvproject first ifpyproject.tomlis missing - Marks newly initialized projects with
tool.uv.package = falseby default - Opens a new interactive shell with the virtual environment activated
- Works across Windows, macOS, and Linux
Installation
Install From PyPI With uv
uv tool install uvshell
or:
uv pip install uvshell
Install With pip
pip install uvshell
Install From a Local Build
pip install dist/uvshell-0.1.3-py3-none-any.whl
Requirements
- Python 3.9+
uvinstalled and available onPATH
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 - If
pyproject.tomldoes not exist,uvshellrunsuv initfirst - New auto-initialized projects default to
tool.uv.package = false - On Windows,
uvshellopens acmd.exesubshell - Type
exitto leave the environment
Options
Use a Different Virtual Environment Directory
uvshell --venv .venv-dev
Specify Python When Creating the Environment
uvshell --python 3.13
Initialize as a Packaged Project
uvshell --package
Use this if you want uvshell to create a packaged uv project when it has to run uv init.
Error If the Environment Is Missing
uvshell --no-create
Example Workflow
mkdir my-project
cd my-project
uvshell
exit
Local Smoke Test
python -m pip uninstall -y uvshell
python -m pip install .\dist\uvshell-0.1.3-py3-none-any.whl
mkdir C:\temp\uvshell-smoke
cd C:\temp\uvshell-smoke
uvshell --python 3.13
After uvshell starts, confirm that .venv, .gitignore, and optionally .python-version were created as expected.
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.3.tar.gz.
File metadata
- Download URL: uvshell-0.1.3.tar.gz
- Upload date:
- Size: 9.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
477b1eeefb5e9c347af10945e4a71f7ebe32788595cd77fcc4cf96ed9ba97dae
|
|
| MD5 |
39bf97d4153b95dc6f049d7fdb23813b
|
|
| BLAKE2b-256 |
5d1e109cee3c8f8f7e298f0754815c349739296eaac7ea1983bb8e989b3db6dd
|
File details
Details for the file uvshell-0.1.3-py3-none-any.whl.
File metadata
- Download URL: uvshell-0.1.3-py3-none-any.whl
- Upload date:
- Size: 12.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0526bdcf01c539f47cd2affbc67fb72e0329a1d06e1b53cdea7f0aa8cb585a64
|
|
| MD5 |
0b8a2e77d6e1e7014e2dfb557d9d2b74
|
|
| BLAKE2b-256 |
6eff6cd5b2478fd94c3e29bf6fa28f6354efcc3647ca79c647f568b467280626
|