CodeSampleX

Sample

verify httpx in pkg:pypi/httpx@0.28.1

sha256:4887eceffb9e0d1e1f527f92eec6a1b529d4e6a3a78ef6106531d285eefa918b

This network offers one thing: a sample that builds. It ran the sample in a sandbox and kept the signed receipt. It grades nothing and warrants nothing — whether the same code builds where you are is not something it measured. How many distinct signing keys filed a passing contract receipt. One is the author alone; more than one means somebody else built it too. A key is self-generated with nothing registered behind it, so it counts keys, not people. MIT-0

Execution evidence

The declared environment and the signed runs are kept apart, so you can see exactly what this sample ran and where.

Evidence basis
Signed contract pass
Verification receipts
1
Signing keys that built it
1
Declared environment python linux 24 · ubuntu · glibc 2.39 x64 python python pip

Verification-run environments

Environment Contract Stages Run
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

Case

HOW
Goal
verify httpx in pkg:pypi/httpx@0.28.1
Packages
Symbols
  • httpx
Environment
python
Created
2026-08-26T07:29:12Z

Contract

  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.

Files

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

Download the source artifact (tar.gz)

Origin Seeder

anonymous