tetrascience protocol virtual machine
compiler
Example usage for python 3.10+
from ts_protocol_virtual_machine import compiler
from ts_protocol_virtual_machine.result import Ok, Err
INPUT = """
protocolSchema: v3
steps: []
"""
match compiler.yaml.to.protocol_v2(INPUT):
case Ok(program, warnings):
print("SUCCESS", program, warnings)
case Err(errors, warnings):
print("ERROR", errors, warnings)
Example usage for python 3.9:
from ts_protocol_virtual_machine import compiler
INPUT = """
protocolSchema: v3
steps: []
"""
compiler.yaml.to.pvm(INPUT).match(
lambda program, warnings: print("SUCCESS", program, warnings),
lambda errors, warnings: print("ERROR", errors, warnings),
)
Metadata
Release files for ts-protocol-virtual-machine 1.9.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ts_protocol_virtual_machine-1.9.1.tar.gz | 161.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ts_protocol_virtual_machine-1.9.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 325.0 kB
Release files / ts_protocol_virtual_machine-1.9.1.tar.gz
| Download URL | ts_protocol_virtual_machine-1.9.1.tar.gz |
|---|---|
| Size | 161.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cc84bc31a8a109b381ad2162153a3536362425c331a688af8337e28eca9270ec
|
|
BLAKE2b-256 checksum How to use checksums |
49655ee218b4421c332f44703c64e5172ead62898ac0970cd0a96b3a3a24bb58
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Release files / ts_protocol_virtual_machine-1.9.1-py3-none-any.whl
| Download URL | ts_protocol_virtual_machine-1.9.1-py3-none-any.whl |
|---|---|
| Size | 163.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
76f1b4087dfd90b4e958b3776ae4fa2022bdede18ec471dfbfe84b12bd69fbff
|
|
BLAKE2b-256 checksum How to use checksums |
8149e8f3d28e311185e3348a1f31c860f68039ecca73096a8435d63b88d8a9dc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|