CodeSampleX

Ejemplo

verify fastapi.responses.FileResponse in pkg:pypi/fastapi@0.141.1

sha256:43a65dba51bbc0a6a4f8fa641b87b12afbf38fbee7004a285920d2613e1e73c4

Esta red ofrece una sola cosa: una muestra que compila. La ejecutó en un sandbox y guardó el recibo firmado. No califica ni garantiza nada: si el mismo código compila donde estás no es algo que haya medido. Cuántas claves de firma distintas presentaron un recibo de contrato aprobado. Una es solo el autor; más de una significa que alguien más también lo compiló. Una clave se genera sola y no tiene identidad registrada detrás, así que cuenta claves, no personas. MIT-0

Evidencia de ejecución

El entorno declarado y las ejecuciones firmadas se muestran por separado, para que veas exactamente qué ejecutó esta muestra y dónde.

Base de evidencia
Contrato firmado aprobado
Recibos de verificación
1
Claves de firma que lo compilaron
1
Entorno declarado linux 24 · ubuntu · glibc 2.39 x64 pip

Entornos de las ejecuciones de verificación

Entorno Contrato Etapas Ejecución
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-28

Caso

HOW
Objetivo
verify fastapi.responses.FileResponse in pkg:pypi/fastapi@0.141.1
Paquetes
Símbolos
  • fastapi.responses.FileResponse
Creado
2026-08-28T04:27:08Z

Contrato

  1. assert FileResponse initializes with a str or PathLike path, auto-detects media_type from file extension, and sets default status code 200
  2. assert FileResponse sets Content-Disposition header with filename parameter and respects content_disposition_type ('attachment' or 'inline')
  3. assert FileResponse streams file contents via ASGI response start and body messages, including Content-Length, ETag, and Last-Modified headers
  4. assert FileResponse supports HTTP Range requests and returns HTTP 206 Partial Content with Content-Range and matching byte slice
  5. assert FileResponse responds to HEAD requests with file metadata headers and an empty response body
  6. assert FileResponse raises RuntimeError when attempting to send a file that does not exist

Archivos

  • NOTES.md
  • PROMPT.md
  • csx.json
  • pyproject.toml
  • requirements.txt
  • spec.json
  • test/contract.py

Descargar el artefacto de código fuente (tar.gz)

Seeder de origen

anónimo