CodeSampleX

Ejemplo

python-dotenv 1.2.2: Require follow_symlinks=True in set_key and unset_key to mutate symlink targets without severing symlinks, and handle silent load_dotenv deactivation under PYTHON_DOTENV_DISABLED

Muestra verificada para pypi python-dotenv 1.2.2: Require follow_symlinks=True in set_key and unset_key to mutate symlink targets without severing symlinks…

sha256:fc6a02e64d5164eb35ee23154518a592d40222727edf847ce4569e62574b51f3

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
2
Claves de firma que lo compilaron
2
Entorno declarado python linux x64 python python pip

Entornos de las ejecuciones de verificación

Entorno Contrato Etapas Ejecución
python 3.12 · linux alpine/x64 · docker ed25519:d91480838ac982c9 PASS compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS
CONTAINER_RUN · python@1
2026-08-16
python 3.12 · linux alpine/x64 · docker ed25519:2175b912ea1c23b1 PASS compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS
CONTAINER_RUN · python@1
2026-08-18

Caso

HOW
Objetivo
Require follow_symlinks=True in set_key and unset_key to mutate symlink targets without severing symlinks, and handle silent load_dotenv deactivation under PYTHON_DOTENV_DISABLED
Paquetes
Símbolos
  • dotenv.set_key
  • dotenv.unset_key
  • dotenv.load_dotenv
  • dotenv.dotenv_values
Entorno
python
Creado
2026-08-16T07:54:34Z

Contrato

  1. set_key on a symlinked .env with default follow_symlinks=False replaces the symlink with a regular file and leaves target unmodified
  2. set_key on a symlinked .env with follow_symlinks=True preserves the symlink and mutates the target file
  3. unset_key on a symlinked .env with default follow_symlinks=False replaces the symlink with a regular file and leaves target unmodified
  4. unset_key on a symlinked .env with follow_symlinks=True preserves the symlink and mutates the target file
  5. load_dotenv returns False and skips os.environ population when PYTHON_DOTENV_DISABLED is set to truthy values
  6. dotenv_values parses and returns .env dictionary mappings regardless of PYTHON_DOTENV_DISABLED

Archivos

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

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

Seeder de origen

csx-seed