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-3.3.0.tar.gz (55.3 kB view hashes)

Uploaded Source

Built Distributions

oppai-3.3.0-cp39-cp39-manylinux2010_x86_64.whl (161.6 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.12+ x86-64

oppai-3.3.0-cp39-cp39-manylinux2010_i686.whl (146.7 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.12+ i686

oppai-3.3.0-cp39-cp39-manylinux1_x86_64.whl (161.6 kB view hashes)

Uploaded CPython 3.9

oppai-3.3.0-cp39-cp39-manylinux1_i686.whl (146.7 kB view hashes)

Uploaded CPython 3.9

oppai-3.3.0-cp38-cp38-manylinux2010_x86_64.whl (161.8 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

oppai-3.3.0-cp38-cp38-manylinux2010_i686.whl (147.3 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.12+ i686

oppai-3.3.0-cp38-cp38-manylinux1_x86_64.whl (161.8 kB view hashes)

Uploaded CPython 3.8

oppai-3.3.0-cp38-cp38-manylinux1_i686.whl (147.3 kB view hashes)

Uploaded CPython 3.8

oppai-3.3.0-cp37-cp37m-manylinux2010_x86_64.whl (160.4 kB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.12+ x86-64

oppai-3.3.0-cp37-cp37m-manylinux2010_i686.whl (145.8 kB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.12+ i686

oppai-3.3.0-cp37-cp37m-manylinux1_x86_64.whl (160.4 kB view hashes)

Uploaded CPython 3.7m

oppai-3.3.0-cp37-cp37m-manylinux1_i686.whl (145.8 kB view hashes)

Uploaded CPython 3.7m

oppai-3.3.0-cp36-cp36m-manylinux2010_x86_64.whl (159.3 kB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.12+ x86-64

oppai-3.3.0-cp36-cp36m-manylinux2010_i686.whl (145.0 kB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.12+ i686

oppai-3.3.0-cp36-cp36m-manylinux1_x86_64.whl (159.3 kB view hashes)

Uploaded CPython 3.6m

oppai-3.3.0-cp36-cp36m-manylinux1_i686.whl (145.0 kB view hashes)

Uploaded CPython 3.6m

oppai-3.3.0-cp35-cp35m-manylinux2010_x86_64.whl (159.1 kB view hashes)

Uploaded CPython 3.5m manylinux: glibc 2.12+ x86-64

oppai-3.3.0-cp35-cp35m-manylinux2010_i686.whl (144.7 kB view hashes)

Uploaded CPython 3.5m manylinux: glibc 2.12+ i686

oppai-3.3.0-cp35-cp35m-manylinux1_x86_64.whl (159.1 kB view hashes)

Uploaded CPython 3.5m

oppai-3.3.0-cp35-cp35m-manylinux1_i686.whl (144.7 kB view hashes)

Uploaded CPython 3.5m

oppai-3.3.0-cp27-cp27mu-manylinux2010_x86_64.whl (158.8 kB view hashes)

Uploaded CPython 2.7mu manylinux: glibc 2.12+ x86-64

oppai-3.3.0-cp27-cp27mu-manylinux2010_i686.whl (147.3 kB view hashes)

Uploaded CPython 2.7mu manylinux: glibc 2.12+ i686

oppai-3.3.0-cp27-cp27mu-manylinux1_x86_64.whl (158.8 kB view hashes)

Uploaded CPython 2.7mu

oppai-3.3.0-cp27-cp27mu-manylinux1_i686.whl (147.3 kB view hashes)

Uploaded CPython 2.7mu

oppai-3.3.0-cp27-cp27m-manylinux2010_x86_64.whl (158.9 kB view hashes)

Uploaded CPython 2.7m manylinux: glibc 2.12+ x86-64

oppai-3.3.0-cp27-cp27m-manylinux2010_i686.whl (147.3 kB view hashes)

Uploaded CPython 2.7m manylinux: glibc 2.12+ i686

oppai-3.3.0-cp27-cp27m-manylinux1_x86_64.whl (158.9 kB view hashes)

Uploaded CPython 2.7m

oppai-3.3.0-cp27-cp27m-manylinux1_i686.whl (147.3 kB view hashes)

Uploaded CPython 2.7m

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page