winrt-Windows.System.Power 4!10.0.28000.2705__py3-none-any.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,17 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT
2
+
3
+ import winrt.runtime._internals
4
+ import winrt.system
5
+
6
+ winrt.runtime._internals.load_projection(__spec__)
7
+
8
+ __all__ = [
9
+ "BatteryStatus",
10
+ "EnergySaverStatus",
11
+ "EnergySaverStatus2",
12
+ "PowerSupplyStatus",
13
+ "BackgroundEnergyManager",
14
+ "ForegroundEnergyManager",
15
+ "PowerManager",
16
+ ]
17
+
@@ -0,0 +1,194 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT
2
+
3
+ import datetime
4
+ import enum
5
+ import typing
6
+ from builtins import property as _property
7
+ from typing_extensions import deprecated
8
+
9
+ import winrt.system
10
+ import winrt.windows.foundation as windows_foundation
11
+
12
+ __all__ = [
13
+ "BatteryStatus",
14
+ "EnergySaverStatus",
15
+ "EnergySaverStatus2",
16
+ "PowerSupplyStatus",
17
+ "BackgroundEnergyManager",
18
+ "ForegroundEnergyManager",
19
+ "PowerManager",
20
+ ]
21
+
22
+ class BatteryStatus(enum.IntEnum):
23
+ NOT_PRESENT = 0
24
+ DISCHARGING = 1
25
+ IDLE = 2
26
+ CHARGING = 3
27
+
28
+ class EnergySaverStatus(enum.IntEnum):
29
+ DISABLED = 0
30
+ OFF = 1
31
+ ON = 2
32
+
33
+ class EnergySaverStatus2(enum.IntEnum):
34
+ UNKNOWN = 0
35
+ OFF = 1
36
+ STANDARD = 2
37
+ HIGH_SAVINGS = 3
38
+
39
+ class PowerSupplyStatus(enum.IntEnum):
40
+ NOT_PRESENT = 0
41
+ INADEQUATE = 1
42
+ ADEQUATE = 2
43
+
44
+ @typing.final
45
+ class BackgroundEnergyManager_Static(winrt.system.Object_Static):
46
+ # Windows.Foundation.EventRegistrationToken Windows.System.Power.BackgroundEnergyManager::add_RecentEnergyUsageIncreased(Windows.Foundation.EventHandler`1<System.Object>)
47
+ @deprecated("Background Energy Manager has been deprecated. For more info, see MSDN.")
48
+ def add_recent_energy_usage_increased(cls, handler: windows_foundation.EventHandler[winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
49
+ # System.Void Windows.System.Power.BackgroundEnergyManager::remove_RecentEnergyUsageIncreased(Windows.Foundation.EventRegistrationToken)
50
+ @deprecated("Background Energy Manager has been deprecated. For more info, see MSDN.")
51
+ def remove_recent_energy_usage_increased(cls, token: windows_foundation.EventRegistrationToken, /) -> None: ...
52
+ # Windows.Foundation.EventRegistrationToken Windows.System.Power.BackgroundEnergyManager::add_RecentEnergyUsageReturnedToLow(Windows.Foundation.EventHandler`1<System.Object>)
53
+ @deprecated("Background Energy Manager has been deprecated. For more info, see MSDN.")
54
+ def add_recent_energy_usage_returned_to_low(cls, handler: windows_foundation.EventHandler[winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
55
+ # System.Void Windows.System.Power.BackgroundEnergyManager::remove_RecentEnergyUsageReturnedToLow(Windows.Foundation.EventRegistrationToken)
56
+ @deprecated("Background Energy Manager has been deprecated. For more info, see MSDN.")
57
+ def remove_recent_energy_usage_returned_to_low(cls, token: windows_foundation.EventRegistrationToken, /) -> None: ...
58
+ # System.UInt32 Windows.System.Power.BackgroundEnergyManager::get_ExcessiveUsageLevel()
59
+ @_property
60
+ @deprecated("Background Energy Manager has been deprecated. For more info, see MSDN.")
61
+ def excessive_usage_level(cls) -> winrt.system.UInt32: ...
62
+ # System.UInt32 Windows.System.Power.BackgroundEnergyManager::get_LowUsageLevel()
63
+ @_property
64
+ @deprecated("Background Energy Manager has been deprecated. For more info, see MSDN.")
65
+ def low_usage_level(cls) -> winrt.system.UInt32: ...
66
+ # System.UInt32 Windows.System.Power.BackgroundEnergyManager::get_MaxAcceptableUsageLevel()
67
+ @_property
68
+ @deprecated("Background Energy Manager has been deprecated. For more info, see MSDN.")
69
+ def max_acceptable_usage_level(cls) -> winrt.system.UInt32: ...
70
+ # System.UInt32 Windows.System.Power.BackgroundEnergyManager::get_NearMaxAcceptableUsageLevel()
71
+ @_property
72
+ @deprecated("Background Energy Manager has been deprecated. For more info, see MSDN.")
73
+ def near_max_acceptable_usage_level(cls) -> winrt.system.UInt32: ...
74
+ # System.UInt32 Windows.System.Power.BackgroundEnergyManager::get_NearTerminationUsageLevel()
75
+ @_property
76
+ @deprecated("Background Energy Manager has been deprecated. For more info, see MSDN.")
77
+ def near_termination_usage_level(cls) -> winrt.system.UInt32: ...
78
+ # System.UInt32 Windows.System.Power.BackgroundEnergyManager::get_RecentEnergyUsage()
79
+ @_property
80
+ @deprecated("Background Energy Manager has been deprecated. For more info, see MSDN.")
81
+ def recent_energy_usage(cls) -> winrt.system.UInt32: ...
82
+ # System.UInt32 Windows.System.Power.BackgroundEnergyManager::get_RecentEnergyUsageLevel()
83
+ @_property
84
+ @deprecated("Background Energy Manager has been deprecated. For more info, see MSDN.")
85
+ def recent_energy_usage_level(cls) -> winrt.system.UInt32: ...
86
+ # System.UInt32 Windows.System.Power.BackgroundEnergyManager::get_TerminationUsageLevel()
87
+ @_property
88
+ @deprecated("Background Energy Manager has been deprecated. For more info, see MSDN.")
89
+ def termination_usage_level(cls) -> winrt.system.UInt32: ...
90
+
91
+ @typing.final
92
+ @deprecated("Background Energy Manager has been deprecated. For more info, see MSDN.")
93
+ class BackgroundEnergyManager(winrt.system.Object, metaclass=BackgroundEnergyManager_Static):
94
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
95
+ """A class of static members only, so there is nothing to create."""
96
+
97
+ @typing.final
98
+ class ForegroundEnergyManager_Static(winrt.system.Object_Static):
99
+ # Windows.Foundation.EventRegistrationToken Windows.System.Power.ForegroundEnergyManager::add_RecentEnergyUsageIncreased(Windows.Foundation.EventHandler`1<System.Object>)
100
+ @deprecated("Foreground Energy Manager has been deprecated. For more info, see MSDN.")
101
+ def add_recent_energy_usage_increased(cls, handler: windows_foundation.EventHandler[winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
102
+ # System.Void Windows.System.Power.ForegroundEnergyManager::remove_RecentEnergyUsageIncreased(Windows.Foundation.EventRegistrationToken)
103
+ @deprecated("Foreground Energy Manager has been deprecated. For more info, see MSDN.")
104
+ def remove_recent_energy_usage_increased(cls, token: windows_foundation.EventRegistrationToken, /) -> None: ...
105
+ # Windows.Foundation.EventRegistrationToken Windows.System.Power.ForegroundEnergyManager::add_RecentEnergyUsageReturnedToLow(Windows.Foundation.EventHandler`1<System.Object>)
106
+ @deprecated("Foreground Energy Manager has been deprecated. For more info, see MSDN.")
107
+ def add_recent_energy_usage_returned_to_low(cls, handler: windows_foundation.EventHandler[winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
108
+ # System.Void Windows.System.Power.ForegroundEnergyManager::remove_RecentEnergyUsageReturnedToLow(Windows.Foundation.EventRegistrationToken)
109
+ @deprecated("Foreground Energy Manager has been deprecated. For more info, see MSDN.")
110
+ def remove_recent_energy_usage_returned_to_low(cls, token: windows_foundation.EventRegistrationToken, /) -> None: ...
111
+ # System.UInt32 Windows.System.Power.ForegroundEnergyManager::get_ExcessiveUsageLevel()
112
+ @_property
113
+ @deprecated("Foreground Energy Manager has been deprecated. For more info, see MSDN.")
114
+ def excessive_usage_level(cls) -> winrt.system.UInt32: ...
115
+ # System.UInt32 Windows.System.Power.ForegroundEnergyManager::get_LowUsageLevel()
116
+ @_property
117
+ @deprecated("Foreground Energy Manager has been deprecated. For more info, see MSDN.")
118
+ def low_usage_level(cls) -> winrt.system.UInt32: ...
119
+ # System.UInt32 Windows.System.Power.ForegroundEnergyManager::get_MaxAcceptableUsageLevel()
120
+ @_property
121
+ @deprecated("Foreground Energy Manager has been deprecated. For more info, see MSDN.")
122
+ def max_acceptable_usage_level(cls) -> winrt.system.UInt32: ...
123
+ # System.UInt32 Windows.System.Power.ForegroundEnergyManager::get_NearMaxAcceptableUsageLevel()
124
+ @_property
125
+ @deprecated("Foreground Energy Manager has been deprecated. For more info, see MSDN.")
126
+ def near_max_acceptable_usage_level(cls) -> winrt.system.UInt32: ...
127
+ # System.UInt32 Windows.System.Power.ForegroundEnergyManager::get_RecentEnergyUsage()
128
+ @_property
129
+ @deprecated("Foreground Energy Manager has been deprecated. For more info, see MSDN.")
130
+ def recent_energy_usage(cls) -> winrt.system.UInt32: ...
131
+ # System.UInt32 Windows.System.Power.ForegroundEnergyManager::get_RecentEnergyUsageLevel()
132
+ @_property
133
+ @deprecated("Foreground Energy Manager has been deprecated. For more info, see MSDN.")
134
+ def recent_energy_usage_level(cls) -> winrt.system.UInt32: ...
135
+
136
+ @typing.final
137
+ @deprecated("Foreground Energy Manager has been deprecated. For more info, see MSDN.")
138
+ class ForegroundEnergyManager(winrt.system.Object, metaclass=ForegroundEnergyManager_Static):
139
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
140
+ """A class of static members only, so there is nothing to create."""
141
+
142
+ @typing.final
143
+ class PowerManager_Static(winrt.system.Object_Static):
144
+ # Windows.Foundation.EventRegistrationToken Windows.System.Power.PowerManager::add_EnergySaverStatus2Changed(Windows.Foundation.EventHandler`1<System.Object>)
145
+ def add_energy_saver_status2_changed(cls, handler: windows_foundation.EventHandler[winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
146
+ # System.Void Windows.System.Power.PowerManager::remove_EnergySaverStatus2Changed(Windows.Foundation.EventRegistrationToken)
147
+ def remove_energy_saver_status2_changed(cls, token: windows_foundation.EventRegistrationToken, /) -> None: ...
148
+ # Windows.Foundation.EventRegistrationToken Windows.System.Power.PowerManager::add_BatteryStatusChanged(Windows.Foundation.EventHandler`1<System.Object>)
149
+ def add_battery_status_changed(cls, handler: windows_foundation.EventHandler[winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
150
+ # System.Void Windows.System.Power.PowerManager::remove_BatteryStatusChanged(Windows.Foundation.EventRegistrationToken)
151
+ def remove_battery_status_changed(cls, token: windows_foundation.EventRegistrationToken, /) -> None: ...
152
+ # Windows.Foundation.EventRegistrationToken Windows.System.Power.PowerManager::add_EnergySaverStatusChanged(Windows.Foundation.EventHandler`1<System.Object>)
153
+ def add_energy_saver_status_changed(cls, handler: windows_foundation.EventHandler[winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
154
+ # System.Void Windows.System.Power.PowerManager::remove_EnergySaverStatusChanged(Windows.Foundation.EventRegistrationToken)
155
+ def remove_energy_saver_status_changed(cls, token: windows_foundation.EventRegistrationToken, /) -> None: ...
156
+ # Windows.Foundation.EventRegistrationToken Windows.System.Power.PowerManager::add_PowerSupplyStatusChanged(Windows.Foundation.EventHandler`1<System.Object>)
157
+ def add_power_supply_status_changed(cls, handler: windows_foundation.EventHandler[winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
158
+ # System.Void Windows.System.Power.PowerManager::remove_PowerSupplyStatusChanged(Windows.Foundation.EventRegistrationToken)
159
+ def remove_power_supply_status_changed(cls, token: windows_foundation.EventRegistrationToken, /) -> None: ...
160
+ # Windows.Foundation.EventRegistrationToken Windows.System.Power.PowerManager::add_RemainingChargePercentChanged(Windows.Foundation.EventHandler`1<System.Object>)
161
+ def add_remaining_charge_percent_changed(cls, handler: windows_foundation.EventHandler[winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
162
+ # System.Void Windows.System.Power.PowerManager::remove_RemainingChargePercentChanged(Windows.Foundation.EventRegistrationToken)
163
+ def remove_remaining_charge_percent_changed(cls, token: windows_foundation.EventRegistrationToken, /) -> None: ...
164
+ # Windows.Foundation.EventRegistrationToken Windows.System.Power.PowerManager::add_RemainingDischargeTimeChanged(Windows.Foundation.EventHandler`1<System.Object>)
165
+ def add_remaining_discharge_time_changed(cls, handler: windows_foundation.EventHandler[winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
166
+ # System.Void Windows.System.Power.PowerManager::remove_RemainingDischargeTimeChanged(Windows.Foundation.EventRegistrationToken)
167
+ def remove_remaining_discharge_time_changed(cls, token: windows_foundation.EventRegistrationToken, /) -> None: ...
168
+ # Windows.System.Power.BatteryStatus Windows.System.Power.PowerManager::get_BatteryStatus()
169
+ @_property
170
+ def battery_status(cls) -> BatteryStatus: ...
171
+ # Windows.System.Power.EnergySaverStatus Windows.System.Power.PowerManager::get_EnergySaverStatus()
172
+ @_property
173
+ def energy_saver_status(cls) -> EnergySaverStatus: ...
174
+ # Windows.System.Power.PowerSupplyStatus Windows.System.Power.PowerManager::get_PowerSupplyStatus()
175
+ @_property
176
+ def power_supply_status(cls) -> PowerSupplyStatus: ...
177
+ # System.Int32 Windows.System.Power.PowerManager::get_RemainingChargePercent()
178
+ @_property
179
+ def remaining_charge_percent(cls) -> winrt.system.Int32: ...
180
+ # Windows.Foundation.TimeSpan Windows.System.Power.PowerManager::get_RemainingDischargeTime()
181
+ @_property
182
+ def remaining_discharge_time(cls) -> datetime.timedelta: ...
183
+ # Windows.System.Power.EnergySaverStatus2 Windows.System.Power.PowerManager::get_EnergySaverStatus2()
184
+ @_property
185
+ def energy_saver_status2(cls) -> EnergySaverStatus2: ...
186
+ # System.Boolean Windows.System.Power.PowerManager::get_IsEnergySaverStatus2Supported()
187
+ @_property
188
+ def is_energy_saver_status2_supported(cls) -> bool: ...
189
+
190
+ @typing.final
191
+ class PowerManager(winrt.system.Object, metaclass=PowerManager_Static):
192
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
193
+ """A class of static members only, so there is nothing to create."""
194
+
File without changes
@@ -0,0 +1,44 @@
1
+ Metadata-Version: 2.5
2
+ Name: winrt-Windows.System.Power
3
+ Version: 4!10.0.28000.2705
4
+ Summary: PyWinRT projection of the Windows.System.Power namespace
5
+ Project-URL: Documentation, https://pywinrt.readthedocs.io
6
+ Project-URL: Repository, https://github.com/pywinrt/pywinrt
7
+ Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/projection/winrt/CHANGELOG.md
8
+ License-Expression: MIT
9
+ License-File: LICENSE
10
+ Classifier: Intended Audience :: Developers
11
+ Classifier: Operating System :: Microsoft :: Windows
12
+ Classifier: Programming Language :: Python :: 3
13
+ Classifier: Programming Language :: Python :: 3.11
14
+ Classifier: Programming Language :: Python :: 3.12
15
+ Classifier: Programming Language :: Python :: 3.13
16
+ Classifier: Programming Language :: Python :: 3.14
17
+ Classifier: Programming Language :: Python :: 3.15
18
+ Classifier: Programming Language :: Python :: Free Threading :: 2 - Beta
19
+ Classifier: Programming Language :: Python :: Implementation :: CPython
20
+ Classifier: Typing :: Typed
21
+ Requires-Python: >=3.11
22
+ Requires-Dist: winrt-runtime<5,>=4.0.0
23
+ Requires-Dist: winrt-windows-foundation>=4!10.0.28000.2705
24
+ Provides-Extra: all
25
+ Requires-Dist: winrt-windows-foundation[all]>=4!10.0.28000.2705; extra == 'all'
26
+ Description-Content-Type: text/markdown
27
+
28
+ <!-- warning: Please don't edit this file. It was automatically generated. -->
29
+
30
+ # winrt-Windows.System.Power
31
+
32
+ Windows Runtime (WinRT) APIs for the `Windows.System.Power` namespace.
33
+
34
+ This package provides the `winrt.windows.system.power` module.
35
+
36
+ The WinRT APIs in it are those of version 10.0.28000.2705 of the
37
+ `Microsoft.Windows.SDK.CPP` NuGet package.
38
+
39
+ ```
40
+ pip install winrt-Windows.System.Power
41
+ ```
42
+
43
+ Other WinRT namespaces are packages of their own, so install the package of
44
+ each namespace your code imports from.
@@ -0,0 +1,8 @@
1
+ winrt/windows/system/power/__init__.py,sha256=L6NU-gqTvz5CLQ8J5zR6xK-UKhk8Y7-GN9eEYCGukjI,373
2
+ winrt/windows/system/power/__init__.pyi,sha256=1qVtpvQPgdq24kX7dwJ9U3rPYG4w57r39eVN0k2cBwQ,13450
3
+ winrt/windows/system/power/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ winrt/windows/system/power/_table.pywinrt,sha256=tcco6UO9T5dX7Hk1fNS-LyqUk-prOe2NwWYgKy2It04,7296
5
+ winrt_windows_system_power-4!10.0.28000.2705.dist-info/METADATA,sha256=hQdWmeqB3iaV4lcCnDstkHaqno9nF6GBCxBlsEzGDas,1766
6
+ winrt_windows_system_power-4!10.0.28000.2705.dist-info/WHEEL,sha256=W3fkpkm7-wf9vBI5Z-7s0eWkeM-spu78I8Neb98DeEg,87
7
+ winrt_windows_system_power-4!10.0.28000.2705.dist-info/licenses/LICENSE,sha256=dyVKOMqPV0fimbzMhqN3zpg6K6Y2OlekwrdfiZTBm8M,1225
8
+ winrt_windows_system_power-4!10.0.28000.2705.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.32.4
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,22 @@
1
+ MIT License
2
+
3
+ Copyright (c) Microsoft Corporation. All rights reserved.
4
+ Copyright (c) 2021-2026 David Lechner <david@pybricks.com>
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ of this software and associated documentation files (the "Software"), to deal
8
+ in the Software without restriction, including without limitation the rights
9
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the Software is
11
+ furnished to do so, subject to the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be included in all
14
+ copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ SOFTWARE