5 releases (3 stable)
Uses old Rust 2015
2.0.1 | Jan 25, 2019 |
---|---|
1.0.0 | Jan 22, 2019 |
0.1.1 | Nov 22, 2018 |
0.1.0 | Nov 21, 2018 |
#4 in #beatmap
59KB
792 lines
osuparse - An osu! beatmap parser crate
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.
Python bindings
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')
License:
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.