winrt-Windows.System.Power 3.2.1__cp314-cp314-win32.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,139 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.2.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 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(winrt._winrt.IInspectable_Static):
20
+ # Windows.Foundation.EventRegistrationToken Windows.System.Power.BackgroundEnergyManager::add_RecentEnergyUsageIncreased(Windows.Foundation.EventHandler`1<System.Object>)
21
+ # @deprecated("Background Energy Manager has been deprecated. For more info, see MSDN.")
22
+ def add_recent_energy_usage_increased(cls, handler: windows_foundation.EventHandler[winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
23
+ # System.Void Windows.System.Power.BackgroundEnergyManager::remove_RecentEnergyUsageIncreased(Windows.Foundation.EventRegistrationToken)
24
+ # @deprecated("Background Energy Manager has been deprecated. For more info, see MSDN.")
25
+ def remove_recent_energy_usage_increased(cls, token: typing.Union[windows_foundation.EventRegistrationToken, typing.Tuple[winrt.system.Int64]], /) -> None: ...
26
+ # Windows.Foundation.EventRegistrationToken Windows.System.Power.BackgroundEnergyManager::add_RecentEnergyUsageReturnedToLow(Windows.Foundation.EventHandler`1<System.Object>)
27
+ # @deprecated("Background Energy Manager has been deprecated. For more info, see MSDN.")
28
+ def add_recent_energy_usage_returned_to_low(cls, handler: windows_foundation.EventHandler[winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
29
+ # System.Void Windows.System.Power.BackgroundEnergyManager::remove_RecentEnergyUsageReturnedToLow(Windows.Foundation.EventRegistrationToken)
30
+ # @deprecated("Background Energy Manager has been deprecated. For more info, see MSDN.")
31
+ def remove_recent_energy_usage_returned_to_low(cls, token: typing.Union[windows_foundation.EventRegistrationToken, typing.Tuple[winrt.system.Int64]], /) -> None: ...
32
+ # System.UInt32 Windows.System.Power.BackgroundEnergyManager::get_ExcessiveUsageLevel()
33
+ @_property
34
+ def excessive_usage_level(cls) -> winrt.system.UInt32: ...
35
+ # System.UInt32 Windows.System.Power.BackgroundEnergyManager::get_LowUsageLevel()
36
+ @_property
37
+ def low_usage_level(cls) -> winrt.system.UInt32: ...
38
+ # System.UInt32 Windows.System.Power.BackgroundEnergyManager::get_MaxAcceptableUsageLevel()
39
+ @_property
40
+ def max_acceptable_usage_level(cls) -> winrt.system.UInt32: ...
41
+ # System.UInt32 Windows.System.Power.BackgroundEnergyManager::get_NearMaxAcceptableUsageLevel()
42
+ @_property
43
+ def near_max_acceptable_usage_level(cls) -> winrt.system.UInt32: ...
44
+ # System.UInt32 Windows.System.Power.BackgroundEnergyManager::get_NearTerminationUsageLevel()
45
+ @_property
46
+ def near_termination_usage_level(cls) -> winrt.system.UInt32: ...
47
+ # System.UInt32 Windows.System.Power.BackgroundEnergyManager::get_RecentEnergyUsage()
48
+ @_property
49
+ def recent_energy_usage(cls) -> winrt.system.UInt32: ...
50
+ # System.UInt32 Windows.System.Power.BackgroundEnergyManager::get_RecentEnergyUsageLevel()
51
+ @_property
52
+ def recent_energy_usage_level(cls) -> winrt.system.UInt32: ...
53
+ # System.UInt32 Windows.System.Power.BackgroundEnergyManager::get_TerminationUsageLevel()
54
+ @_property
55
+ def termination_usage_level(cls) -> winrt.system.UInt32: ...
56
+
57
+ @typing.final
58
+ class BackgroundEnergyManager(winrt.system.Object, metaclass=BackgroundEnergyManager_Static):
59
+ pass
60
+
61
+ @typing.final
62
+ class ForegroundEnergyManager_Static(winrt._winrt.IInspectable_Static):
63
+ # Windows.Foundation.EventRegistrationToken Windows.System.Power.ForegroundEnergyManager::add_RecentEnergyUsageIncreased(Windows.Foundation.EventHandler`1<System.Object>)
64
+ # @deprecated("Foreground Energy Manager has been deprecated. For more info, see MSDN.")
65
+ def add_recent_energy_usage_increased(cls, handler: windows_foundation.EventHandler[winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
66
+ # System.Void Windows.System.Power.ForegroundEnergyManager::remove_RecentEnergyUsageIncreased(Windows.Foundation.EventRegistrationToken)
67
+ # @deprecated("Foreground Energy Manager has been deprecated. For more info, see MSDN.")
68
+ def remove_recent_energy_usage_increased(cls, token: typing.Union[windows_foundation.EventRegistrationToken, typing.Tuple[winrt.system.Int64]], /) -> None: ...
69
+ # Windows.Foundation.EventRegistrationToken Windows.System.Power.ForegroundEnergyManager::add_RecentEnergyUsageReturnedToLow(Windows.Foundation.EventHandler`1<System.Object>)
70
+ # @deprecated("Foreground Energy Manager has been deprecated. For more info, see MSDN.")
71
+ def add_recent_energy_usage_returned_to_low(cls, handler: windows_foundation.EventHandler[winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
72
+ # System.Void Windows.System.Power.ForegroundEnergyManager::remove_RecentEnergyUsageReturnedToLow(Windows.Foundation.EventRegistrationToken)
73
+ # @deprecated("Foreground Energy Manager has been deprecated. For more info, see MSDN.")
74
+ def remove_recent_energy_usage_returned_to_low(cls, token: typing.Union[windows_foundation.EventRegistrationToken, typing.Tuple[winrt.system.Int64]], /) -> None: ...
75
+ # System.UInt32 Windows.System.Power.ForegroundEnergyManager::get_ExcessiveUsageLevel()
76
+ @_property
77
+ def excessive_usage_level(cls) -> winrt.system.UInt32: ...
78
+ # System.UInt32 Windows.System.Power.ForegroundEnergyManager::get_LowUsageLevel()
79
+ @_property
80
+ def low_usage_level(cls) -> winrt.system.UInt32: ...
81
+ # System.UInt32 Windows.System.Power.ForegroundEnergyManager::get_MaxAcceptableUsageLevel()
82
+ @_property
83
+ def max_acceptable_usage_level(cls) -> winrt.system.UInt32: ...
84
+ # System.UInt32 Windows.System.Power.ForegroundEnergyManager::get_NearMaxAcceptableUsageLevel()
85
+ @_property
86
+ def near_max_acceptable_usage_level(cls) -> winrt.system.UInt32: ...
87
+ # System.UInt32 Windows.System.Power.ForegroundEnergyManager::get_RecentEnergyUsage()
88
+ @_property
89
+ def recent_energy_usage(cls) -> winrt.system.UInt32: ...
90
+ # System.UInt32 Windows.System.Power.ForegroundEnergyManager::get_RecentEnergyUsageLevel()
91
+ @_property
92
+ def recent_energy_usage_level(cls) -> winrt.system.UInt32: ...
93
+
94
+ @typing.final
95
+ class ForegroundEnergyManager(winrt.system.Object, metaclass=ForegroundEnergyManager_Static):
96
+ pass
97
+
98
+ @typing.final
99
+ class PowerManager_Static(winrt._winrt.IInspectable_Static):
100
+ # Windows.Foundation.EventRegistrationToken Windows.System.Power.PowerManager::add_BatteryStatusChanged(Windows.Foundation.EventHandler`1<System.Object>)
101
+ def add_battery_status_changed(cls, handler: windows_foundation.EventHandler[winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
102
+ # System.Void Windows.System.Power.PowerManager::remove_BatteryStatusChanged(Windows.Foundation.EventRegistrationToken)
103
+ def remove_battery_status_changed(cls, token: typing.Union[windows_foundation.EventRegistrationToken, typing.Tuple[winrt.system.Int64]], /) -> None: ...
104
+ # Windows.Foundation.EventRegistrationToken Windows.System.Power.PowerManager::add_EnergySaverStatusChanged(Windows.Foundation.EventHandler`1<System.Object>)
105
+ def add_energy_saver_status_changed(cls, handler: windows_foundation.EventHandler[winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
106
+ # System.Void Windows.System.Power.PowerManager::remove_EnergySaverStatusChanged(Windows.Foundation.EventRegistrationToken)
107
+ def remove_energy_saver_status_changed(cls, token: typing.Union[windows_foundation.EventRegistrationToken, typing.Tuple[winrt.system.Int64]], /) -> None: ...
108
+ # Windows.Foundation.EventRegistrationToken Windows.System.Power.PowerManager::add_PowerSupplyStatusChanged(Windows.Foundation.EventHandler`1<System.Object>)
109
+ def add_power_supply_status_changed(cls, handler: windows_foundation.EventHandler[winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
110
+ # System.Void Windows.System.Power.PowerManager::remove_PowerSupplyStatusChanged(Windows.Foundation.EventRegistrationToken)
111
+ def remove_power_supply_status_changed(cls, token: typing.Union[windows_foundation.EventRegistrationToken, typing.Tuple[winrt.system.Int64]], /) -> None: ...
112
+ # Windows.Foundation.EventRegistrationToken Windows.System.Power.PowerManager::add_RemainingChargePercentChanged(Windows.Foundation.EventHandler`1<System.Object>)
113
+ def add_remaining_charge_percent_changed(cls, handler: windows_foundation.EventHandler[winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
114
+ # System.Void Windows.System.Power.PowerManager::remove_RemainingChargePercentChanged(Windows.Foundation.EventRegistrationToken)
115
+ def remove_remaining_charge_percent_changed(cls, token: typing.Union[windows_foundation.EventRegistrationToken, typing.Tuple[winrt.system.Int64]], /) -> None: ...
116
+ # Windows.Foundation.EventRegistrationToken Windows.System.Power.PowerManager::add_RemainingDischargeTimeChanged(Windows.Foundation.EventHandler`1<System.Object>)
117
+ def add_remaining_discharge_time_changed(cls, handler: windows_foundation.EventHandler[winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
118
+ # System.Void Windows.System.Power.PowerManager::remove_RemainingDischargeTimeChanged(Windows.Foundation.EventRegistrationToken)
119
+ def remove_remaining_discharge_time_changed(cls, token: typing.Union[windows_foundation.EventRegistrationToken, typing.Tuple[winrt.system.Int64]], /) -> None: ...
120
+ # Windows.System.Power.BatteryStatus Windows.System.Power.PowerManager::get_BatteryStatus()
121
+ @_property
122
+ def battery_status(cls) -> BatteryStatus: ...
123
+ # Windows.System.Power.EnergySaverStatus Windows.System.Power.PowerManager::get_EnergySaverStatus()
124
+ @_property
125
+ def energy_saver_status(cls) -> EnergySaverStatus: ...
126
+ # Windows.System.Power.PowerSupplyStatus Windows.System.Power.PowerManager::get_PowerSupplyStatus()
127
+ @_property
128
+ def power_supply_status(cls) -> PowerSupplyStatus: ...
129
+ # System.Int32 Windows.System.Power.PowerManager::get_RemainingChargePercent()
130
+ @_property
131
+ def remaining_charge_percent(cls) -> winrt.system.Int32: ...
132
+ # Windows.Foundation.TimeSpan Windows.System.Power.PowerManager::get_RemainingDischargeTime()
133
+ @_property
134
+ def remaining_discharge_time(cls) -> datetime.timedelta: ...
135
+
136
+ @typing.final
137
+ class PowerManager(winrt.system.Object, metaclass=PowerManager_Static):
138
+ pass
139
+
@@ -0,0 +1,36 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.2.1
2
+
3
+ import enum
4
+
5
+ import winrt.system
6
+ from winrt._winrt_windows_system_power import (
7
+ BackgroundEnergyManager,
8
+ ForegroundEnergyManager,
9
+ PowerManager,
10
+ )
11
+
12
+ __all__ = [
13
+ "BatteryStatus",
14
+ "EnergySaverStatus",
15
+ "PowerSupplyStatus",
16
+ "BackgroundEnergyManager",
17
+ "ForegroundEnergyManager",
18
+ "PowerManager",
19
+ ]
20
+
21
+ class BatteryStatus(enum.IntEnum):
22
+ NOT_PRESENT = 0
23
+ DISCHARGING = 1
24
+ IDLE = 2
25
+ CHARGING = 3
26
+
27
+ class EnergySaverStatus(enum.IntEnum):
28
+ DISABLED = 0
29
+ OFF = 1
30
+ ON = 2
31
+
32
+ class PowerSupplyStatus(enum.IntEnum):
33
+ NOT_PRESENT = 0
34
+ INADEQUATE = 1
35
+ ADEQUATE = 2
36
+
File without changes
@@ -0,0 +1,25 @@
1
+ Metadata-Version: 2.4
2
+ Name: winrt-Windows.System.Power
3
+ Version: 3.2.1
4
+ Summary: Python projection of Windows Runtime (WinRT) APIs
5
+ License-Expression: 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.9
14
+ Description-Content-Type: text/markdown
15
+ Requires-Dist: winrt-runtime~=3.2.1.0
16
+ Provides-Extra: all
17
+ Requires-Dist: winrt-Windows.Foundation[all]~=3.2.1.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.cp314-win32.pyd,sha256=u2oRcGne3LefdCEZVz9xiKS4gwPO5cnNvc98hW4AV_I,82432
2
+ winrt/_winrt_windows_system_power.pyi,sha256=Y7MQLdgLgZ2qaK06vhGTzGiTEEsA4pEanYBk17EF7K8,10734
3
+ winrt/windows/system/power/__init__.py,sha256=BknJz8KF0SyzPo3oEh3oRF9DmkfJn8mUCbcOQWZEhss,691
4
+ winrt/windows/system/power/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
+ winrt_windows_system_power-3.2.1.dist-info/METADATA,sha256=YMEVtPnPoMGHIVQmonOIPe4dE8S9h4_Pw-JYY5D-QKU,1037
6
+ winrt_windows_system_power-3.2.1.dist-info/WHEEL,sha256=avp3B09fSRXVHn4cshTNKc58MtFVN-cVe0NyrqeYT2s,97
7
+ winrt_windows_system_power-3.2.1.dist-info/top_level.txt,sha256=BzwQb4dZRt0NxCXi10ARjWsox7Asmtf_lXrw_KR-D_E,6
8
+ winrt_windows_system_power-3.2.1.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (80.9.0)
3
+ Root-Is-Purelib: false
4
+ Tag: cp314-cp314-win32
5
+