Skip to main content

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:

  1. Reading .SSPM files
  2. Modifying SSPM data
  3. Writing .SSPM files

Extras:

  1. Difficulty Calculation (Not implemented in V2.0)
  2. 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:

  1. cover_bytes the byteform of the image if cover was found
  2. audio_bytes the byteform of the audio in .mp3 form if audio was found
  3. header: {"Signature": ..., "Version": ...}
  4. hash: a SHA-1 hash of the markers (notes) in the map
  5. map_id: A unique combination using the mappers and map name*
  6. mappers: a list containing each mapper.
  7. map_name: The name given to the map.
  8. song_name: The original name of the audio before imported. Usually left as artist name - song name
  9. custom_values: NOT IMPLEMENTED | will return a dictionary of found custom blocks.
  10. quantum: Determins if the level contains ANY float value notes.
  11. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pysspm-rhythia-2.0.0.tar.gz (26.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pysspm_rhythia-2.0.0-py3-none-any.whl (25.8 kB view details)

Uploaded Python 3

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

Hashes for pysspm-rhythia-2.0.0.tar.gz
Algorithm Hash digest
SHA256 704dcf27acb5de360ed439b0112521c58ddcdc489ad1adc06e63cc130446cec8
MD5 fec5b0279e6ab1b9c8821e83e4b31e74
BLAKE2b-256 c3a1f6374d530c774df2aa330bec8da2ce07100bb6d95df72f4f93f5ff99122b

See more details on using hashes here.

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

Hashes for pysspm_rhythia-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3b80ff18b1753dc3f0b911d37e1001abf17d637b6d9b55b9109fc14766e89bf0
MD5 96dee8ca84994911cdbf8b45001bd8f8
BLAKE2b-256 6f583efda733095bffd7f7d10229915c3dff9f34d32bf283496d04f3e0133fa5

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