Skip to content

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

License

Notifications You must be signed in to change notification settings

ZyMa-1/OsuFileParser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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