Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Python binding for the PAPI library

Project description

Build Status PYPI Version License

PyPAPI is a Python binding for the PAPI (Performance Application Programming Interface) library. PyPAPI implements the whole PAPI High Level API and partially the Low Level API.

Starting with v5.5.1.4, PyPAPI is only compatible with GCC 7.0 or higher. Please use previous releases for older GCC version.

Installing PyPAPI

See this page of the documentation:


Building PyPAPI For Local Development

To work on PyPAPI, you first have to clone this repositiory and initialize and update submodules:

git clone
cd pypapi

git submodule init
git submodule update

Then you have to build both PAPI and the C library inside the pypapi module. This can be done with the following commands:

python build
python pypapi/

Generating Documentation

From a virtualenv:

pip install -r requirements.txt
python build_sphinx


  • Fixes issue with module named (#19, thx @mcopik)
  • Fixes compilation with GCC 8 and newer (#18)
  • Removes .o, .lo and other generated objects from the package
  • Partial bindings for the low level API
  • Adds missing files to build PAPI
  • Initial release (binding for papy 5.5.1)

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 python_papi, version
Filename, size File type Python version Upload date Hashes
Filename, size python_papi- (4.3 MB) 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 SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page