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.2.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.8.2-py3-none-any.whl (163.7 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for ts_protocol_virtual_machine-1.8.2.tar.gz
Algorithm Hash digest
SHA256 072c8c9198538fde0a0207a962724bb6f9aa11e76253167ebc1c1816b00e9eae
MD5 111267041e4fd1a03f6d0d1c7960230d
BLAKE2b-256 bc26d2aaac1f51e263980c405648bc5aa6c419639e1859505b0e60acf8bf8585

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ts_protocol_virtual_machine-1.8.2-py3-none-any.whl
Algorithm Hash digest
SHA256 313911ff56119eceaa1e7d54a0f6262fed0912cd98ac352e0078f28660cce4d7
MD5 4238247dd20d91a404b1ca9da58fa7b6
BLAKE2b-256 983321ec6b7eb32975dbf890110efb2decfb410913337a89ed0f573c6464c4b7

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