CodeSampleX

Sample

python-dotenv 1.2.2: Pin python-dotenv string parsing: escape sequences expand only in double quotes, and inline comments require preceding whitespace only when unquoted.

Verified sample for pypi python-dotenv 1.2.2: Pin python-dotenv string parsing: escape sequences expand only in double quotes, and inline comments require…

sha256:fbecb11147dfb5e3583e9f299a4f2e4b8dd343ed86435313168cd2309772519a

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
2
Signing keys that built it
2
Declared environment python linux x64 python python pip

Verification-run environments

Environment Contract Stages Run
python 3.12 · linux alpine/x64 · docker ed25519:d91480838ac982c9 PASS compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS
CONTAINER_RUN · python@1
2026-08-17
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

Case

HOW
Goal
Pin python-dotenv string parsing: escape sequences expand only in double quotes, and inline comments require preceding whitespace only when unquoted.
Packages
Symbols
  • dotenv_values
  • load_dotenv
Environment
python
Created
2026-08-17T19:28:07Z

Contract

  1. dotenv_values expands \n to an actual newline only inside double quotes, and treats # as a comment only if it follows a space (when unquoted) or immediately follows a closing quote.
  2. assert unquoted and single-quoted \n parse as a literal backslash followed by n
  3. assert unquoted # without preceding space is parsed as part of the string value (val#3)
  4. assert unquoted # with preceding space is parsed as a comment (val #3 -> val)
  5. assert # immediately following a closing quote is parsed as a comment, even without preceding space

Files

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

Download the source artifact (tar.gz)

Origin Seeder

csx-seed