Skip to main content

WorldCut Python

Independent Python implementation of WorldCut protocol 0.1, engine 0.1.2, and canonicalization worldcut-json-v1. Python 3.11 or newer is required.

Install

Install from PyPI:

python -m pip install worldcut==1.0.0

When a source install is preferred, use the protected tag:

python -m pip install "worldcut @ git+https://github.com/Jason-Doyle/WorldCut.git@ports/python/v1.0.0#subdirectory=ports/python"

Version 1.0.0 is the stable Python API line. Protocol 0.1 and engine 0.1.2 remain separate wire-format identifiers.

Library

from pathlib import Path

from worldcut import parse_input, verify

parsed = parse_input(Path("verification.json").read_bytes())
result = verify(parsed)
print(result["verdict"])
print(result["verificationRecordDigest"])

ParsedInput is an immutable validated snapshot. Every verification returns a fresh result, so mutating one result cannot affect later verification.

CLI

worldcut-py verification.json
worldcut-py --require-satisfied verification.json

The second form exits with status 2 unless the verdict is CONTRACT_SATISFIED.

Validate

python -m pip install -e ".[dev]"
ruff format --check .
ruff check .
mypy src
pytest
python -m build
twine check dist/*

The source distribution includes the complete mirrored conformance corpus and can run its tests without files from the parent repository. This port includes the verifier and CLI only; integrations are intentionally not included yet.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

worldcut-1.0.0.tar.gz (31.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

worldcut-1.0.0-py3-none-any.whl (18.9 kB view details)

Uploaded Python 3

File details

Details for the file worldcut-1.0.0.tar.gz.

File metadata

  • Download URL: worldcut-1.0.0.tar.gz
  • Upload date:
  • Size: 31.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for worldcut-1.0.0.tar.gz
Algorithm Hash digest
SHA256 ddad7b8255ab5a4c9e932e363b3d9c47b3d6b93175ddda1092c9d37533f70ac1
MD5 edfe064378340db7698d68234ca304de
BLAKE2b-256 d031e6adb40c609bcd35608b5ba27747bb1df17ef94bf8f2172541ce6ad77ce1

See more details on using hashes here.

Provenance

The following attestation bundles were made for worldcut-1.0.0.tar.gz:

Publisher: release-python.yml on Jason-Doyle/WorldCut

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file worldcut-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: worldcut-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 18.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for worldcut-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a9e2d0e6cb5ab214484018a3feb2a23c1d96bb908d6791dea0aeb7165f287b0d
MD5 7d91c2b94194caefe3ee6d7033f9e975
BLAKE2b-256 46c2c46f398f91853cbe5aa19993185f88f86fd785bc8298d91e4b951eded3ff

See more details on using hashes here.

Provenance

The following attestation bundles were made for worldcut-1.0.0-py3-none-any.whl:

Publisher: release-python.yml on Jason-Doyle/WorldCut

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 files

0.1.1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page