Skip to main content

tetrascience protocol compiler

Project description

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

Project details


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.8.4.tar.gz (161.6 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.8.4-py3-none-any.whl (163.9 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for ts_protocol_virtual_machine-1.8.4.tar.gz
Algorithm Hash digest
SHA256 82a55d4a9dafab51808cd13a5ffe179e7d0b42095045e1ab73155fcdc1dc31b5
MD5 05e1b463ff2fa4f2e1eac12e7d011b70
BLAKE2b-256 f06658fee9ab3e10b94dfc7e7be3697961ed681c74992fa758b9be5bc0f02dbf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ts_protocol_virtual_machine-1.8.4-py3-none-any.whl
Algorithm Hash digest
SHA256 59ec580ba0f7e45aa665e2db2ef5c11c155aaf20ba662242ddb0346f156671f9
MD5 d71c8abe0ceb3a0671c023564e76f562
BLAKE2b-256 7e03b2e48790ba40ac9ae3b0fe1b3616b1612680189e068506457c5f6312b614

See more details on using hashes here.

Supported by

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