Sample
python-dotenv 1.2.2: Pin python-dotenv master disable switch (PYTHON_DOTENV_DISABLED), override precedence on os.environ vs variable interpolation, and dotenv_values override divergence
Verified sample for pypi python-dotenv 1.2.2: Pin python-dotenv master disable switch (PYTHON_DOTENV_DISABLED), override precedence on os.environ vs variable…
sha256:8c2a9e1c45906b691884dcbb1db94fc470656b7e1de3b35c3deb25d68b1d9b06
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 master disable switch (PYTHON_DOTENV_DISABLED), override precedence on os.environ vs variable interpolation, and dotenv_values override divergence
- Packages
- Symbols
-
- dotenv.load_dotenv
- dotenv.dotenv_values
- dotenv.DotEnv
- Environment
- python
- Created
- 2026-08-17T03:19:46Z
Contract
- PYTHON_DOTENV_DISABLED set to truthy values ('1', 'true', 'yes', 't', 'y') causes load_dotenv to return False and load nothing into os.environ, while dotenv_values continues to parse files
- load_dotenv with override=False (default) preserves existing os.environ keys and resolves variable expansions (${VAR}) using os.environ values rather than .env file definitions
- load_dotenv with override=True overwrites existing os.environ keys and resolves variable expansions using .env file definitions
- dotenv_values always evaluates variable expansions using file values regardless of existing os.environ definitions, diverging from load_dotenv(override=False)
- interpolate=False disables variable interpolation and preserves ${VAR} and ${VAR:-default} as raw string literals
- unset variable parameter expansion (${UNSET:-default}) evaluates to default while unset variable without default (${UNSET}) evaluates to empty string
- keys without values ('KEY=') resolve to empty string ('') whereas valueless keys ('KEY') resolve to None in dotenv_values and are skipped by load_dotenv
Files
- NOTES.md
- csx.json
- requirements.txt
- src/__init__.py
- src/config.py
- test/contract.py