Skip to main content

sus-io

A SUS (Sliding Universal Score) parser and generator.

Project Status: Active – The project has reached a stable, usable state and is being actively developed.

Functionality

  • Parse sus into tick-based objects.
  • Allow json output.

Usage

sus.loads(data: str)

import sus

print(sus.loads("#00002: 4\n#BPM01: 120\n#00008: 01"))

sus.load(fp: TextIO)

import sus

with open("score.sus", "r") as f:
    score = sus.load(f)
    print(score)

Score(...).to_json(...), Score.from_json(...)

import sus
from sus import Score

with open("score.sus", "r") as fi, open("score.json", "w") as fo:
    score = sus.load(fi)
    json = score.to_json(indent=4)
    fo.write(json)

    print(Score.from_json(json))

sus.dump(score: Score), sus.dumps(score: Score)

import sus

with open("score.sus", 'r') as fi, open(sus_file.with_suffix('.dumped.sus'), 'w') as fd:
    score = sus.load(fi)
    print(sus.dumps(score))
    sus.dump(score, fd, comment='Custom comment.', space=False)

Todo

  • Acknowledgement
  • Add example I/O
  • Contribution Guide
  • High Speed
  • etc.

Javascript

License

MIT © 2021 mkpoli

Metadata

Release files for sus-io 0.2.1

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

Source distribution (sdist)

Source distribution for sus-io 0.2.1
File Size Uploaded Provenance Actions
sus-io-0.2.1.tar.gz 7.5 kB Without provenance Details for sus-io-0.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sus-io 0.2.1
File Interpreter ABI Platform Actions
sus_io-0.2.1-py3-none-any.whl Python 3 none any Details for sus_io-0.2.1-py3-none-any.whl

Total release size: 17.4 kB

Release files / sus-io-0.2.1.tar.gz

Download URL sus-io-0.2.1.tar.gz
Size 7.5 kB
Tags Source
SHA-256 checksum
How to use checksums
302f9e39a4e700efd0a44c7be1667bf399c858564e364a5fa27fa3ca948e39fc
BLAKE2b-256 checksum
How to use checksums
038b54dbc8f3af57dfeac87a86a2ca8926a85b9f5c4e54d2252e509084869a35
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.12 CPython/3.9.7 Windows/10

Release files / sus_io-0.2.1-py3-none-any.whl

Download URL sus_io-0.2.1-py3-none-any.whl
Size 9.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cb7f8cb5aab4b44c08b041f212600fb60fb30087eec538edc6d54c94bac504a6
BLAKE2b-256 checksum
How to use checksums
de9c741562acda5fd4ca2b9e0426f221fa30ea4bad1a3aa86e10d15b7642e265
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.12 CPython/3.9.7 Windows/10

Security for sus-io 0.2.1

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.

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