winrt-Windows.System.Update 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
+ "SystemUpdateAttentionRequiredReason",
10
+ "SystemUpdateItemState",
11
+ "SystemUpdateManagerState",
12
+ "SystemUpdateStartInstallAction",
13
+ "SystemUpdateItem",
14
+ "SystemUpdateLastErrorInfo",
15
+ "SystemUpdateManager",
16
+ ]
17
+
@@ -0,0 +1,168 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT
2
+
3
+ import collections.abc as _cabc
4
+ import datetime
5
+ import enum
6
+ import typing
7
+ from builtins import property as _property
8
+
9
+ import winrt.system
10
+ import winrt.windows.foundation as windows_foundation
11
+ import winrt.windows.foundation.collections as windows_foundation_collections
12
+
13
+ __all__ = [
14
+ "SystemUpdateAttentionRequiredReason",
15
+ "SystemUpdateItemState",
16
+ "SystemUpdateManagerState",
17
+ "SystemUpdateStartInstallAction",
18
+ "SystemUpdateItem",
19
+ "SystemUpdateLastErrorInfo",
20
+ "SystemUpdateManager",
21
+ ]
22
+
23
+ class SystemUpdateAttentionRequiredReason(enum.IntEnum):
24
+ NONE = 0
25
+ NETWORK_REQUIRED = 1
26
+ INSUFFICIENT_DISK_SPACE = 2
27
+ INSUFFICIENT_BATTERY = 3
28
+ UPDATE_BLOCKED = 4
29
+
30
+ class SystemUpdateItemState(enum.IntEnum):
31
+ NOT_STARTED = 0
32
+ INITIALIZING = 1
33
+ PREPARING = 2
34
+ CALCULATING = 3
35
+ DOWNLOADING = 4
36
+ INSTALLING = 5
37
+ COMPLETED = 6
38
+ REBOOT_REQUIRED = 7
39
+ ERROR = 8
40
+
41
+ class SystemUpdateManagerState(enum.IntEnum):
42
+ IDLE = 0
43
+ DETECTING = 1
44
+ READY_TO_DOWNLOAD = 2
45
+ DOWNLOADING = 3
46
+ READY_TO_INSTALL = 4
47
+ INSTALLING = 5
48
+ REBOOT_REQUIRED = 6
49
+ READY_TO_FINALIZE = 7
50
+ FINALIZING = 8
51
+ COMPLETED = 9
52
+ ATTENTION_REQUIRED = 10
53
+ ERROR = 11
54
+
55
+ class SystemUpdateStartInstallAction(enum.IntEnum):
56
+ UP_TO_REBOOT = 0
57
+ ALLOW_REBOOT = 1
58
+
59
+ @typing.final
60
+ class SystemUpdateItem(winrt.system.Object):
61
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
62
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
63
+ # System.String Windows.System.Update.SystemUpdateItem::get_Description()
64
+ @_property
65
+ def description(self) -> str: ...
66
+ # System.Double Windows.System.Update.SystemUpdateItem::get_DownloadProgress()
67
+ @_property
68
+ def download_progress(self) -> winrt.system.Double: ...
69
+ # Windows.Foundation.HResult Windows.System.Update.SystemUpdateItem::get_ExtendedError()
70
+ @_property
71
+ def extended_error(self) -> windows_foundation.HResult: ...
72
+ # System.String Windows.System.Update.SystemUpdateItem::get_Id()
73
+ @_property
74
+ def id(self) -> str: ...
75
+ # System.Double Windows.System.Update.SystemUpdateItem::get_InstallProgress()
76
+ @_property
77
+ def install_progress(self) -> winrt.system.Double: ...
78
+ # System.UInt32 Windows.System.Update.SystemUpdateItem::get_Revision()
79
+ @_property
80
+ def revision(self) -> winrt.system.UInt32: ...
81
+ # Windows.System.Update.SystemUpdateItemState Windows.System.Update.SystemUpdateItem::get_State()
82
+ @_property
83
+ def state(self) -> SystemUpdateItemState: ...
84
+ # System.String Windows.System.Update.SystemUpdateItem::get_Title()
85
+ @_property
86
+ def title(self) -> str: ...
87
+
88
+ @typing.final
89
+ class SystemUpdateLastErrorInfo(winrt.system.Object):
90
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
91
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
92
+ # Windows.Foundation.HResult Windows.System.Update.SystemUpdateLastErrorInfo::get_ExtendedError()
93
+ @_property
94
+ def extended_error(self) -> windows_foundation.HResult: ...
95
+ # System.Boolean Windows.System.Update.SystemUpdateLastErrorInfo::get_IsInteractive()
96
+ @_property
97
+ def is_interactive(self) -> bool: ...
98
+ # Windows.System.Update.SystemUpdateManagerState Windows.System.Update.SystemUpdateLastErrorInfo::get_State()
99
+ @_property
100
+ def state(self) -> SystemUpdateManagerState: ...
101
+
102
+ @typing.final
103
+ class SystemUpdateManager_Static(winrt.system.Object_Static):
104
+ # Windows.Foundation.IAsyncOperation`1<System.Boolean> Windows.System.Update.SystemUpdateManager::BlockAutomaticRebootAsync(System.String)
105
+ def block_automatic_reboot_async(cls, lock_id: str, /) -> windows_foundation.IAsyncOperation[bool]: ...
106
+ # Windows.Foundation.Collections.IVectorView`1<System.String> Windows.System.Update.SystemUpdateManager::GetAutomaticRebootBlockIds()
107
+ def get_automatic_reboot_block_ids(cls) -> _cabc.Sequence[str]: ...
108
+ # System.String Windows.System.Update.SystemUpdateManager::GetFlightRing()
109
+ def get_flight_ring(cls) -> str: ...
110
+ # Windows.Foundation.Collections.IVectorView`1<Windows.System.Update.SystemUpdateItem> Windows.System.Update.SystemUpdateManager::GetUpdateItems()
111
+ def get_update_items(cls) -> _cabc.Sequence[SystemUpdateItem]: ...
112
+ # System.Boolean Windows.System.Update.SystemUpdateManager::IsSupported()
113
+ def is_supported(cls) -> bool: ...
114
+ # System.Void Windows.System.Update.SystemUpdateManager::RebootToCompleteInstall()
115
+ def reboot_to_complete_install(cls) -> None: ...
116
+ # System.Boolean Windows.System.Update.SystemUpdateManager::SetFlightRing(System.String)
117
+ def set_flight_ring(cls, flight_ring: str, /) -> bool: ...
118
+ # System.Void Windows.System.Update.SystemUpdateManager::StartCancelUpdates()
119
+ def start_cancel_updates(cls) -> None: ...
120
+ # System.Void Windows.System.Update.SystemUpdateManager::StartInstall(Windows.System.Update.SystemUpdateStartInstallAction)
121
+ def start_install(cls, action: SystemUpdateStartInstallAction, /) -> None: ...
122
+ # System.Boolean Windows.System.Update.SystemUpdateManager::TrySetUserActiveHours(Windows.Foundation.TimeSpan,Windows.Foundation.TimeSpan)
123
+ def try_set_user_active_hours(cls, start: datetime.timedelta, end: datetime.timedelta, /) -> bool: ...
124
+ # Windows.Foundation.IAsyncOperation`1<System.Boolean> Windows.System.Update.SystemUpdateManager::UnblockAutomaticRebootAsync(System.String)
125
+ def unblock_automatic_reboot_async(cls, lock_id: str, /) -> windows_foundation.IAsyncOperation[bool]: ...
126
+ # Windows.Foundation.EventRegistrationToken Windows.System.Update.SystemUpdateManager::add_StateChanged(Windows.Foundation.EventHandler`1<System.Object>)
127
+ def add_state_changed(cls, handler: windows_foundation.EventHandler[winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
128
+ # System.Void Windows.System.Update.SystemUpdateManager::remove_StateChanged(Windows.Foundation.EventRegistrationToken)
129
+ def remove_state_changed(cls, token: windows_foundation.EventRegistrationToken, /) -> None: ...
130
+ # Windows.System.Update.SystemUpdateAttentionRequiredReason Windows.System.Update.SystemUpdateManager::get_AttentionRequiredReason()
131
+ @_property
132
+ def attention_required_reason(cls) -> SystemUpdateAttentionRequiredReason: ...
133
+ # System.Double Windows.System.Update.SystemUpdateManager::get_DownloadProgress()
134
+ @_property
135
+ def download_progress(cls) -> winrt.system.Double: ...
136
+ # Windows.Foundation.HResult Windows.System.Update.SystemUpdateManager::get_ExtendedError()
137
+ @_property
138
+ def extended_error(cls) -> windows_foundation.HResult: ...
139
+ # System.Double Windows.System.Update.SystemUpdateManager::get_InstallProgress()
140
+ @_property
141
+ def install_progress(cls) -> winrt.system.Double: ...
142
+ # Windows.System.Update.SystemUpdateLastErrorInfo Windows.System.Update.SystemUpdateManager::get_LastErrorInfo()
143
+ @_property
144
+ def last_error_info(cls) -> SystemUpdateLastErrorInfo: ...
145
+ # Windows.Foundation.DateTime Windows.System.Update.SystemUpdateManager::get_LastUpdateCheckTime()
146
+ @_property
147
+ def last_update_check_time(cls) -> datetime.datetime: ...
148
+ # Windows.Foundation.DateTime Windows.System.Update.SystemUpdateManager::get_LastUpdateInstallTime()
149
+ @_property
150
+ def last_update_install_time(cls) -> datetime.datetime: ...
151
+ # Windows.System.Update.SystemUpdateManagerState Windows.System.Update.SystemUpdateManager::get_State()
152
+ @_property
153
+ def state(cls) -> SystemUpdateManagerState: ...
154
+ # Windows.Foundation.TimeSpan Windows.System.Update.SystemUpdateManager::get_UserActiveHoursEnd()
155
+ @_property
156
+ def user_active_hours_end(cls) -> datetime.timedelta: ...
157
+ # System.Int32 Windows.System.Update.SystemUpdateManager::get_UserActiveHoursMax()
158
+ @_property
159
+ def user_active_hours_max(cls) -> winrt.system.Int32: ...
160
+ # Windows.Foundation.TimeSpan Windows.System.Update.SystemUpdateManager::get_UserActiveHoursStart()
161
+ @_property
162
+ def user_active_hours_start(cls) -> datetime.timedelta: ...
163
+
164
+ @typing.final
165
+ class SystemUpdateManager(winrt.system.Object, metaclass=SystemUpdateManager_Static):
166
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
167
+ """A class of static members only, so there is nothing to create."""
168
+
File without changes
@@ -0,0 +1,46 @@
1
+ Metadata-Version: 2.5
2
+ Name: winrt-Windows.System.Update
3
+ Version: 4!10.0.28000.2705
4
+ Summary: PyWinRT projection of the Windows.System.Update 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-collections>=4!10.0.28000.2705
24
+ Requires-Dist: winrt-windows-foundation>=4!10.0.28000.2705
25
+ Provides-Extra: all
26
+ Requires-Dist: winrt-windows-foundation-collections[all]>=4!10.0.28000.2705; extra == 'all'
27
+ Requires-Dist: winrt-windows-foundation[all]>=4!10.0.28000.2705; extra == 'all'
28
+ Description-Content-Type: text/markdown
29
+
30
+ <!-- warning: Please don't edit this file. It was automatically generated. -->
31
+
32
+ # winrt-Windows.System.Update
33
+
34
+ Windows Runtime (WinRT) APIs for the `Windows.System.Update` namespace.
35
+
36
+ This package provides the `winrt.windows.system.update` module.
37
+
38
+ The WinRT APIs in it are those of version 10.0.28000.2705 of the
39
+ `Microsoft.Windows.SDK.CPP` NuGet package.
40
+
41
+ ```
42
+ pip install winrt-Windows.System.Update
43
+ ```
44
+
45
+ Other WinRT namespaces are packages of their own, so install the package of
46
+ each namespace your code imports from.
@@ -0,0 +1,8 @@
1
+ winrt/windows/system/update/__init__.py,sha256=1H4rfLnF26d0nSpzt34KNs3YovB6Tq0xeQtLHUfEugo,420
2
+ winrt/windows/system/update/__init__.pyi,sha256=nrwml5719VXVvQDx1bK7tnXBwtVyetnCkwQ08HAQGd0,8406
3
+ winrt/windows/system/update/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ winrt/windows/system/update/_table.pywinrt,sha256=NgE6SLzmSNQPOjLXg8P32Ts8Ec6Vq_rEAnK1k6-5rcs,13232
5
+ winrt_windows_system_update-4!10.0.28000.2705.dist-info/METADATA,sha256=KY0wPZ1WatvaGOJjhhoiQyxSL2myT3odmbBDSZZrrow,1935
6
+ winrt_windows_system_update-4!10.0.28000.2705.dist-info/WHEEL,sha256=W3fkpkm7-wf9vBI5Z-7s0eWkeM-spu78I8Neb98DeEg,87
7
+ winrt_windows_system_update-4!10.0.28000.2705.dist-info/licenses/LICENSE,sha256=dyVKOMqPV0fimbzMhqN3zpg6K6Y2OlekwrdfiZTBm8M,1225
8
+ winrt_windows_system_update-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