python-discovery
Python interpreter discovery
Install
python-discovery on PyPI
pip
pip install python-discoveryuv
uv add python-discoverypoetry
poetry add python-discoveryPackage facts
| License | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction,… (full text in the JSON record) (permissive) |
| Python support | supports the current Python release (>=3.8) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — filelock |
| Maintenance | actively maintained — 1 days since the last release |
| Last repo commit | |
| First released | |
| Popularity | one of the top 1,000 most-downloaded packages on PyPI (30-day window, as of 2026-08-13) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-13) |
Evidence: python_discovery-1.5.2-py3-none-any.whl
Keywords: discovery, interpreter, python
About python-discovery
from the package's own PyPI description — quoted content, verbatim
python-discovery
PyPI (image) Supported Python versions (image) Downloads (image) check (image) Documentation Status (image)
What is python-discovery?
python-discovery is a library for discovering Python interpreters installed on your machine. You may have multiple
Python versions from system packages, pyenv, mise,
asdf, uv, or the Windows registry (PEP 514). This library finds
the right one for you.
Give it a...
Read as markdown · JSON record · Source repository · Homepage · Docs
AI interpretation — verify before relying
AI-generated interpretation of the package facts above; every digit, version, license, or vulnerability id it cites is grounded in the facts already shown on this page
Discovers Python interpreters installed on your system across multiple sources (system packages, pyenv, mise, asdf, uv, Windows registry) and returns detailed metadata for a given version requirement, with disk-based caching for fast repeated lookups.
Active maintenance with a release just 1 day old. Single lightweight runtime dependency (filelock) and pure-Python wheel distribution keep install friction low. Supports Python 3.8 through 3.15.
MIT license (permissive) allows unrestricted use, modification, and distribution in commercial and private projects with minimal obligations.
Usage
from pathlib import Path
from python_discovery import DiskCache, get_interpreter
cache = DiskCache(root=Path("~/.cache/python-discovery").expanduser())
result = get_interpreter("python3.12", cache=cache)
if result:
print(result.executable) # /usr/bin/python3.12
Verdict: Production-ready library with active maintenance, no known vulnerabilities, and minimal dependencies. Solves a specific and useful problem—locating Python interpreters across multiple installation sources—with a clean API and broad platform support. MIT license poses no restrictions.
Needs verification
- Whether caching behavior and cache invalidation strategy meet performance expectations for your use case
- Completeness of interpreter discovery across all supported package managers on your specific platform
Similar packages
permissive · top 1,000 on PyPI
resolvelibpermissive · top 1,000 on PyPI
filelockpermissive · top 100 on PyPI
toxpermissive · top 1,000 on PyPI
diskcachepermissive · top 1,000 on PyPI
pipenvpermissive · top 1,000 on PyPI
platformdirspermissive · top 100 on PyPI
entrypointspermissive · top 1,000 on PyPI
parsedatetimepermissive · top 1,000 on PyPI
asttokenspermissive · top 1,000 on PyPI