# Buildsheet autogenerated by ravenadm tool -- Do not edit. NAMEBASE= python-python-discovery VERSION= 1.9.8 KEYWORDS= python VARIANTS= v14 v15 SDESC[v14]= Python interpreter discovery (3.14) SDESC[v15]= Python interpreter discovery (3.15) HOMEPAGE= https://github.com/tox-dev/python-discovery CONTACT= Python_Automaton[python@ravenports.com] DOWNLOAD_GROUPS= main SITES[main]= PYPIWHL/b6/ee/a9cf8b9a9d40654145b9ff928bbe4400bb98f5719f21d36d14c3e3f80461 DISTFILE[1]= python_discovery-1.9.8-py3-none-any.whl:main DIST_SUBDIR= python-src DF_INDEX= 1 SPKGS[v14]= single SPKGS[v15]= single OPTIONS_AVAILABLE= PY314 PY315 OPTIONS_STANDARD= none VOPTS[v14]= PY314=ON PY315=OFF VOPTS[v15]= PY314=OFF PY315=ON DISTNAME= python_discovery-1.9.8.dist-info GENERATED= yes [PY314].RUN_DEPENDS_ON= python-filelock:single:v14 [PY314].USES_ON= python:v14,wheel [PY315].RUN_DEPENDS_ON= python-filelock:single:v15 [PY315].USES_ON= python:v15,wheel [FILE:1526:descriptions/desc.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] [FILE:129:distinfo] 4e0c3349272923b6f58db8c5dad111b09dec9d3e2c97f9b79023f8b2e9acf7ab 99352 python-src/python_discovery-1.9.8-py3-none-any.whl