Skip to main content

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, pathlib where possible

License

MIT

Metadata

Release files for pyvdrift 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyvdrift 0.1.0
File Size Uploaded Provenance
pyvdrift-0.1.0.tar.gz 31.6 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for pyvdrift 0.1.0
File Interpreter ABI Platform
pyvdrift-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 75.8 kB

Release files / pyvdrift-0.1.0.tar.gz

Download URL pyvdrift-0.1.0.tar.gz
Size 31.6 kB
Tags Source
SHA-256 checksum
How to use checksums
783afff7c4743483f7f5bc215d6b566b2d8a3a50e9fbfaaca2e3313c36a5b177
BLAKE2b-256 checksum
How to use checksums
83a8c9aeeeac80b39fd3cc720ab79a32cf6cb6c36e51d82897f86b10656064f3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 18, 2026.

Transparency log

Release files / pyvdrift-0.1.0-py3-none-any.whl

Download URL pyvdrift-0.1.0-py3-none-any.whl
Size 44.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
86143e7193647e9129c4b7f7bd4da12b72f9e623193ed7e8042e097b9f3f61c3
BLAKE2b-256 checksum
How to use checksums
66c9e945d056b7e5836717c706e3eac825f86cc926bc457217d4a65e0701a8a1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 18, 2026.

Transparency log

Security for pyvdrift 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pyvdrift-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 18, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page