Detect environment drift across all your Python projects
Project description
pyvdrift
Detect environment drift across all your Python projects.
Every Python developer with more than a handful of projects hits this: venvs scattered across your machine, requirements drifting from what's installed, broken interpreters, stale environments. pyvdrift is the cross-project health layer that sits on top of whatever tools you already use.
Install
pipx install pyvdrift
Quick Start
pyvdrift scan # find all Python projects on your machine
pyvdrift check # diff requirements vs actually installed packages
pyvdrift doctor # diagnose broken venvs and interpreter mismatches
pyvdrift list # show all known projects with health status
pyvdrift clean # remove venvs not touched in N days
pyvdrift watch <path> # monitor a project for drift in real time
Supported Package Managers
pyvdrift is tool-agnostic — it reads whatever format your project uses:
| Tool | Detection | Lockfile |
|---|---|---|
| uv | uv.lock or [tool.uv] |
uv.lock |
| Poetry | poetry.lock or [tool.poetry] |
poetry.lock |
| Pipenv | Pipfile |
Pipfile.lock |
| pip | requirements*.txt |
— |
| Hatch | [tool.hatch] |
— |
| PDM | pdm.lock or [tool.pdm] |
pdm.lock |
| conda | environment.yml |
— |
| setup.py/cfg | setup.py or setup.cfg |
— |
A single project can use multiple tools simultaneously — pyvdrift detects all of them.
Commands
pyvdrift scan [PATH] [--depth N] [--json] [--save]
Walk a directory tree and find all Python projects. Default path is ~, default depth is 5.
pyvdrift check [PATH] [--fix] [--json] [--include-dev]
Compare declared dependencies against what's actually installed in the project's venv. Shows missing packages, version mismatches, and undeclared packages.
pyvdrift doctor [PATH] [--json]
Run all health checks: venv exists, Python binary works, interpreter version matches, deps installed, lockfile in sync, tool available. Exit codes: 0 = ok, 1 = warnings, 2 = errors.
pyvdrift list [--depth N] [--sort-by health|name|tool|last-used] [--json]
Scan + doctor for every project in a compact dashboard.
pyvdrift clean [--dry-run] [--older-than DAYS] [--yes]
Find and remove stale venvs. Dry run by default — pass --no-dry-run --yes to actually delete.
pyvdrift watch <PATH> [--interval SECONDS]
Poll a project and re-check on change. Exit with Ctrl+C.
Design Principles
- Read-only by default — never mutates your projects unless you explicitly ask
- Pure Python — minimal dependencies, fast startup
- Tool-agnostic — works with whatever your project uses
- Cross-project — the health layer that no single tool provides
- stdlib-first — uses
tomllib,configparser,ast,pathlibwhere possible
License
MIT
Project details
Release history Release notifications | RSS feed
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 pyvdrift-0.1.0.tar.gz.
File metadata
- Download URL: pyvdrift-0.1.0.tar.gz
- Upload date:
- Size: 31.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
783afff7c4743483f7f5bc215d6b566b2d8a3a50e9fbfaaca2e3313c36a5b177
|
|
| MD5 |
0af98ccb20d84dc3a5380a2414258c59
|
|
| BLAKE2b-256 |
83a8c9aeeeac80b39fd3cc720ab79a32cf6cb6c36e51d82897f86b10656064f3
|
Provenance
The following attestation bundles were made for pyvdrift-0.1.0.tar.gz:
Publisher:
release.yml on yiromo/pyvdrift
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyvdrift-0.1.0.tar.gz -
Subject digest:
783afff7c4743483f7f5bc215d6b566b2d8a3a50e9fbfaaca2e3313c36a5b177 - Sigstore transparency entry: 1122678329
- Sigstore integration time:
-
Permalink:
yiromo/pyvdrift@38cdcd776979c223c0e1fdb74cc4c81acfad1d3c -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/yiromo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@38cdcd776979c223c0e1fdb74cc4c81acfad1d3c -
Trigger Event:
push
-
Statement type:
File details
Details for the file pyvdrift-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pyvdrift-0.1.0-py3-none-any.whl
- Upload date:
- Size: 44.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
86143e7193647e9129c4b7f7bd4da12b72f9e623193ed7e8042e097b9f3f61c3
|
|
| MD5 |
f67b9abb4407952c3b872eaf49fcc3e5
|
|
| BLAKE2b-256 |
66c9e945d056b7e5836717c706e3eac825f86cc926bc457217d4a65e0701a8a1
|
Provenance
The following attestation bundles were made for pyvdrift-0.1.0-py3-none-any.whl:
Publisher:
release.yml on yiromo/pyvdrift
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyvdrift-0.1.0-py3-none-any.whl -
Subject digest:
86143e7193647e9129c4b7f7bd4da12b72f9e623193ed7e8042e097b9f3f61c3 - Sigstore transparency entry: 1122678362
- Sigstore integration time:
-
Permalink:
yiromo/pyvdrift@38cdcd776979c223c0e1fdb74cc4c81acfad1d3c -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/yiromo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@38cdcd776979c223c0e1fdb74cc4c81acfad1d3c -
Trigger Event:
push
-
Statement type: