๐จ scoop
โ ๏ธ Work in Progress โ Under active development. API may change.
One scoop, endless envs โ pyenv-style Python environment manager powered by uv
What is scoop? ๐จ
scoop scoops up uv's blazing speed โ centralizing all your Python virtual environments in one place.
๐จ Think of it like running an ice cream parlor:
- The Freezer (
~/.scoop/) keeps all your flavors fresh- Flavors are your virtualenvs โ mix once, serve anywhere
- One scoop is all you need to get the right env
| The Old Way (Yuck ๐ซ ) | The scoop Way (Fresh ๐จ) |
|---|---|
.venv scattered across projects |
~/.scoop/virtualenvs/ centralized |
Manual source .venv/bin/activate |
Auto-activate on directory entry |
| pyenv-virtualenv is slow | uv-powered, 100x+ faster |
| Which Python? Which venv? Chaos. | scoop doctor checks everything |
The Freezer ๐ง
Your ice cream parlor lives here:
~/.scoop/ # ๐ง The Freezer
โโโ virtualenvs/ # ๐จ All your flavors
โ โโโ myproject/ # โ Python 3.12 flavor
โ โโโ webapp/ # โ Python 3.11 flavor
โ โโโ experiment/ # โ Python 3.13 flavor
โโโ version # ๐ฅ Default scoop preference
Version file priority (first match wins):
.scoop-version โ "I want THIS flavor here"
.python-version โ "pyenv compatibility mode"
~/.scoop/version โ "My usual order"
Installation ๐จ
Prerequisites
| Dependency | Install | Why |
|---|---|---|
| uv | curl -LsSf https://astral.sh/uv/install.sh | sh |
The secret ingredient ๐ฎ |
| Rust | curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh |
Build from source |
Install scoop
Cargo installs binaries to ~/.cargo/bin. Ensure it's in your PATH:
# Add to ~/.zshrc or ~/.bashrc
Or restart your terminal after installing Rust.
Shell Setup
Step 1: Add to your shell config
Zsh (macOS default):
Bash:
Step 2: Verify
# โ scoop 0.2.7 ๐จ
What this enables
- โ
Auto-activation โ enter a directory with
.scoop-version, environment activates - โ Tab completion โ commands, environments, Python versions
- โ
Shell wrapper โ
scoop activate/deactivateworks correctly
Using with pyenv
Add scoop after pyenv in your rc file (order matters โ scoop gets the last scoop! ๐จ):
# ~/.zshrc
Options
| Variable | Effect |
|---|---|
SCOOP_NO_AUTO=1 |
Disable auto-activation |
SCOOP_HOME=/path |
Custom freezer location (default: ~/.scoop) |
# Example: disable auto-activation
Quick Start ๐จ
# Stock up the freezer ๐ง
# Mix a new flavor ๐ฆ
# Pick your flavor for this directory (auto-activates!)
()
# Check what's in the freezer
# Clean up
Commands ๐จ
Everyday Scooping
| Command | Description |
|---|---|
scoop create <name> [version] |
Mix a new flavor (default: latest Python) |
scoop use <name> |
Pick your flavor (auto-activates) |
scoop use <name> --link |
Also create .venv symlink for IDE |
scoop use <name> --global |
Set as your usual order |
scoop list |
What's in the freezer? |
scoop list --pythons |
What Python versions do we have? |
scoop list --json |
Output as JSON |
scoop remove <name> |
Melt a flavor away |
Managing the Freezer
| Command | Description |
|---|---|
scoop install [version] |
Stock up on Python (default: latest) |
scoop install --stable |
Get the oldest supported Python (3.10) |
scoop uninstall <version> |
Remove a Python version |
Health Check ๐ฉบ
| Command | Description |
|---|---|
scoop doctor |
Is everything fresh? Check your setup! |
scoop doctor --fix |
Auto-fix issues where possible |
scoop doctor --json |
Output diagnostics as JSON |
Shell Integration
| Command | Description |
|---|---|
scoop init <shell> |
Output shell initialization script |
scoop completions <shell> |
Generate completion script |
Shells supported:
bash,zsh,fish,powershell
For complete command reference, see docs/commands.md.
Architecture ๐๏ธ
Built with Rust for speed and reliability:
src/
โโโ cli/ # ๐ฎ Command parsing (clap)
โ โโโ commands/ # Individual command handlers
โโโ core/ # ๐ง Domain logic
โ โโโ version # Version file resolution
โ โโโ metadata # Virtualenv metadata (JSON)
โ โโโ virtualenv # Virtualenv entity
โ โโโ doctor # Health diagnostics
โโโ shell/ # ๐ Shell integration (bash, zsh)
โโโ uv/ # โก uv CLI wrapper
โโโ output/ # ๐จ Terminal UI (spinners!)
โโโ error, paths, validate # Utilities
Design principle: The CLI outputs shell code to stdout, your shell evaluates it. Just like pyenv โ battle-tested pattern.
Documentation ๐จ
| Guide | Description |
|---|---|
| Command Reference | Complete command documentation |
| Development Guide | Architecture and contribution guide |
| Testing Guide | Test structure, running, and writing tests |
| Code Quality Guide | Formatting, linting, and CI setup |
License
Licensed under either of:
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this work shall be dual licensed as above, without any additional terms or conditions.
Support ๐จ
If you find this project useful, consider buying me a coffee (or an ice cream ๐จ)!
Acknowledgments ๐จ
This project stands on the shoulders of giants:
-
uv by Astral โ The blazing-fast Python package manager that powers scoop's backend. Without uv's incredible speed and reliability, scoop wouldn't exist. Thank you to Charlie Marsh and the entire Astral team for revolutionizing Python tooling.
-
pyenv & pyenv-virtualenv โ The original inspiration for scoop's workflow. pyenv taught us how Python version management should feel, and pyenv-virtualenv showed us how to centralize virtual environments elegantly.
-
virtualenv by PyPA โ The pioneer of Python virtual environments. Thank you to Ian Bicking for the original concept that changed how we isolate Python projects.
-
Python โ The language that made programming accessible to everyone. scoop exists to make Python development even more delightful. Thank you to Guido van Rossum and the Python community.
-
Rust โ The language that makes scoop fast, safe, and reliable. Thank you to the Rust team and Ferris ๐ฆ for proving that systems programming can be both powerful and enjoyable.
I built scoop because I needed it โ and now it's yours too. ๐จ
Grab a scoop, enjoy the flavor, and if you have thoughts to share, the door to the ice cream parlor is always open.
Issues ยท Discussions ยท PRs Welcome