A powerful package for parsing .osu and .osr extention files
Project description
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
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
OsuPyParser-1.0.7.tar.gz
(9.1 kB
view details)
File details
Details for the file OsuPyParser-1.0.7.tar.gz
.
File metadata
- Download URL: OsuPyParser-1.0.7.tar.gz
- Upload date:
- Size: 9.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67f530c31dd5c288c8fff8f583c899c673536681f8cc3699d0afc5e4d8c2b1ff |
|
MD5 | 6acbc32558480215297cc227cfc58696 |
|
BLAKE2b-256 | 7b6b7f567c2acd1f2028603353da40ad7411bb47754994552d3f0c4cfa6703f9 |