PYPI PACKAGE AUDIT v1.9.7 Enterprise Healthy

python-discovery

Descoberta do interpretador Python

PyPkgScore python-discovery
Metodologia & Critérios ♥ Donate
920 / 1000
Instalação Rápida
pip install python-discovery
1. Governança
200/200
2. Metadados PEP
200/200
3. Segurança
200/200
4. Docs & SEO
155/200
5. Engenharia CI
165/200
📣 Compartilhar Auditoria: Envie este relatório e a prévia visual no idioma atual
Advertisement
PYPI TELEMETRY

Downloads & Adoção na Comunidade

Últimos 30 dias (sem espelhos)
Últimos 7 dias
47907958
Últimos 30 dias
201578808
Total (180 dias)
1410620609
Métrica / Ecossistema Status / Valor Fonte
Downloads (30d / 180d) — PyPI Stats (without mirrors)
Trusted Publishing (PEP 740) ✓ Verified OIDC PyPI Integrity / Sigstore
Django Packages — djangopackages.org
PyTech / PyPkgScore 920 / 1000 PyPkgScore Engine

Análise de Saúde & Engenharia (5 Pilares)

1. Governança & Comunidade200 / 200 ▾
LICENSE✓ 50 pts
SECURITY.md✓ 50 pts
CONTRIBUTING.md✓ 50 pts
CODE_OF_CONDUCT.md✓ 50 pts
2. Metadados & Empacotamento PEP200 / 200 ▾
Wheel (.whl)✓ 50 pts
pyproject.toml✓ 50 pts
Project URLs✓ 50 pts
Trove Classifiers✓ 50 pts
3. Segurança & Supply Chain200 / 200 ▾
Zero CVEs (OSV)✓ 60 pts
Trusted Publishing (OIDC)✓ 50 pts
Snyk / Audit Link✓ 40 pts
Repositório HTTPS✓ 50 pts
4. Documentação, SEO & Ecossistema155 / 200 ▾
README Estruturado✓ 60 pts
Read the Docs✓ 50 pts
Django Packages✕ 0 pts
Site / Artigos Técnicos✓ 45 pts
5. Engenharia, CI & Qualidade165 / 200 ▾
Testes Automatizados✓ 65 pts
GitHub Actions CI✓ 65 pts
CHANGELOG.md✓ 35 pts
Env & Lockfile (uv/rye/poetry/pdm/hatch)✕ 0 pts
Advertisement
README & DOCS

Documentação Oficial & Guia de Uso — python-discovery

PyPI Metadata v1.9.7
Exibir documentação original completa (README em Inglês) ▾

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

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