CodeSampleX

Beispiel

colorize terminal text with Fore, Back, and Style and manage ANSI formatting lifecycle

sha256:7934af40d2b4ebc58157550a5b3c5de866abdd7e07ce40a9ca9b38d6f16757ab

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 3.12 linux 24 · ubuntu · glibc 2.39 x64 python 3.12 python uv

Umgebungen der Verifizierungsläufe

Umgebung Contract Stufen Lauf
python 3.12 · linux alpine/x64 · docker ed25519:d91480838ac982c9 PASS compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS
CONTAINER_RUN · python@1python:3.12-alpine@sha256:d09d15e60962…
2026-08-23

Fall

HOW
Ziel
colorize terminal text with Fore, Back, and Style and manage ANSI formatting lifecycle
Pakete
Umgebung
python 3.12
Erstellt
2026-08-23T16:03:57Z

Contract

  1. colorama.Fore provides ANSI color escape sequences including Fore.RED, Fore.GREEN, Fore.BLUE, and Fore.RESET
  2. colorama.Back provides ANSI background escape sequences including Back.GREEN, Back.RED, and Back.RESET
  3. colorama.Style provides text style escape sequences including Style.BRIGHT, Style.DIM, Style.NORMAL, and Style.RESET_ALL
  4. colorama.Cursor provides parameterized terminal cursor positioning escape codes including UP, DOWN, FORWARD, BACK, and POS
  5. colorama.ansi.code_to_chars converts integer ANSI control codes to escape sequence strings
  6. colorama.ansitowin32.AnsiToWin32 wraps streams with autoreset to append Style.RESET_ALL after writes
  7. colorama.init, colorama.deinit, and colorama.reinit manage wrapping and restoring standard output streams

Dateien

  • PROMPT.md
  • csx.json
  • pyproject.toml
  • requirements.txt
  • spec.json
  • test/contract.py
  • uv.lock

Quellartefakt herunterladen (tar.gz)

Ursprungs-Seeder

anonym