Skip to main content

A powerful package for parsing .osu and .osr extention files

Project description

PyPI version

OsuPyParser

A powerful package for parsing .osu and .osr (replay) extention files.

What's this?

OsuPyParser is my 2nd implementation of osu file and osr (replay) file parser.

It doesn't use any external packages so you don't need to install anything else!

Example

Parsing osu files is simple as never.

.osu file

from osupyparser import OsuFile

data = OsuFile("test.osu").parse_file()
info = data.__dict__
for d, e in info.items():
    print(f"{d}: {e}") # Prints all members of the class.

.osr file

from osupyparser import ReplayFile

data = ReplayFile.from_file("test.osr")
info = data.__dict__
# pure_lzma = ReplayFile.from_file("test.osr", pure_lzma= True) This will return only lzma content.
# data = ReplayFile.from_bytes(replay_files) you can also use pure bytes.
for d, e in info.items():
    print(f"{d}: {e}") # Prints members of class.

Contribution

If you spot any issue/bug, don't heaste to open issue/make pull request.

I'll try to review it in free time :)

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

OsuPyParser-1.0.7.tar.gz (9.1 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page