A SUS (Sliding Universal Score) parser and generator.
Project description
sus-io
A SUS (Sliding Universal Score) parser and generator.
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(...)
import sus
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)
Todo
- json -> dict of objects -> sus
- Acknowledgement
- Add example I/O
- Contribution Guide
- High Speed
- etc.
License
MIT © 2021 mkpoli
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
sus-io-0.1.1.tar.gz
(5.1 kB
view hashes)
Built Distribution
sus_io-0.1.1-py3-none-any.whl
(6.8 kB
view hashes)