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 4.1.0
Filename, size File type Python version Upload date Hashes
Filename, size oppai-4.1.0-cp27-cp27m-win32.whl (33.4 kB) File type Wheel Python version cp27 Upload date Hashes View
Filename, size oppai-4.1.0-cp27-cp27m-win_amd64.whl (40.7 kB) File type Wheel Python version cp27 Upload date Hashes View
Filename, size oppai-4.1.0-cp34-cp34m-win32.whl (33.4 kB) File type Wheel Python version cp34 Upload date Hashes View
Filename, size oppai-4.1.0-cp34-cp34m-win_amd64.whl (40.8 kB) File type Wheel Python version cp34 Upload date Hashes View
Filename, size oppai-4.1.0-cp35-cp35m-manylinux1_i686.whl (145.2 kB) File type Wheel Python version cp35 Upload date Hashes View
Filename, size oppai-4.1.0-cp35-cp35m-manylinux1_x86_64.whl (159.9 kB) File type Wheel Python version cp35 Upload date Hashes View
Filename, size oppai-4.1.0-cp35-cp35m-manylinux2010_i686.whl (145.2 kB) File type Wheel Python version cp35 Upload date Hashes View
Filename, size oppai-4.1.0-cp35-cp35m-manylinux2010_x86_64.whl (159.9 kB) File type Wheel Python version cp35 Upload date Hashes View
Filename, size oppai-4.1.0-cp35-cp35m-win32.whl (35.0 kB) File type Wheel Python version cp35 Upload date Hashes View
Filename, size oppai-4.1.0-cp35-cp35m-win_amd64.whl (42.7 kB) File type Wheel Python version cp35 Upload date Hashes View
Filename, size oppai-4.1.0-cp36-cp36m-manylinux1_i686.whl (145.5 kB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size oppai-4.1.0-cp36-cp36m-manylinux1_x86_64.whl (160.1 kB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size oppai-4.1.0-cp36-cp36m-manylinux2010_i686.whl (145.5 kB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size oppai-4.1.0-cp36-cp36m-manylinux2010_x86_64.whl (160.2 kB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size oppai-4.1.0-cp36-cp36m-win32.whl (35.0 kB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size oppai-4.1.0-cp36-cp36m-win_amd64.whl (42.7 kB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size oppai-4.1.0-cp37-cp37m-manylinux1_i686.whl (146.3 kB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size oppai-4.1.0-cp37-cp37m-manylinux1_x86_64.whl (161.3 kB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size oppai-4.1.0-cp37-cp37m-manylinux2010_i686.whl (146.3 kB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size oppai-4.1.0-cp37-cp37m-manylinux2010_x86_64.whl (161.3 kB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size oppai-4.1.0-cp37-cp37m-win32.whl (35.0 kB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size oppai-4.1.0-cp37-cp37m-win_amd64.whl (42.7 kB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size oppai-4.1.0-cp38-cp38-manylinux1_i686.whl (147.7 kB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size oppai-4.1.0-cp38-cp38-manylinux1_x86_64.whl (162.6 kB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size oppai-4.1.0-cp38-cp38-manylinux2010_i686.whl (147.7 kB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size oppai-4.1.0-cp38-cp38-manylinux2010_x86_64.whl (162.6 kB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size oppai-4.1.0-cp39-cp39-manylinux1_i686.whl (147.1 kB) File type Wheel Python version cp39 Upload date Hashes View
Filename, size oppai-4.1.0-cp39-cp39-manylinux1_x86_64.whl (162.4 kB) File type Wheel Python version cp39 Upload date Hashes View
Filename, size oppai-4.1.0-cp39-cp39-manylinux2010_i686.whl (147.1 kB) File type Wheel Python version cp39 Upload date Hashes View
Filename, size oppai-4.1.0-cp39-cp39-manylinux2010_x86_64.whl (162.4 kB) File type Wheel Python version cp39 Upload date Hashes View
Filename, size oppai-4.1.0.tar.gz (55.5 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page