Module Expr Str Assign NameStore Str ImportFrom alias ImportFrom alias TryExcept body If Call AttributeLoad NameLoad attr Str body ImportFrom alias orelse If Call AttributeLoad NameLoad attr Str body ImportFrom alias orelse If Call AttributeLoad NameLoad attr Str body ImportFrom alias orelse If Call AttributeLoad NameLoad attr Str body ImportFrom alias orelse Raise Call NameLoad Call AttributeLoad Str attr keyword NameLoad handlers ExceptHandler type NameLoad name NameStore body Import alias Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr keyword Call NameLoad NameLoad keyword NameLoad ImportFrom alias identifier
N/A N/A 
Provides crossplatform checking of current power source, battery warning level and battery time remaining estimate.
Allows you to add observer for power notifications if platform supports it.

Usage:
    from power import PowerManagement, PowerManagementObserver # Automatically imports platform-specific implementation

    class Observer(PowerManagementObserver):
        def on_power_sources_change(self, power_management):
            print("Power sources did change.")

        def on_time_remaining_change(self, power_management):
            print("Time remaining did change.")

    # class Observer(object):
    #     ...
    # PowerManagementObserver.register(Observer)
 N/A __version__ 1.4 sys platform power.common * N/A N/A N/A N/A N/A platform startswith darwin N/A power.darwin PowerManagement N/A N/A N/A N/A platform startswith freebsd N/A power.freebsd PowerManagement N/A N/A N/A N/A platform startswith win32 N/A power.win32 PowerManagement N/A N/A N/A N/A platform startswith linux N/A power.linux PowerManagement N/A N/A N/A RuntimeError N/A N/A {platform} is not supported. format platform platform N/A N/A N/A RuntimeError N/A e N/A N/A warnings N/A N/A N/A warnings warn N/A N/A Unable to load PowerManagement for {platform}. No-op PowerManagement class is used: {error} format error N/A str e platform platform power.common PowerManagementNoop PowerManagement