python-python-discovery
Port variant v13
Summary Python interpreter discovery (3.13)
Package version 1.9.5
Homepage https://github.com/tox-dev/python-discovery
Keywords python
Maintainer Python Automaton
License Not yet specified
Other variants v14
Ravenports Buildsheet | History
Ravensource Port Directory | History
Last modified 08 NOV 2026, 15:47:17 UTC
Port created 24 MAR 2026, 14:46:45 UTC
Subpackage Descriptions
single # [`python-discovery`] [PyPI] [Supported Python versions] [Downloads] [check] [Documentation Status] [OpenSSF Scorecard] [OpenSSF Best Practices] ## 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 requirement like `python3.12` or `>=3.11,<3.13`, and it searches all known locations, verifies each candidate, and returns detailed metadata about the match. Results are cached to disk so repeated lookups are fast. The library runs on Python 3.9+ and discovers interpreters as old as Python 3.6; anything older is skipped with a warning naming the version it found. ## Usage ```python 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 is not None: print(result.executable) # /usr/bin/python3.12 print(result.implementation) # CPython print(result.version_info[:3]) # (3, 12, 1) ``` The `get_interpreter()` function accepts various specification formats: - Absolute path: `/usr/bin/python3.12` - Version: `3.12` - Implementation prefix: `cpython3.12` - [Version specifier]: `>=3.10`, `>=3.11,<3.13` ## Documentation Full documentation is available at [python-discovery.readthedocs.io]
Configuration Switches (platform-specific settings discarded)
PY313 ON Build using Python 3.13 PY314 OFF Build using Python 3.14
Package Dependencies by Type
Build (only) python313:dev:std
python-pip:single:v13
autoselect-python:single:std
Build and Runtime python313:primary:std
Runtime (only) python-filelock:single:v13
Download groups
main mirror://PYPIWHL/ac/35/25bd092ca8a7e71192afdca67fbff4f797da74408e74ac3626e13b409ec0
Distribution File Information
a1fae8fca11e4bc61e38491c2aafff29e430b3c5e272d51ae52fb895bc4c0fac 44377 python-src/python_discovery-1.9.5-py3-none-any.whl
Ports that require python-python-discovery:v13
python-virtualenv:v13 Virtual Python Environment builder (3.13)