Python wrapper for omppc
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Giuseppe Guerra ce532acd23 Properly import lua modules 2 years ago
tweaks @ 53dfbd988d Update submodule 2 years ago
.gitignore omppc python wrapper 3 years ago
.gitmodules tweaks.lua submodule added. 3 years ago
Beatmap.lua Remove useless print 3 years ago
LICENSE Initial commit 3 years ago
Mods.lua Removed logging print 2 years ago
Note.lua Code added. 3 years ago
PerformanceCalculator.lua Fix. 3 years ago
PlayData.lua Fix. 3 years ago Update submodule 3 years ago Properly import lua modules 2 years ago
requirements.txt Add requirements.txt 2 years ago

Python wrapper for omppc

This is a Python 3 wrapper that lets you use omppc as a Python class. omppc is a osu!mania performance points (and starrate) calculator made by semyon422 This is used in LETS as mania pp calculator.


  • lua 5.2 (required by lupa)
  • lua 5.2 dev (required by lupa)
  • lupa


>>> import omppc
>>> calc = omppc.Calculator("beatmap.osu", score=1000000, mods=0, accuracy=100)
>>> calc.calculate_pp()
(103.0620415888816, 71.45130296276501, 27.319529885105837)
>>> calc.calculate_stars()