Skip to content

Latest commit

 

History

History
33 lines (25 loc) · 1.27 KB

README.md

File metadata and controls

33 lines (25 loc) · 1.27 KB

OsuFileParser

GitHub release

Python Version Licence MIT Test Status

Package for wrapping ".osu" file data into a python class.

Simple usage

from OsuFileParser import BeatmapFileParser, BeatmapData

input_file_path = "input_files/FELT - Day and Night (UndeadCapulet) [Terrace Ballad].osu"

beatmap_data = BeatmapData(BeatmapFileParser.parse_full_osu_file(input_file_path))
print("Beatmap data as a string:", str(beatmap_data))
print("Beatmap title unicode:", beatmap_data.metadata.title_unicode)
print("Beatmap cs:", beatmap_data.difficulty.cs)
print("Beatmap od:", beatmap_data.difficulty.od)
print("Beatmap hp:", beatmap_data.difficulty.hp)

See examples folder for more examples.

How to download

Add following dependency to your requirements.txt file:

git+https://github.com/ZyMa-1/OsuFileParser.git@latest