winrt-Windows.System.Diagnostics.DevicePortal 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
+ "DevicePortalConnectionClosedReason",
10
+ "DevicePortalConnection",
11
+ "DevicePortalConnectionClosedEventArgs",
12
+ "DevicePortalConnectionRequestReceivedEventArgs",
13
+ ]
14
+
15
+ winrt.runtime._internals.alias_method(DevicePortalConnection, "get_server_message_web_socket_for_request2", "get_server_message_web_socket_for_request")
16
+ winrt.runtime._internals.alias_method(DevicePortalConnection, "get_server_message_web_socket_for_request3", "get_server_message_web_socket_for_request")
17
+ winrt.runtime._internals.alias_method(DevicePortalConnection, "get_server_stream_web_socket_for_request2", "get_server_stream_web_socket_for_request")
@@ -0,0 +1,102 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT
2
+
3
+ import collections.abc as _cabc
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.applicationmodel.appservice as windows_applicationmodel_appservice
11
+ import winrt.windows.foundation as windows_foundation
12
+ import winrt.windows.foundation.collections as windows_foundation_collections
13
+ import winrt.windows.networking.sockets as windows_networking_sockets
14
+ import winrt.windows.web.http as windows_web_http
15
+
16
+ __all__ = [
17
+ "DevicePortalConnectionClosedReason",
18
+ "DevicePortalConnection",
19
+ "DevicePortalConnectionClosedEventArgs",
20
+ "DevicePortalConnectionRequestReceivedEventArgs",
21
+ ]
22
+
23
+ class DevicePortalConnectionClosedReason(enum.IntEnum):
24
+ UNKNOWN = 0
25
+ RESOURCE_LIMITS_EXCEEDED = 1
26
+ PROTOCOL_ERROR = 2
27
+ NOT_AUTHORIZED = 3
28
+ USER_NOT_PRESENT = 4
29
+ SERVICE_TERMINATED = 5
30
+
31
+ @typing.final
32
+ class DevicePortalConnection_Static(winrt.system.Object_Static):
33
+ # Windows.System.Diagnostics.DevicePortal.DevicePortalConnection Windows.System.Diagnostics.DevicePortal.DevicePortalConnection::GetForAppServiceConnection(Windows.ApplicationModel.AppService.AppServiceConnection)
34
+ def get_for_app_service_connection(cls, app_service_connection: windows_applicationmodel_appservice.AppServiceConnection, /) -> DevicePortalConnection: ...
35
+
36
+ @typing.final
37
+ class DevicePortalConnection(winrt.system.Object, metaclass=DevicePortalConnection_Static):
38
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
39
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
40
+ @typing.overload
41
+ # Windows.Networking.Sockets.ServerMessageWebSocket Windows.System.Diagnostics.DevicePortal.DevicePortalConnection::GetServerMessageWebSocketForRequest(Windows.Web.Http.HttpRequestMessage)
42
+ def get_server_message_web_socket_for_request(self, request: windows_web_http.HttpRequestMessage, /) -> windows_networking_sockets.ServerMessageWebSocket: ...
43
+ @typing.overload
44
+ # Windows.Networking.Sockets.ServerMessageWebSocket Windows.System.Diagnostics.DevicePortal.DevicePortalConnection::GetServerMessageWebSocketForRequest(Windows.Web.Http.HttpRequestMessage,Windows.Networking.Sockets.SocketMessageType,System.String)
45
+ def get_server_message_web_socket_for_request(self, request: windows_web_http.HttpRequestMessage, message_type: windows_networking_sockets.SocketMessageType, protocol: str, /) -> windows_networking_sockets.ServerMessageWebSocket: ...
46
+ @typing.overload
47
+ # Windows.Networking.Sockets.ServerMessageWebSocket Windows.System.Diagnostics.DevicePortal.DevicePortalConnection::GetServerMessageWebSocketForRequest(Windows.Web.Http.HttpRequestMessage,Windows.Networking.Sockets.SocketMessageType,System.String,System.UInt32,System.UInt32,Windows.Networking.Sockets.MessageWebSocketReceiveMode)
48
+ def get_server_message_web_socket_for_request(self, request: windows_web_http.HttpRequestMessage, message_type: windows_networking_sockets.SocketMessageType, protocol: str, outbound_buffer_size_in_bytes: winrt.system.UInt32 | typing.SupportsIndex, max_message_size: winrt.system.UInt32 | typing.SupportsIndex, receive_mode: windows_networking_sockets.MessageWebSocketReceiveMode, /) -> windows_networking_sockets.ServerMessageWebSocket: ...
49
+ # Deprecated alias of get_server_message_web_socket_for_request() for pywinrt v3.x compatibility.
50
+ # Windows.Networking.Sockets.ServerMessageWebSocket Windows.System.Diagnostics.DevicePortal.DevicePortalConnection::GetServerMessageWebSocketForRequest(Windows.Web.Http.HttpRequestMessage,Windows.Networking.Sockets.SocketMessageType,System.String)
51
+ @deprecated("Use get_server_message_web_socket_for_request() instead.")
52
+ def get_server_message_web_socket_for_request2(self, request: windows_web_http.HttpRequestMessage, message_type: windows_networking_sockets.SocketMessageType, protocol: str, /) -> windows_networking_sockets.ServerMessageWebSocket: ...
53
+ # Deprecated alias of get_server_message_web_socket_for_request() for pywinrt v3.x compatibility.
54
+ # Windows.Networking.Sockets.ServerMessageWebSocket Windows.System.Diagnostics.DevicePortal.DevicePortalConnection::GetServerMessageWebSocketForRequest(Windows.Web.Http.HttpRequestMessage,Windows.Networking.Sockets.SocketMessageType,System.String,System.UInt32,System.UInt32,Windows.Networking.Sockets.MessageWebSocketReceiveMode)
55
+ @deprecated("Use get_server_message_web_socket_for_request() instead.")
56
+ def get_server_message_web_socket_for_request3(self, request: windows_web_http.HttpRequestMessage, message_type: windows_networking_sockets.SocketMessageType, protocol: str, outbound_buffer_size_in_bytes: winrt.system.UInt32 | typing.SupportsIndex, max_message_size: winrt.system.UInt32 | typing.SupportsIndex, receive_mode: windows_networking_sockets.MessageWebSocketReceiveMode, /) -> windows_networking_sockets.ServerMessageWebSocket: ...
57
+ @typing.overload
58
+ # Windows.Networking.Sockets.ServerStreamWebSocket Windows.System.Diagnostics.DevicePortal.DevicePortalConnection::GetServerStreamWebSocketForRequest(Windows.Web.Http.HttpRequestMessage)
59
+ def get_server_stream_web_socket_for_request(self, request: windows_web_http.HttpRequestMessage, /) -> windows_networking_sockets.ServerStreamWebSocket: ...
60
+ @typing.overload
61
+ # Windows.Networking.Sockets.ServerStreamWebSocket Windows.System.Diagnostics.DevicePortal.DevicePortalConnection::GetServerStreamWebSocketForRequest(Windows.Web.Http.HttpRequestMessage,System.String,System.UInt32,System.Boolean)
62
+ def get_server_stream_web_socket_for_request(self, request: windows_web_http.HttpRequestMessage, protocol: str, outbound_buffer_size_in_bytes: winrt.system.UInt32 | typing.SupportsIndex, no_delay: bool, /) -> windows_networking_sockets.ServerStreamWebSocket: ...
63
+ # Deprecated alias of get_server_stream_web_socket_for_request() for pywinrt v3.x compatibility.
64
+ # Windows.Networking.Sockets.ServerStreamWebSocket Windows.System.Diagnostics.DevicePortal.DevicePortalConnection::GetServerStreamWebSocketForRequest(Windows.Web.Http.HttpRequestMessage,System.String,System.UInt32,System.Boolean)
65
+ @deprecated("Use get_server_stream_web_socket_for_request() instead.")
66
+ def get_server_stream_web_socket_for_request2(self, request: windows_web_http.HttpRequestMessage, protocol: str, outbound_buffer_size_in_bytes: winrt.system.UInt32 | typing.SupportsIndex, no_delay: bool, /) -> windows_networking_sockets.ServerStreamWebSocket: ...
67
+ # Windows.Foundation.EventRegistrationToken Windows.System.Diagnostics.DevicePortal.DevicePortalConnection::add_Closed(Windows.Foundation.TypedEventHandler`2<Windows.System.Diagnostics.DevicePortal.DevicePortalConnection,Windows.System.Diagnostics.DevicePortal.DevicePortalConnectionClosedEventArgs>)
68
+ def add_closed(self, handler: windows_foundation.TypedEventHandler[DevicePortalConnection, DevicePortalConnectionClosedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
69
+ # System.Void Windows.System.Diagnostics.DevicePortal.DevicePortalConnection::remove_Closed(Windows.Foundation.EventRegistrationToken)
70
+ def remove_closed(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
71
+ # Windows.Foundation.EventRegistrationToken Windows.System.Diagnostics.DevicePortal.DevicePortalConnection::add_RequestReceived(Windows.Foundation.TypedEventHandler`2<Windows.System.Diagnostics.DevicePortal.DevicePortalConnection,Windows.System.Diagnostics.DevicePortal.DevicePortalConnectionRequestReceivedEventArgs>)
72
+ def add_request_received(self, handler: windows_foundation.TypedEventHandler[DevicePortalConnection, DevicePortalConnectionRequestReceivedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
73
+ # System.Void Windows.System.Diagnostics.DevicePortal.DevicePortalConnection::remove_RequestReceived(Windows.Foundation.EventRegistrationToken)
74
+ def remove_request_received(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
75
+
76
+ @typing.final
77
+ class DevicePortalConnectionClosedEventArgs(winrt.system.Object):
78
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
79
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
80
+ # Windows.System.Diagnostics.DevicePortal.DevicePortalConnectionClosedReason Windows.System.Diagnostics.DevicePortal.DevicePortalConnectionClosedEventArgs::get_Reason()
81
+ @_property
82
+ def reason(self) -> DevicePortalConnectionClosedReason: ...
83
+
84
+ @typing.final
85
+ class DevicePortalConnectionRequestReceivedEventArgs(winrt.system.Object):
86
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
87
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
88
+ # Windows.Foundation.Deferral Windows.System.Diagnostics.DevicePortal.DevicePortalConnectionRequestReceivedEventArgs::GetDeferral()
89
+ def get_deferral(self) -> windows_foundation.Deferral: ...
90
+ # Windows.Web.Http.HttpRequestMessage Windows.System.Diagnostics.DevicePortal.DevicePortalConnectionRequestReceivedEventArgs::get_RequestMessage()
91
+ @_property
92
+ def request_message(self) -> windows_web_http.HttpRequestMessage: ...
93
+ # Windows.Web.Http.HttpResponseMessage Windows.System.Diagnostics.DevicePortal.DevicePortalConnectionRequestReceivedEventArgs::get_ResponseMessage()
94
+ @_property
95
+ def response_message(self) -> windows_web_http.HttpResponseMessage: ...
96
+ # System.Boolean Windows.System.Diagnostics.DevicePortal.DevicePortalConnectionRequestReceivedEventArgs::get_IsWebSocketUpgradeRequest()
97
+ @_property
98
+ def is_web_socket_upgrade_request(self) -> bool: ...
99
+ # Windows.Foundation.Collections.IVectorView`1<System.String> Windows.System.Diagnostics.DevicePortal.DevicePortalConnectionRequestReceivedEventArgs::get_WebSocketProtocolsRequested()
100
+ @_property
101
+ def web_socket_protocols_requested(self) -> _cabc.Sequence[str]: ...
102
+
File without changes
@@ -0,0 +1,49 @@
1
+ Metadata-Version: 2.5
2
+ Name: winrt-Windows.System.Diagnostics.DevicePortal
3
+ Version: 4!10.0.28000.2705
4
+ Summary: PyWinRT projection of the Windows.System.Diagnostics.DevicePortal 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-applicationmodel-appservice[all]>=4!10.0.28000.2705; extra == 'all'
27
+ Requires-Dist: winrt-windows-foundation-collections[all]>=4!10.0.28000.2705; extra == 'all'
28
+ Requires-Dist: winrt-windows-foundation[all]>=4!10.0.28000.2705; extra == 'all'
29
+ Requires-Dist: winrt-windows-networking-sockets[all]>=4!10.0.28000.2705; extra == 'all'
30
+ Requires-Dist: winrt-windows-web-http[all]>=4!10.0.28000.2705; extra == 'all'
31
+ Description-Content-Type: text/markdown
32
+
33
+ <!-- warning: Please don't edit this file. It was automatically generated. -->
34
+
35
+ # winrt-Windows.System.Diagnostics.DevicePortal
36
+
37
+ Windows Runtime (WinRT) APIs for the `Windows.System.Diagnostics.DevicePortal` namespace.
38
+
39
+ This package provides the `winrt.windows.system.diagnostics.deviceportal` module.
40
+
41
+ The WinRT APIs in it are those of version 10.0.28000.2705 of the
42
+ `Microsoft.Windows.SDK.CPP` NuGet package.
43
+
44
+ ```
45
+ pip install winrt-Windows.System.Diagnostics.DevicePortal
46
+ ```
47
+
48
+ Other WinRT namespaces are packages of their own, so install the package of
49
+ each namespace your code imports from.
@@ -0,0 +1,8 @@
1
+ winrt/windows/system/diagnostics/deviceportal/__init__.py,sha256=ymNi0G0V7Q46dK07-S-QODCGj1csduSvWhFR8IONGU8,822
2
+ winrt/windows/system/diagnostics/deviceportal/__init__.pyi,sha256=P3JFmgbwvIWcrhRg3qewWsd61rq_aVGozP1JGgJ0cSA,10042
3
+ winrt/windows/system/diagnostics/deviceportal/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ winrt/windows/system/diagnostics/deviceportal/_table.pywinrt,sha256=ez7H3244WMooyutoHgqqIrZTdsSsc0eqsmXisPtjptU,9664
5
+ winrt_windows_system_diagnostics_deviceportal-4!10.0.28000.2705.dist-info/METADATA,sha256=kCGJDi_Yt5iQVHYW_z098QiDINJBQfR5JZyBUciKDnE,2306
6
+ winrt_windows_system_diagnostics_deviceportal-4!10.0.28000.2705.dist-info/WHEEL,sha256=W3fkpkm7-wf9vBI5Z-7s0eWkeM-spu78I8Neb98DeEg,87
7
+ winrt_windows_system_diagnostics_deviceportal-4!10.0.28000.2705.dist-info/licenses/LICENSE,sha256=dyVKOMqPV0fimbzMhqN3zpg6K6Y2OlekwrdfiZTBm8M,1225
8
+ winrt_windows_system_diagnostics_deviceportal-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