Skip to main content

osu! pp and difficulty calculator, C bindings

Project description

osu! pp and difficulty calculator. automatically generated C bindings for https://github.com/Francesco149/oppai-ng

usage

pip install oppai
#!/usr/bin/env python

import sys
from oppai import *

ez = ezpp_new()
ezpp(ez, sys.argv[1])
print("%g pp" % ezpp_pp(ez))
ezpp_free(ez)
./example.py /path/to/file.osu
python -c 'help("oppai")'

for a list of functions, or just read the top of oppai.c for better doc

limitations

for some reason, python3 doesn’t provide a persisting pointer to strings you pass to c code even if you aren’t doing anything with them, so if you want to reuse the handle at all you have to use ezpp_dup and ezpp_data_dup, which create a copy of the strings you pass in. this is inefficient so it’s recommended to use autocalc mode and only call ezpp_dup or ezpp_data_dup when you’re actually changing map

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for oppai, version 3.2.3
Filename, size File type Python version Upload date Hashes
Filename, size oppai-3.2.3-cp27-cp27m-manylinux1_i686.whl (139.0 kB) File type Wheel Python version cp27 Upload date Hashes View hashes
Filename, size oppai-3.2.3-cp27-cp27m-manylinux1_x86_64.whl (146.9 kB) File type Wheel Python version cp27 Upload date Hashes View hashes
Filename, size oppai-3.2.3-cp27-cp27mu-manylinux1_i686.whl (139.0 kB) File type Wheel Python version cp27 Upload date Hashes View hashes
Filename, size oppai-3.2.3-cp27-cp27mu-manylinux1_x86_64.whl (146.9 kB) File type Wheel Python version cp27 Upload date Hashes View hashes
Filename, size oppai-3.2.3-cp27-cp27m-win32.whl (32.7 kB) File type Wheel Python version cp27 Upload date Hashes View hashes
Filename, size oppai-3.2.3-cp27-cp27m-win_amd64.whl (39.8 kB) File type Wheel Python version cp27 Upload date Hashes View hashes
Filename, size oppai-3.2.3-cp34-cp34m-manylinux1_i686.whl (140.1 kB) File type Wheel Python version cp34 Upload date Hashes View hashes
Filename, size oppai-3.2.3-cp34-cp34m-manylinux1_x86_64.whl (147.9 kB) File type Wheel Python version cp34 Upload date Hashes View hashes
Filename, size oppai-3.2.3-cp34-cp34m-win32.whl (32.7 kB) File type Wheel Python version cp34 Upload date Hashes View hashes
Filename, size oppai-3.2.3-cp34-cp34m-win_amd64.whl (40.0 kB) File type Wheel Python version cp34 Upload date Hashes View hashes
Filename, size oppai-3.2.3-cp35-cp35m-manylinux1_i686.whl (140.3 kB) File type Wheel Python version cp35 Upload date Hashes View hashes
Filename, size oppai-3.2.3-cp35-cp35m-manylinux1_x86_64.whl (148.2 kB) File type Wheel Python version cp35 Upload date Hashes View hashes
Filename, size oppai-3.2.3-cp35-cp35m-win32.whl (34.2 kB) File type Wheel Python version cp35 Upload date Hashes View hashes
Filename, size oppai-3.2.3-cp35-cp35m-win_amd64.whl (41.7 kB) File type Wheel Python version cp35 Upload date Hashes View hashes
Filename, size oppai-3.2.3-cp36-cp36m-manylinux1_i686.whl (140.3 kB) File type Wheel Python version cp36 Upload date Hashes View hashes
Filename, size oppai-3.2.3-cp36-cp36m-manylinux1_x86_64.whl (148.2 kB) File type Wheel Python version cp36 Upload date Hashes View hashes
Filename, size oppai-3.2.3-cp36-cp36m-win32.whl (34.2 kB) File type Wheel Python version cp36 Upload date Hashes View hashes
Filename, size oppai-3.2.3-cp36-cp36m-win_amd64.whl (41.7 kB) File type Wheel Python version cp36 Upload date Hashes View hashes
Filename, size oppai-3.2.3-cp37-cp37m-manylinux1_i686.whl (140.3 kB) File type Wheel Python version cp37 Upload date Hashes View hashes
Filename, size oppai-3.2.3-cp37-cp37m-manylinux1_x86_64.whl (148.2 kB) File type Wheel Python version cp37 Upload date Hashes View hashes
Filename, size oppai-3.2.3-cp37-cp37m-win32.whl (34.2 kB) File type Wheel Python version cp37 Upload date Hashes View hashes
Filename, size oppai-3.2.3-cp37-cp37m-win_amd64.whl (41.7 kB) File type Wheel Python version cp37 Upload date Hashes View hashes
Filename, size oppai-3.2.3.tar.gz (56.2 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page