winrt-Windows.System.Power 2.0.0b1__cp39-cp39-win_arm64.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.
@@ -0,0 +1,91 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.1
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
13
+
14
+ from winrt.windows.system.power import BatteryStatus, EnergySaverStatus, PowerSupplyStatus
15
+
16
+ Self = typing.TypeVar('Self')
17
+
18
+ class BackgroundEnergyManager_Static(type):
19
+ def add_recent_energy_usage_increased(cls, handler: winrt.windows.foundation.EventHandler[winrt.system.Object], /) -> winrt.windows.foundation.EventRegistrationToken: ...
20
+ def remove_recent_energy_usage_increased(cls, token: winrt.windows.foundation.EventRegistrationToken, /) -> None: ...
21
+ def add_recent_energy_usage_returned_to_low(cls, handler: winrt.windows.foundation.EventHandler[winrt.system.Object], /) -> winrt.windows.foundation.EventRegistrationToken: ...
22
+ def remove_recent_energy_usage_returned_to_low(cls, token: winrt.windows.foundation.EventRegistrationToken, /) -> None: ...
23
+ @_property
24
+ def excessive_usage_level(cls) -> winrt.system.UInt32: ...
25
+ @_property
26
+ def low_usage_level(cls) -> winrt.system.UInt32: ...
27
+ @_property
28
+ def max_acceptable_usage_level(cls) -> winrt.system.UInt32: ...
29
+ @_property
30
+ def near_max_acceptable_usage_level(cls) -> winrt.system.UInt32: ...
31
+ @_property
32
+ def near_termination_usage_level(cls) -> winrt.system.UInt32: ...
33
+ @_property
34
+ def recent_energy_usage(cls) -> winrt.system.UInt32: ...
35
+ @_property
36
+ def recent_energy_usage_level(cls) -> winrt.system.UInt32: ...
37
+ @_property
38
+ def termination_usage_level(cls) -> winrt.system.UInt32: ...
39
+
40
+ class BackgroundEnergyManager(winrt.system.Object, metaclass=BackgroundEnergyManager_Static):
41
+ @staticmethod
42
+ def _from(obj: winrt.system.Object, /) -> BackgroundEnergyManager: ...
43
+
44
+ class ForegroundEnergyManager_Static(type):
45
+ def add_recent_energy_usage_increased(cls, handler: winrt.windows.foundation.EventHandler[winrt.system.Object], /) -> winrt.windows.foundation.EventRegistrationToken: ...
46
+ def remove_recent_energy_usage_increased(cls, token: winrt.windows.foundation.EventRegistrationToken, /) -> None: ...
47
+ def add_recent_energy_usage_returned_to_low(cls, handler: winrt.windows.foundation.EventHandler[winrt.system.Object], /) -> winrt.windows.foundation.EventRegistrationToken: ...
48
+ def remove_recent_energy_usage_returned_to_low(cls, token: winrt.windows.foundation.EventRegistrationToken, /) -> None: ...
49
+ @_property
50
+ def excessive_usage_level(cls) -> winrt.system.UInt32: ...
51
+ @_property
52
+ def low_usage_level(cls) -> winrt.system.UInt32: ...
53
+ @_property
54
+ def max_acceptable_usage_level(cls) -> winrt.system.UInt32: ...
55
+ @_property
56
+ def near_max_acceptable_usage_level(cls) -> winrt.system.UInt32: ...
57
+ @_property
58
+ def recent_energy_usage(cls) -> winrt.system.UInt32: ...
59
+ @_property
60
+ def recent_energy_usage_level(cls) -> winrt.system.UInt32: ...
61
+
62
+ class ForegroundEnergyManager(winrt.system.Object, metaclass=ForegroundEnergyManager_Static):
63
+ @staticmethod
64
+ def _from(obj: winrt.system.Object, /) -> ForegroundEnergyManager: ...
65
+
66
+ class PowerManager_Static(type):
67
+ def add_battery_status_changed(cls, handler: winrt.windows.foundation.EventHandler[winrt.system.Object], /) -> winrt.windows.foundation.EventRegistrationToken: ...
68
+ def remove_battery_status_changed(cls, token: winrt.windows.foundation.EventRegistrationToken, /) -> None: ...
69
+ def add_energy_saver_status_changed(cls, handler: winrt.windows.foundation.EventHandler[winrt.system.Object], /) -> winrt.windows.foundation.EventRegistrationToken: ...
70
+ def remove_energy_saver_status_changed(cls, token: winrt.windows.foundation.EventRegistrationToken, /) -> None: ...
71
+ def add_power_supply_status_changed(cls, handler: winrt.windows.foundation.EventHandler[winrt.system.Object], /) -> winrt.windows.foundation.EventRegistrationToken: ...
72
+ def remove_power_supply_status_changed(cls, token: winrt.windows.foundation.EventRegistrationToken, /) -> None: ...
73
+ def add_remaining_charge_percent_changed(cls, handler: winrt.windows.foundation.EventHandler[winrt.system.Object], /) -> winrt.windows.foundation.EventRegistrationToken: ...
74
+ def remove_remaining_charge_percent_changed(cls, token: winrt.windows.foundation.EventRegistrationToken, /) -> None: ...
75
+ def add_remaining_discharge_time_changed(cls, handler: winrt.windows.foundation.EventHandler[winrt.system.Object], /) -> winrt.windows.foundation.EventRegistrationToken: ...
76
+ def remove_remaining_discharge_time_changed(cls, token: winrt.windows.foundation.EventRegistrationToken, /) -> None: ...
77
+ @_property
78
+ def battery_status(cls) -> BatteryStatus: ...
79
+ @_property
80
+ def energy_saver_status(cls) -> EnergySaverStatus: ...
81
+ @_property
82
+ def power_supply_status(cls) -> PowerSupplyStatus: ...
83
+ @_property
84
+ def remaining_charge_percent(cls) -> winrt.system.Int32: ...
85
+ @_property
86
+ def remaining_discharge_time(cls) -> datetime.timedelta: ...
87
+
88
+ class PowerManager(winrt.system.Object, metaclass=PowerManager_Static):
89
+ @staticmethod
90
+ def _from(obj: winrt.system.Object, /) -> PowerManager: ...
91
+
@@ -0,0 +1,35 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.1
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
@@ -0,0 +1,24 @@
1
+ Metadata-Version: 2.1
2
+ Name: winrt-Windows.System.Power
3
+ Version: 2.0.0b1
4
+ Summary: Python projection of Windows Runtime (WinRT) APIs
5
+ License: MIT
6
+ Project-URL: Repository, https://github.com/pywrint/pywrinrt
7
+ Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
8
+ Classifier: Operating System :: Microsoft :: Windows
9
+ Classifier: Programming Language :: Python :: 3
10
+ Classifier: Programming Language :: Python :: Implementation :: CPython
11
+ Classifier: Intended Audience :: Developers
12
+ Requires-Python: <3.13,>=3.9
13
+ Description-Content-Type: text/markdown
14
+ Requires-Dist: winrt-runtime ==2.0.0-beta.1
15
+ Provides-Extra: all
16
+ Requires-Dist: winrt-Windows.Foundation[all] ==2.0.0-beta.1 ; extra == 'all'
17
+
18
+ <!-- warning: Please don't edit this file. It was automatically generated. -->
19
+
20
+ # winrt-Windows.System.Power
21
+
22
+ Windows Runtime (WinRT) APIs for for the `Windows.System.Power` namespace.
23
+
24
+ This package provides the `winrt.windows.system.power` module.
@@ -0,0 +1,7 @@
1
+ winrt/_winrt_windows_system_power.cp39-win_arm64.pyd,sha256=Ydc2Azy_MBzwIWAt5d32Vslb-xk90d035ZTwO6Jk3Rs,100864
2
+ winrt/_winrt_windows_system_power.pyi,sha256=G5TN441J6-7z2F2BSByOmBM0ANOF9Rhph_EJ4rkp2hA,5241
3
+ winrt/windows/system/power/__init__.py,sha256=1IIIaVQagskoRzrz-tqUf5aldASK07KuY3-dH4I8hPw,830
4
+ winrt_Windows.System.Power-2.0.0b1.dist-info/METADATA,sha256=DvO2DkcUzM2Shs8n_XQ5hTERtKRTmjs6tEX_tnBAY9c,988
5
+ winrt_Windows.System.Power-2.0.0b1.dist-info/WHEEL,sha256=PrHTG687fNsk7jS4Y-tLXN-3gpnf3wReNnzEPkeWHK0,100
6
+ winrt_Windows.System.Power-2.0.0b1.dist-info/top_level.txt,sha256=BzwQb4dZRt0NxCXi10ARjWsox7Asmtf_lXrw_KR-D_E,6
7
+ winrt_Windows.System.Power-2.0.0b1.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: bdist_wheel (0.41.1)
3
+ Root-Is-Purelib: false
4
+ Tag: cp39-cp39-win_arm64
5
+