Little python library to read the different .db-files from osu
- Python 3.5+
There are three Classes. Each of them is designed to read from a different database:
- CollectionsDbReader - Read collections from collection.db.
- OsuDbReader - Read Beatmaps from osu!.db.
- ScoreDbReader - Read Scores from scores.db.
By default each reader looks up the default osu! folder-for your OS, meaning that you don't have to provide a path to the databasefile, unless you have a custom installation folder. The readers follow the wiki specifications for .db-files.
Detailed version: osu wiki
- Version
- Number of collections
- List of collections
- read_collection - reads one collection. The collection will be returned as well as added to the list of collections
- read_all_collections - reads the rest of the collections and returns the list of collections
Detailed version: osu wiki
- Version
- Folder count
- Account unlocked
- Date the account will be unlocked
- Player name
- Number of beatmaps
- List of beatmaps
- read_beatmap - reads one beatmap. The beatmap will be returned as well as added to the list of beatmaps
- read_all_beatmaps - reads the rest of the beatmaps and returns the list of beatmaps
Detailed version: osu wiki
- Version
- Number of beatmaps with scores
- List of beatmaps with scores
- read_score - reads one beatmap and it's associated scores. The beatmap will be returned as well as added to the list of beatmaps
- read_all_scores - reads the rest of the beatmaps and returns the list of beatmaps
Each reader should be treated as a resource and be closed after usage.
Example using with:
with ScoreDbReader() as db:
# Do reading here
db.read_all_beatmaps()
# Do work here
for beatmap in db.beatmaps:
...
A copy of the license can be found here