https://github.com/kentzo/power
Python module that allows you to get power and battery status of the system. Windows, Mac OS X, Linux
https://github.com/kentzo/power
battery linux macos power-management python windows
Last synced: about 1 month ago
JSON representation
Python module that allows you to get power and battery status of the system. Windows, Mac OS X, Linux
- Host: GitHub
- URL: https://github.com/kentzo/power
- Owner: Kentzo
- License: mit
- Created: 2012-11-05T13:10:17.000Z (over 12 years ago)
- Default Branch: develop
- Last Pushed: 2024-12-02T01:32:33.000Z (5 months ago)
- Last Synced: 2025-04-04T05:51:21.399Z (about 1 month ago)
- Topics: battery, linux, macos, power-management, python, windows
- Language: Python
- Homepage:
- Size: 153 KB
- Stars: 73
- Watchers: 10
- Forks: 32
- Open Issues: 8
-
Metadata Files:
- Readme: README.rst
- License: LICENSE.txt
- Authors: AUTHORS
Awesome Lists containing this project
README
Power
=====
.. image:: https://travis-ci.org/Kentzo/Power.svg?branch=master
:target: https://travis-ci.org/Kentzo/Power
.. image:: https://codecov.io/gh/Kentzo/Power/branch/master/graph/badge.svg
:target: https://codecov.io/gh/Kentzo/Power
.. image:: https://img.shields.io/pypi/v/Power.svg
:target: https://pypi.python.org/pypi/Power
.. image:: https://pyup.io/repos/github/Kentzo/Power/shield.svg
:target: https://pyup.io/repos/github/Kentzo/Power/
:alt: UpdatesCrossplatform (Windows, Linux, Mac OS X, FreeBSD) python module to access power capabilities of the system.
- Power source type: AC, Battery or UPS
- Battery warning level: no warning (None), less than 22% of battery (Early), less than 10min (Final)
- Time remaining estimate
- Fault tolerant: if for some reason power capabilities cannot be extracted, falls back to AC
- Support for multiple batteries
- Power changes can be observed (Mac OS X only for now)
- Very easy to extend to support new features or new systemsExamples
--------Until we expand the documentation please have a look in power/tests.py