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 :)
Metadata
Release files for OsuPyParser 1.0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| OsuPyParser-1.0.7.tar.gz | 9.1 kB | Details |
Release files / OsuPyParser-1.0.7.tar.gz
| Download URL | OsuPyParser-1.0.7.tar.gz |
|---|---|
| Size | 9.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
67f530c31dd5c288c8fff8f583c899c673536681f8cc3699d0afc5e4d8c2b1ff
|
|
BLAKE2b-256 checksum How to use checksums |
7b6b7f567c2acd1f2028603353da40ad7411bb47754994552d3f0c4cfa6703f9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|