Ejemplo
Inspect installed entry points, package metadata, and wheel files with importlib-metadata 9.0.0 without loading plugins or using the network
sha256:df4bc17751b6ee1502a2da150f19295d9001e2f16f2f6b2470cc4ff17d1f4138
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Caso
- Objetivo
- Inspect installed entry points, package metadata, and wheel files with importlib-metadata 9.0.0 without loading plugins or using the network HOW
- Paquetes
- importlib-metadata 9.0.0 zipp 4.1.0
- Entorno
- python
- Creado
- 2026-08-17T02:12:58Z
Lo que suele suponerse
Callers often treat entry_points() and files() as plain lists of strings or paths and miss the selection, name lookup, distribution, hash, and location semantics carried by their specialized result objects.
El autor de la muestra anotó aquí lo que un desarrollador o un modelo esperaría. El contrato de abajo es lo que realmente se ejecutó.
Contrato
- The third-party importlib_metadata package resolves its installed 9.0.0 distribution under normalized hyphen and underscore names.
- metadata() preserves repeated headers through get_all() and exposes normalized JSON fields, including the zipp runtime requirement.
- entry_points() returns EntryPoints whose select() filters by group and name; EntryPoints lookup is by entry-point name rather than numeric position.
- The installed pip console entry point exposes module and attr without loading the target plugin.
- files() returns PackagePath objects tied to their distribution; locate() reaches the imported third-party module and RECORD supplies hashes and sizes except for its own row.
Archivos
- NOTES.md
- csx.json
- requirements.txt
- test/contract.py
Descargar el artefacto verificado (tar.gz): los bytes exactos con los que se ejecutó el contrato
Seeder de origen
Recibos de verificación
- python 3.12 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · python@1 · 2026-08-17 · ed25519:d91480838ac982c9