Crates.io | osuparse |
lib.rs | osuparse |
version | 2.0.1 |
source | src |
created_at | 2018-11-21 03:05:23.666999 |
updated_at | 2019-01-25 09:37:59.261318 |
description | Crate for parsing osu! beatmaps. |
homepage | |
repository | https://github.com/eltrufas/osuparse |
max_upload_size | |
id | 97877 |
size | 215,111 |
osuparse is a Rust crate for parsing osu! .osu beatmap files. Usage is as simple as:
let mut file = File::open("map.osu").unwrap();
let mut contents = String::new();
file.read_to_string(&mut contents).unwrap();
parse_beatmap(contents.as_str()).unwrap();
Documentation for this crate can be found here
osuparse fully supports the osu! beatmap file specification, with the important exception of the Events section, which is pending implmentation.
This repository includes python bindings. You can install a prebuilt package from PyPi:
$ pip install osuparse
You can also build and install from source:
$ cd py_osuparse
$ python setup.py install
Usage is as follows:
import osuparse
map = osuparse.parse_beatmap('beatmap.osu')
This crate is licensed under terms of the GPL-3.0 license, as published by the Free Software Foundation. Code documentation comments are partially sourced from the osu!wiki, which is licensed under terms of the CC-BY-NC 4.0 license.