A Python library dedicated to reading, writing, and modifying the Rhythia SSPM (.sspm) file format
Project description
pysspm-rhythia
The official python library dedicated to reading, writing, and modifying the SSPM file format from the video game "Rhythia".
Note: This is V2 of
PYSSPM. This version is a complete rewrite of the original V1, with more "support" and type hinting
SSPM libray information
The main library includes these features:
- Reading .SSPM files
- Modifying SSPM data
- Writing .SSPM files
Extras:
- Difficulty Calculation (Not implemented in V2.0)
- Note Classification (Not implmented in V2.0)
How to install/use
To install the library, run:
pip install pysspm-rythia
to start using the library, create a python script and load up pysspm.
from pysspm_rhythia import read_sspm
# Example of loading a SSPMfile
sspm = read_sspm("*.sspm")
# Example of turning it into a roblox sound space file
with open("output.txt", "w") as f:
f.write(sspm.NOTES2TEXT())
Functionality does not end there. When reading files, you have full access to all the metadata, and other information stored in the variables.
Some common variables you will find are:
cover_bytesthe byteform of the image if cover was foundaudio_bytesthe byteform of the audio in.mp3form if audio was foundheader: {"Signature": ..., "Version": ...}hash: a SHA-1 hash of the markers (notes) in the mapmap_id: A unique combination using the mappers and map name*mappers: a list containing each mapper.map_name: The name given to the map.song_name: The original name of the audio before imported. Usually left as artist name - song namecustom_values: NOT IMPLEMENTED | will return a dictionary of found custom blocks.quantum: Determins if the level contains ANY float value notes.notes: A list of tuples containing all notes. | Example of what it Notes is:[(x, y, ms), (x, y, ms), (x, y, ms) . . .]
from pysspm_rhythia import read_sspm, write_sspm
# Example of loading a SSPMfile
sspm = read_sspm("*.sspm")
# changing the decal to be a different image
if sspm.has_cover():
sspm.add_cover() # takes location OR bytes
with open("cover.png", 'rb') as f: # alternate method
sspm.cover_bytes = f.read() # reading the BYTES of the image
# Finally save the sspm file with the newly configured settings
sspm.write('sspmFile.sspm')
# alternatively:
write_sspm(sspm, 'sspmFile.sspm') # takes a pre-configured sspm object
you can modify metadata information within sspm with ease
from pysspm_rhythia import read_sspm, write_sspm
sspm = read_sspm("*.sspm")
sspm.mappers.extend('DigitalDemon') # adding another mapper to the mapper list
sspm.write('SSPMFile.sspm')
Advanced guide (W.I.P)
This shows the more advanced things you can do by giving examples of custom written code.
# Not implemented yet...
# Support for custom blocks and AI tagging coming soon..
More advanced documentation will be added in the near future...
Function Documentation
A in-depth list of things you can do with this library
WIP FOR V2
Roadmap (May get completed)
TODO LIST FOR V2: (In order of priority)
- Refactor codebase (~40% done) ⛔
- Add typing support for library ✅
- add proper documentation on github ✅
- add proper documentation in code ✅
- add loading of sspmV2 ✅
- add support for creating sspmV2 ✅
- add support for sspmv1 loading 🔴 (Use Pre-V2.0.0 release to use this for now)
- add custom block support in loading
- Drop numpy dependency
- Implement Extras difficulty calculation (Obsiids method, rhythia-online starCalculation)
- Support for Pheonix/Nova Filetype (When I get my hands on the data structure)
Made with 💖 by DigitalDemon (David Jed)
Documentation last updated:
2025-07-22|V2.0.0
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pysspm-rhythia-2.0.0.tar.gz.
File metadata
- Download URL: pysspm-rhythia-2.0.0.tar.gz
- Upload date:
- Size: 26.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
704dcf27acb5de360ed439b0112521c58ddcdc489ad1adc06e63cc130446cec8
|
|
| MD5 |
fec5b0279e6ab1b9c8821e83e4b31e74
|
|
| BLAKE2b-256 |
c3a1f6374d530c774df2aa330bec8da2ce07100bb6d95df72f4f93f5ff99122b
|
File details
Details for the file pysspm_rhythia-2.0.0-py3-none-any.whl.
File metadata
- Download URL: pysspm_rhythia-2.0.0-py3-none-any.whl
- Upload date:
- Size: 25.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3b80ff18b1753dc3f0b911d37e1001abf17d637b6d9b55b9109fc14766e89bf0
|
|
| MD5 |
96dee8ca84994911cdbf8b45001bd8f8
|
|
| BLAKE2b-256 |
6f583efda733095bffd7f7d10229915c3dff9f34d32bf283496d04f3e0133fa5
|