Skip to main content

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),
)

Download files

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

Source Distribution

ts_protocol_virtual_machine-1.9.1.tar.gz (161.4 kB view details)

Uploaded Source

Built Distribution

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

ts_protocol_virtual_machine-1.9.1-py3-none-any.whl (163.7 kB view details)

Uploaded Python 3

File details

Details for the file ts_protocol_virtual_machine-1.9.1.tar.gz.

File metadata

File hashes

Hashes for ts_protocol_virtual_machine-1.9.1.tar.gz
Algorithm Hash digest
SHA256 cc84bc31a8a109b381ad2162153a3536362425c331a688af8337e28eca9270ec
MD5 fea24d72888d2cc138a0a5c67d6e6762
BLAKE2b-256 49655ee218b4421c332f44703c64e5172ead62898ac0970cd0a96b3a3a24bb58

See more details on using hashes here.

File details

Details for the file ts_protocol_virtual_machine-1.9.1-py3-none-any.whl.

File metadata

File hashes

Hashes for ts_protocol_virtual_machine-1.9.1-py3-none-any.whl
Algorithm Hash digest
SHA256 76f1b4087dfd90b4e958b3776ae4fa2022bdede18ec471dfbfe84b12bd69fbff
MD5 48d629416c75d010c4d1525380aa90e5
BLAKE2b-256 8149e8f3d28e311185e3348a1f31c860f68039ecca73096a8435d63b88d8a9dc

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.9.1 This release

2 files

1.9.0

2 files

1.8.4

2 files

1.8.3

2 files

1.8.2

2 files

1.8.1

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page