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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
09efb72cc9ce86e40b40c86373395c0c50a9e9c69fea42502240ed2364ba6fc6
|
|
| MD5 |
5320131f1e627e1a3c939e54b75b1e70
|
|
| BLAKE2b-256 |
573a7ae42b5c5d5f7c66344a3e5cfaf08f63049f1ebdfbaaa314939fd7f558ef
|
Provenance
The following attestation bundles were made for worldcut-0.1.1.tar.gz:
Publisher:
release-python.yml on Jason-Doyle/WorldCut
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
worldcut-0.1.1.tar.gz -
Subject digest:
09efb72cc9ce86e40b40c86373395c0c50a9e9c69fea42502240ed2364ba6fc6 - Sigstore transparency entry: 2713911037
- Sigstore integration time:
-
Permalink:
Jason-Doyle/WorldCut@6851c9466625d91340d7c1a28a1cf800c867605a -
Branch / Tag:
refs/tags/ports/python/v0.1.1 - Owner: https://github.com/Jason-Doyle
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-python.yml@6851c9466625d91340d7c1a28a1cf800c867605a -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
71d6d64b75a2a40b4e60bf202da90696a05b606b01dafe04199df1e50c255a84
|
|
| MD5 |
2ef490581c7eee7479e10e3c80dae4b7
|
|
| BLAKE2b-256 |
5bec12cb9313b01eae95ed58d837e39685b1333b23a965f5363df36ab9c91284
|
Provenance
The following attestation bundles were made for worldcut-0.1.1-py3-none-any.whl:
Publisher:
release-python.yml on Jason-Doyle/WorldCut
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
worldcut-0.1.1-py3-none-any.whl -
Subject digest:
71d6d64b75a2a40b4e60bf202da90696a05b606b01dafe04199df1e50c255a84 - Sigstore transparency entry: 2713911073
- Sigstore integration time:
-
Permalink:
Jason-Doyle/WorldCut@6851c9466625d91340d7c1a28a1cf800c867605a -
Branch / Tag:
refs/tags/ports/python/v0.1.1 - Owner: https://github.com/Jason-Doyle
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-python.yml@6851c9466625d91340d7c1a28a1cf800c867605a -
Trigger Event:
push
-
Statement type: