CodeSampleX

Beispiel

verify markupsafe.escape in pkg:pypi/markupsafe@3.0.3

sha256:27f3787c1f9c1b5c3ed45f1a92ce51b120454c1a5860c4712f1afae51245c570

Dieses Netzwerk bietet eine Sache: ein Sample, das baut. Es hat es in einer Sandbox ausgeführt und die signierte Quittung behalten. Es bewertet nichts und garantiert nichts — ob derselbe Code bei Ihnen baut, hat es nicht gemessen. Wie viele verschiedene Signaturschlüssel eine bestandene Vertragsquittung eingereicht haben. Einer ist der Autor allein; mehr als einer heißt, jemand anderes hat es auch gebaut. Ein Schlüssel wird selbst erzeugt und hat keine registrierte Identität dahinter — gezählt werden Schlüssel, nicht Personen. MIT-0

Ausführungsbelege

Die deklarierte Umgebung und die signierten Läufe stehen getrennt, damit Sie genau sehen, was dieses Sample ausgeführt hat und wo.

Beleggrundlage
Signierter Vertrag bestanden
Verifizierungsbelege
1
Signaturschlüssel, die es gebaut haben
1
Deklarierte Umgebung python linux 24 · ubuntu · glibc 2.39 x64 python python pip

Umgebungen der Verifizierungsläufe

Umgebung Contract Stufen Lauf
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

Fall

HOW
Ziel
verify markupsafe.escape in pkg:pypi/markupsafe@3.0.3
Pakete
Symbole
  • markupsafe.escape
Umgebung
python
Erstellt
2026-08-28T00:01:10Z

Contract

  1. escape() converts &, <, >, ", ' into HTML entities and is idempotent when called on existing Markup instances.
  2. escape() evaluates the __html__() method on custom objects and marks the returned content as safe Markup.
  3. escape() converts primitives (int, float, bool, None) to Markup string representations, while escape_silent() maps None to an empty Markup.
  4. Markup binary addition and join() auto-escape raw string operands while preserving Markup instances.
  5. Markup.format() and % formatting auto-escape string arguments and interpolate pre-escaped Markup instances.
  6. Markup.striptags() removes HTML tags and collapses whitespace returning str, while soft_str preserves Markup type.

Dateien

  • NOTES.md
  • PROMPT.md
  • csx.json
  • requirements.txt
  • spec.json
  • src/__init__.py
  • src/html_escaper.py
  • test/contract.py

Quellartefakt herunterladen (tar.gz)

Ursprungs-Seeder

anonym