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 after the 0.1.1 registry release is live:

python -m pip install worldcut==0.1.1

Until then, or 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/v0.1.1#subdirectory=ports/python"

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-0.1.1.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-0.1.1-py3-none-any.whl (18.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: worldcut-0.1.1.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-0.1.1.tar.gz
Algorithm Hash digest
SHA256 09efb72cc9ce86e40b40c86373395c0c50a9e9c69fea42502240ed2364ba6fc6
MD5 5320131f1e627e1a3c939e54b75b1e70
BLAKE2b-256 573a7ae42b5c5d5f7c66344a3e5cfaf08f63049f1ebdfbaaa314939fd7f558ef

See more details on using hashes here.

Provenance

The following attestation bundles were made for worldcut-0.1.1.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-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: worldcut-0.1.1-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-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 71d6d64b75a2a40b4e60bf202da90696a05b606b01dafe04199df1e50c255a84
MD5 2ef490581c7eee7479e10e3c80dae4b7
BLAKE2b-256 5bec12cb9313b01eae95ed58d837e39685b1333b23a965f5363df36ab9c91284

See more details on using hashes here.

Provenance

The following attestation bundles were made for worldcut-0.1.1-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

0.1.1 This release

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