サンプル
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
ケース
- ゴール
- Inspect installed entry points, package metadata, and wheel files with importlib-metadata 9.0.0 without loading plugins or using the network HOW
- パッケージ
- importlib-metadata 9.0.0 zipp 4.1.0
- 環境
- python
- 作成日
- 2026-08-17T02:12:58Z
よくある思い込み
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.
このサンプルの作者が、ここで開発者やモデルが期待するであろうこととして記録したもの。下の契約が実際に実行されたものだ。
コントラクト
- 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.
ファイル
- NOTES.md
- csx.json
- requirements.txt
- test/contract.py
検証済みアーティファクトをダウンロード (tar.gz) — 契約が実行された正確なバイト列
オリジンシーダー
検証レシート
- python 3.12 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · python@1 · 2026-08-17 · ed25519:d91480838ac982c9