Skip to main content

PowerAPI is a middleware toolkit for building software-defined power meters.

Project description


Join the chat at License: BSD 3 GitHub Workflow Status PyPI Codecov SWH status

PowerAPI is a middleware toolkit for building software-defined power meters. Software-defined power meters are configurable software libraries that can estimate the power consumption of software in real-time. PowerAPI supports the acquisition of raw metrics from a wide diversity of sensors (eg., physical meters, processor interfaces, hardware counters, OS counters) and the delivery of power consumptions via different channels (including file system, network, web, graphical). As a middleware toolkit, PowerAPI offers the capability of assembling power meters «à la carte» to accommodate user requirements.


PowerAPI is an open-source project developed by the Spirals project-team, a joint research group between the University of Lille and Inria.

The documentation of the project is available here.

Mailing list

You can follow the latest news and asks questions by subscribing to our mailing list.


If you would like to contribute code you can do so through GitHub by forking the repository and sending a pull request.

When submitting code, please make every effort to follow existing conventions and style in order to keep the code as readable as possible.


Use Cases

PowerAPI is used in a variety of projects to address key challenges of GreenIT:

  • SmartWatts is a self-adaptive power meter that can estimate the energy consumption of software containers in real-time.
  • GenPack provides a container scheduling strategy to minimize the energy footprint of cloud infrastructures.
  • VirtualWatts provides process-level power estimation of applications running in virtual machines.
  • Web Energy Archive ranks popular websites based on the energy footpring they imposes to browsers.
  • Greenspector optimises the power consumption of software by identifying potential energy leaks in the source code.

Research Projects

Currently, PowerAPI is used in two research projects:


PowerAPI is licensed under the BSD-3-Clause License. See the LICENSE file for details.

FOSSA Status

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

powerapi-2.7.0.tar.gz (67.1 kB view hashes)

Uploaded Source

Built Distribution

powerapi-2.7.0-py3-none-any.whl (146.1 kB view hashes)

Uploaded Python 3

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