winrt-Windows.System.Power 2.2.0__cp313-cp313-win_amd64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- winrt/_winrt_windows_system_power.cp313-win_amd64.pyd +0 -0
- winrt/_winrt_windows_system_power.pyi +94 -0
- winrt/windows/system/power/__init__.py +35 -0
- winrt/windows/system/power/py.typed +0 -0
- winrt_Windows.System.Power-2.2.0.dist-info/METADATA +25 -0
- winrt_Windows.System.Power-2.2.0.dist-info/RECORD +8 -0
- winrt_Windows.System.Power-2.2.0.dist-info/WHEEL +5 -0
- winrt_Windows.System.Power-2.2.0.dist-info/top_level.txt +1 -0
|
Binary file
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
|
|
2
|
+
|
|
3
|
+
import datetime
|
|
4
|
+
import sys
|
|
5
|
+
import types
|
|
6
|
+
import typing
|
|
7
|
+
import uuid as _uuid
|
|
8
|
+
from builtins import property as _property
|
|
9
|
+
|
|
10
|
+
import winrt._winrt
|
|
11
|
+
import winrt.system
|
|
12
|
+
import winrt.windows.foundation as windows_foundation
|
|
13
|
+
|
|
14
|
+
from winrt.windows.system.power import BatteryStatus, EnergySaverStatus, PowerSupplyStatus
|
|
15
|
+
|
|
16
|
+
Self = typing.TypeVar('Self')
|
|
17
|
+
|
|
18
|
+
@typing.final
|
|
19
|
+
class BackgroundEnergyManager_Static(type):
|
|
20
|
+
def add_recent_energy_usage_increased(cls, handler: windows_foundation.EventHandler[winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
|
|
21
|
+
def remove_recent_energy_usage_increased(cls, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
22
|
+
def add_recent_energy_usage_returned_to_low(cls, handler: windows_foundation.EventHandler[winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
|
|
23
|
+
def remove_recent_energy_usage_returned_to_low(cls, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
24
|
+
@_property
|
|
25
|
+
def excessive_usage_level(cls) -> winrt.system.UInt32: ...
|
|
26
|
+
@_property
|
|
27
|
+
def low_usage_level(cls) -> winrt.system.UInt32: ...
|
|
28
|
+
@_property
|
|
29
|
+
def max_acceptable_usage_level(cls) -> winrt.system.UInt32: ...
|
|
30
|
+
@_property
|
|
31
|
+
def near_max_acceptable_usage_level(cls) -> winrt.system.UInt32: ...
|
|
32
|
+
@_property
|
|
33
|
+
def near_termination_usage_level(cls) -> winrt.system.UInt32: ...
|
|
34
|
+
@_property
|
|
35
|
+
def recent_energy_usage(cls) -> winrt.system.UInt32: ...
|
|
36
|
+
@_property
|
|
37
|
+
def recent_energy_usage_level(cls) -> winrt.system.UInt32: ...
|
|
38
|
+
@_property
|
|
39
|
+
def termination_usage_level(cls) -> winrt.system.UInt32: ...
|
|
40
|
+
|
|
41
|
+
@typing.final
|
|
42
|
+
class BackgroundEnergyManager(winrt.system.Object, metaclass=BackgroundEnergyManager_Static):
|
|
43
|
+
pass
|
|
44
|
+
|
|
45
|
+
@typing.final
|
|
46
|
+
class ForegroundEnergyManager_Static(type):
|
|
47
|
+
def add_recent_energy_usage_increased(cls, handler: windows_foundation.EventHandler[winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
|
|
48
|
+
def remove_recent_energy_usage_increased(cls, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
49
|
+
def add_recent_energy_usage_returned_to_low(cls, handler: windows_foundation.EventHandler[winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
|
|
50
|
+
def remove_recent_energy_usage_returned_to_low(cls, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
51
|
+
@_property
|
|
52
|
+
def excessive_usage_level(cls) -> winrt.system.UInt32: ...
|
|
53
|
+
@_property
|
|
54
|
+
def low_usage_level(cls) -> winrt.system.UInt32: ...
|
|
55
|
+
@_property
|
|
56
|
+
def max_acceptable_usage_level(cls) -> winrt.system.UInt32: ...
|
|
57
|
+
@_property
|
|
58
|
+
def near_max_acceptable_usage_level(cls) -> winrt.system.UInt32: ...
|
|
59
|
+
@_property
|
|
60
|
+
def recent_energy_usage(cls) -> winrt.system.UInt32: ...
|
|
61
|
+
@_property
|
|
62
|
+
def recent_energy_usage_level(cls) -> winrt.system.UInt32: ...
|
|
63
|
+
|
|
64
|
+
@typing.final
|
|
65
|
+
class ForegroundEnergyManager(winrt.system.Object, metaclass=ForegroundEnergyManager_Static):
|
|
66
|
+
pass
|
|
67
|
+
|
|
68
|
+
@typing.final
|
|
69
|
+
class PowerManager_Static(type):
|
|
70
|
+
def add_battery_status_changed(cls, handler: windows_foundation.EventHandler[winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
|
|
71
|
+
def remove_battery_status_changed(cls, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
72
|
+
def add_energy_saver_status_changed(cls, handler: windows_foundation.EventHandler[winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
|
|
73
|
+
def remove_energy_saver_status_changed(cls, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
74
|
+
def add_power_supply_status_changed(cls, handler: windows_foundation.EventHandler[winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
|
|
75
|
+
def remove_power_supply_status_changed(cls, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
76
|
+
def add_remaining_charge_percent_changed(cls, handler: windows_foundation.EventHandler[winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
|
|
77
|
+
def remove_remaining_charge_percent_changed(cls, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
78
|
+
def add_remaining_discharge_time_changed(cls, handler: windows_foundation.EventHandler[winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
|
|
79
|
+
def remove_remaining_discharge_time_changed(cls, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
80
|
+
@_property
|
|
81
|
+
def battery_status(cls) -> BatteryStatus: ...
|
|
82
|
+
@_property
|
|
83
|
+
def energy_saver_status(cls) -> EnergySaverStatus: ...
|
|
84
|
+
@_property
|
|
85
|
+
def power_supply_status(cls) -> PowerSupplyStatus: ...
|
|
86
|
+
@_property
|
|
87
|
+
def remaining_charge_percent(cls) -> winrt.system.Int32: ...
|
|
88
|
+
@_property
|
|
89
|
+
def remaining_discharge_time(cls) -> datetime.timedelta: ...
|
|
90
|
+
|
|
91
|
+
@typing.final
|
|
92
|
+
class PowerManager(winrt.system.Object, metaclass=PowerManager_Static):
|
|
93
|
+
pass
|
|
94
|
+
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
|
|
2
|
+
|
|
3
|
+
import enum
|
|
4
|
+
|
|
5
|
+
import winrt.system
|
|
6
|
+
from winrt import _winrt_windows_system_power
|
|
7
|
+
|
|
8
|
+
__all__ = [
|
|
9
|
+
"BatteryStatus",
|
|
10
|
+
"EnergySaverStatus",
|
|
11
|
+
"PowerSupplyStatus",
|
|
12
|
+
"BackgroundEnergyManager",
|
|
13
|
+
"ForegroundEnergyManager",
|
|
14
|
+
"PowerManager",
|
|
15
|
+
]
|
|
16
|
+
|
|
17
|
+
class BatteryStatus(enum.IntEnum):
|
|
18
|
+
NOT_PRESENT = 0
|
|
19
|
+
DISCHARGING = 1
|
|
20
|
+
IDLE = 2
|
|
21
|
+
CHARGING = 3
|
|
22
|
+
|
|
23
|
+
class EnergySaverStatus(enum.IntEnum):
|
|
24
|
+
DISABLED = 0
|
|
25
|
+
OFF = 1
|
|
26
|
+
ON = 2
|
|
27
|
+
|
|
28
|
+
class PowerSupplyStatus(enum.IntEnum):
|
|
29
|
+
NOT_PRESENT = 0
|
|
30
|
+
INADEQUATE = 1
|
|
31
|
+
ADEQUATE = 2
|
|
32
|
+
|
|
33
|
+
BackgroundEnergyManager = _winrt_windows_system_power.BackgroundEnergyManager
|
|
34
|
+
ForegroundEnergyManager = _winrt_windows_system_power.ForegroundEnergyManager
|
|
35
|
+
PowerManager = _winrt_windows_system_power.PowerManager
|
|
File without changes
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: winrt-Windows.System.Power
|
|
3
|
+
Version: 2.2.0
|
|
4
|
+
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
|
+
License: MIT
|
|
6
|
+
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
7
|
+
Project-URL: Repository, https://github.com/pywinrt/pywinrt
|
|
8
|
+
Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
|
|
9
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
10
|
+
Classifier: Programming Language :: Python :: 3
|
|
11
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
12
|
+
Classifier: Intended Audience :: Developers
|
|
13
|
+
Requires-Python: <3.14,>=3.9
|
|
14
|
+
Description-Content-Type: text/markdown
|
|
15
|
+
Requires-Dist: winrt-runtime ==2.2.0
|
|
16
|
+
Provides-Extra: all
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all] ==2.2.0 ; extra == 'all'
|
|
18
|
+
|
|
19
|
+
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
20
|
+
|
|
21
|
+
# winrt-Windows.System.Power
|
|
22
|
+
|
|
23
|
+
Windows Runtime (WinRT) APIs for for the `Windows.System.Power` namespace.
|
|
24
|
+
|
|
25
|
+
This package provides the `winrt.windows.system.power` module.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
winrt/_winrt_windows_system_power.cp313-win_amd64.pyd,sha256=CzoTJp7B_Y73SZ2-nVWiYXLSg5fPJtIp-RuHnCW56IM,77312
|
|
2
|
+
winrt/_winrt_windows_system_power.pyi,sha256=bC1WUEkltk7OhTMIryGSFSydZZdRyeNVxQzMQOnxtsM,4937
|
|
3
|
+
winrt/windows/system/power/__init__.py,sha256=CyLy32yX4StiGOfIlyxRemiY-8zBRaVruqQAP5Axn_g,823
|
|
4
|
+
winrt/windows/system/power/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
|
+
winrt_Windows.System.Power-2.2.0.dist-info/METADATA,sha256=5FwLmUzsGYTX7UZ7GarZ14M1QjmDSDSu5XAo3kBKJ0w,1031
|
|
6
|
+
winrt_Windows.System.Power-2.2.0.dist-info/WHEEL,sha256=CdxowNJ2RPRCxUxJWAQ4R_o8uA51cjotGywc47Ht6wA,101
|
|
7
|
+
winrt_Windows.System.Power-2.2.0.dist-info/top_level.txt,sha256=BzwQb4dZRt0NxCXi10ARjWsox7Asmtf_lXrw_KR-D_E,6
|
|
8
|
+
winrt_Windows.System.Power-2.2.0.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
winrt
|