Skip to main content

License Version Downloads PRs and issues

SUS compiler

This repository contains the compiler and language server for the SUS description language. Install it with:

pip3 install susc

What is SpeedAPI?

It's a platform-agnostic API and serialization tool specifically geared towards high-throughput realtime applications. You can read more about its features here

Usage

Help

$ susc --help
# OR
$ python3 -m susc --help

Compiler

  • Compile file(s): susc source1.sus source2.sus
  • Compile file, override output dir: susc -o output source.sus
  • Compile file, override output language: susc -l ts source.sus

Language server

  • Start language server: susc -s
  • Start language server in stdio mode: susc -si

Misc

  • Print file with syntax highlighting: susc -p source.sus
  • Explain a diagnostic code: susc -x 0010

Programmatic usage

from susc import File

file = File()
# load file:
file.load_from_file("/path/to/file.sus")
# or
file.load_from_file(open("/path/to/file.sus"))
# or load text:
file.load_from_text("compound Test { a: Str; b: Str; }")

things, diagnostics = file.parse()
print(things)
print(diagnostics)

language = "ts"
file.write_output(language, "/path/to/output/dir")

Metadata

Release files for susc 1.5.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for susc 1.5.5
File Size Uploaded Provenance Actions
susc-1.5.5.tar.gz 163.6 kB Without provenance Details for susc-1.5.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for susc 1.5.5
File Interpreter ABI Platform Actions
susc-1.5.5-py3-none-any.whl Python 3 none any Details for susc-1.5.5-py3-none-any.whl

Total release size: 328.6 kB

Release files / susc-1.5.5.tar.gz

Download URL susc-1.5.5.tar.gz
Size 163.6 kB
Tags Source
SHA-256 checksum
How to use checksums
d2623d4222424e2cdd0249ade3db849b7a778c4a56555f68e6a2d63034a460fa
BLAKE2b-256 checksum
How to use checksums
40c128b19c7f6859e73b0ffec5d7a3ddffd8ad941bbc8f0e1cf5d5be4c001793
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release files / susc-1.5.5-py3-none-any.whl

Download URL susc-1.5.5-py3-none-any.whl
Size 165.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e9c894372f16a9a14b0f82aba9d8be8ed2c83e940574ad2806f28ac4c6bf0de0
BLAKE2b-256 checksum
How to use checksums
d7ee49a51be9a74056282e00ebdd47fc53bdb93a6a2235d76d3ba9f6f5b9feab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Security for susc 1.5.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.5.5 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page