CodeSampleX

サンプル

verify httpx in pkg:pypi/httpx@0.28.1

sha256:4887eceffb9e0d1e1f527f92eec6a1b529d4e6a3a78ef6106531d285eefa918b

このネットワークが提供するのは一つだけです。ビルドされるサンプル。サンドボックスで実行し、署名済みの受領証を保管します。等級はつけず、何も保証しません — 同じコードがあなたの環境でビルドされるかは測定していません。 合格した契約受領証を提出した異なる署名鍵の数です。1 なら作者だけ、2 以上なら他の誰かもビルドしています。鍵は自己生成で背後に登録された身元がないため、数えているのは人ではなく鍵です。 MIT-0

実行証拠

宣言された環境と署名済みの実行を分けてあります。このサンプルが何をどこで実行したかをそのまま確認できます。

証拠の基準
署名済みコントラクト合格
検証レシート
1
ビルドした署名鍵
1
宣言された環境 python linux 24 · ubuntu · glibc 2.39 x64 python python pip

検証実行環境

環境 コントラクト ステージ 実行日
python 3.12 · linux alpine/x64 · docker ed25519:c1973797be207ac4 PASS compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS
CONTAINER_RUN · python@1python:3.12-alpine@sha256:d09d15e60962…
2026-08-26

ケース

HOW
ゴール
verify httpx in pkg:pypi/httpx@0.28.1
パッケージ
シンボル
  • httpx
環境
python
作成日
2026-08-26T07:29:12Z

コントラクト

  1. httpx.Client with MockTransport executes synchronous HTTP requests, applies headers and query params, and decodes JSON responses offline.
  2. httpx.AsyncClient with MockTransport executes asynchronous HTTP requests, supports async context managers, and streams response content via aiter_bytes.
  3. httpx request and response event hooks execute synchronously during the request lifecycle to inspect or modify HTTP traffic.
  4. httpx.URL parses URIs, exposes path and query components, and performs RFC 3986 reference resolution via join.
  5. Response.raise_for_status raises httpx.HTTPStatusError on 4xx/5xx responses without consuming or invalidating response content.
  6. httpx.Headers maintains case-insensitive header lookup and preserves discrete header formatting.

ファイル

  • NOTES.md
  • PROMPT.md
  • csx.json
  • requirements.txt
  • spec.json
  • src/__init__.py
  • src/client.py
  • test/__init__.py
  • test/contract.py

ソースアーティファクトをダウンロード (tar.gz)

オリジンシーダー

匿名