python-discovery 1.4.2
pip install python-discovery
Released:
Python interpreter discovery
Navigation
Verified details
These details have been verified by PyPIProject links
GitHub Statistics
Maintainers
π Avatar for gaborbernat from gravatar.comgaborbernat
Meta
- Maintainer: BernΓ‘t GΓ‘bor
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License (Permission is hereby granted, free of charge, to any person obtaining a)
- Tags discovery , interpreter , python
- Requires: Python >=3.8
-
Provides-Extra:
docs,testing
Classifiers
- Development Status
- Intended Audience
- License
- Operating System
- Programming Language
- Topic
Project description
python-discovery
π PyPI
π Supported Python versions
π Downloads
π check
π Documentation Status
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.
Usage
frompathlibimport Path frompython_discoveryimport 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
Project details
Verified details
These details have been verified by PyPIProject links
GitHub Statistics
Maintainers
π Avatar for gaborbernat from gravatar.comgaborbernat
Meta
- Maintainer: BernΓ‘t GΓ‘bor
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License (Permission is hereby granted, free of charge, to any person obtaining a)
- Tags discovery , interpreter , python
- Requires: Python >=3.8
-
Provides-Extra:
docs,testing
Classifiers
- Development Status
- Intended Audience
- License
- Operating System
- Programming Language
- Topic
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file python_discovery-1.4.2.tar.gz.
File metadata
- Download URL: python_discovery-1.4.2.tar.gz
- Upload date:
- Size: 70.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8f3746c4b4968d22afbb97d36e1a0e5b66e6c0f297290f2e95f05b9b8bf18690
|
|
| MD5 |
51d70fd912f321b59efd8635b1c6f350
|
|
| BLAKE2b-256 |
0b1acbbaf13b730abb0a16b964d984e19f2fe520c21a4dc664051359a3f5a9e7
|
Provenance
The following attestation bundles were made for python_discovery-1.4.2.tar.gz:
Publisher:
release.yaml on tox-dev/python-discovery
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
python_discovery-1.4.2.tar.gz -
Subject digest:
8f3746c4b4968d22afbb97d36e1a0e5b66e6c0f297290f2e95f05b9b8bf18690 - Sigstore transparency entry: 1791085775
- Sigstore integration time:
-
Permalink:
tox-dev/python-discovery@ca8d9380f9a1457c58dce44f0ef343c712a10275 -
Branch / Tag:
refs/tags/1.4.2 - Owner: https://github.com/tox-dev
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@ca8d9380f9a1457c58dce44f0ef343c712a10275 -
Trigger Event:
push
-
Statement type:
File details
Details for the file python_discovery-1.4.2-py3-none-any.whl.
File metadata
- Download URL: python_discovery-1.4.2-py3-none-any.whl
- Upload date:
- Size: 33.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
475803f53b7b2ed6e490e27373f9d8340f7d2eebf9acdaf645d7d714c97bb500
|
|
| MD5 |
2e032aa50cab4d7cd911d340f341072b
|
|
| BLAKE2b-256 |
1a82a70006589557f267f15bd384c0642ad49f0d97b690c3a05b166b9dcbad3b
|
Provenance
The following attestation bundles were made for python_discovery-1.4.2-py3-none-any.whl:
Publisher:
release.yaml on tox-dev/python-discovery
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
python_discovery-1.4.2-py3-none-any.whl -
Subject digest:
475803f53b7b2ed6e490e27373f9d8340f7d2eebf9acdaf645d7d714c97bb500 - Sigstore transparency entry: 1791085974
- Sigstore integration time:
-
Permalink:
tox-dev/python-discovery@ca8d9380f9a1457c58dce44f0ef343c712a10275 -
Branch / Tag:
refs/tags/1.4.2 - Owner: https://github.com/tox-dev
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@ca8d9380f9a1457c58dce44f0ef343c712a10275 -
Trigger Event:
push
-
Statement type:
