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.3.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.3-py3-none-any.whl (163.8 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for ts_protocol_virtual_machine-1.8.3.tar.gz
Algorithm Hash digest
SHA256 814348cb019cf80b6fb743c7811251b9aa25296edbc72870c304d504e52d9151
MD5 d3ff693bb6871f3863b2426c86960c29
BLAKE2b-256 e0fe4f96a1ba9f9c7c9930c9cf3b6477cf119e2009a6d25845900e1658f5bba5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ts_protocol_virtual_machine-1.8.3-py3-none-any.whl
Algorithm Hash digest
SHA256 eee189a2788014846e460e45fdc1ea67a0055eafa606126a59c66c42bdeb12f1
MD5 ff27ef21dfb49bee3f4b42fc7cacf075
BLAKE2b-256 10c7330e65910667f6fe1b1140675821b175f0dfa227898c5bcfada4bd38e7c6

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