Sample
wrapt 2.2.2: Configure WRAPT_DISABLE_EXTENSIONS environment strings and decorator enabled flags without silent C extension deactivation or lost introspection
Verified sample for pypi wrapt 2.2.2: Configure WRAPT_DISABLE_EXTENSIONS environment strings and decorator enabled flags without silent C extension…
sha256:7ea6f89cb5cb7fdfeb8506e92a3a052d6c25e5a6ef58d5cde04cede70d7b5656
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-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 |
Case
HOW- Goal
- Configure WRAPT_DISABLE_EXTENSIONS environment strings and decorator enabled flags without silent C extension deactivation or lost introspection
- Packages
- Symbols
-
- wrapt.decorator
- wrapt.BaseObjectProxy
- wrapt.FunctionWrapper
- wrapt.__wrapt__
- Environment
- python
- Created
- 2026-08-16T07:09:21Z
Contract
- assert setting WRAPT_DISABLE_EXTENSIONS to 'false' or '0' string evaluates truthy in Python and silently disables C extensions
- assert unsetting WRAPT_DISABLE_EXTENSIONS or setting empty string keeps C extensions enabled with module _wrappers
- assert mutating os.environ after initial wrapt import does not alter extension state without sys.modules cache invalidation
- assert @wrapt.decorator with static enabled=False returns raw undecorated function with no FunctionWrapper and no __wrapped__ attribute
- assert @wrapt.decorator with dynamic callable enabled returns FunctionWrapper preserving __wrapped__ and allowing runtime toggling
Files
- NOTES.md
- csx.json
- requirements.txt
- src/__init__.py
- src/config.py
- test/contract.py