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.

Source Distribution

oppai-4.1.0.tar.gz (55.5 kB view hashes)

Uploaded source

Built Distributions

oppai-4.1.0-cp39-cp39-manylinux2010_i686.whl (147.1 kB view hashes)

Uploaded cp39

oppai-4.1.0-cp39-cp39-manylinux1_x86_64.whl (162.4 kB view hashes)

Uploaded cp39

oppai-4.1.0-cp39-cp39-manylinux1_i686.whl (147.1 kB view hashes)

Uploaded cp39

oppai-4.1.0-cp38-cp38-manylinux2010_i686.whl (147.7 kB view hashes)

Uploaded cp38

oppai-4.1.0-cp38-cp38-manylinux1_x86_64.whl (162.6 kB view hashes)

Uploaded cp38

oppai-4.1.0-cp38-cp38-manylinux1_i686.whl (147.7 kB view hashes)

Uploaded cp38

oppai-4.1.0-cp37-cp37m-win_amd64.whl (42.7 kB view hashes)

Uploaded cp37

oppai-4.1.0-cp37-cp37m-win32.whl (35.0 kB view hashes)

Uploaded cp37

oppai-4.1.0-cp37-cp37m-manylinux1_x86_64.whl (161.3 kB view hashes)

Uploaded cp37

oppai-4.1.0-cp37-cp37m-manylinux1_i686.whl (146.3 kB view hashes)

Uploaded cp37

oppai-4.1.0-cp36-cp36m-win_amd64.whl (42.7 kB view hashes)

Uploaded cp36

oppai-4.1.0-cp36-cp36m-win32.whl (35.0 kB view hashes)

Uploaded cp36

oppai-4.1.0-cp36-cp36m-manylinux1_x86_64.whl (160.1 kB view hashes)

Uploaded cp36

oppai-4.1.0-cp36-cp36m-manylinux1_i686.whl (145.5 kB view hashes)

Uploaded cp36

oppai-4.1.0-cp35-cp35m-win_amd64.whl (42.7 kB view hashes)

Uploaded cp35

oppai-4.1.0-cp35-cp35m-win32.whl (35.0 kB view hashes)

Uploaded cp35

oppai-4.1.0-cp35-cp35m-manylinux1_x86_64.whl (159.9 kB view hashes)

Uploaded cp35

oppai-4.1.0-cp35-cp35m-manylinux1_i686.whl (145.2 kB view hashes)

Uploaded cp35

oppai-4.1.0-cp34-cp34m-win_amd64.whl (40.8 kB view hashes)

Uploaded cp34

oppai-4.1.0-cp34-cp34m-win32.whl (33.4 kB view hashes)

Uploaded cp34

oppai-4.1.0-cp27-cp27m-win_amd64.whl (40.7 kB view hashes)

Uploaded cp27

oppai-4.1.0-cp27-cp27m-win32.whl (33.4 kB view hashes)

Uploaded cp27

Supported by

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