winrt-Windows.System.Diagnostics.DevicePortal 2.3.0__tar.gz → 3.1.0__tar.gz

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.
Files changed (21) hide show
  1. {winrt_windows_system_diagnostics_deviceportal-2.3.0 → winrt_windows_system_diagnostics_deviceportal-3.1.0}/PKG-INFO +10 -10
  2. winrt_windows_system_diagnostics_deviceportal-3.1.0/all-requirements.txt +7 -0
  3. {winrt_windows_system_diagnostics_deviceportal-2.3.0 → winrt_windows_system_diagnostics_deviceportal-3.1.0}/py.Windows.System.Diagnostics.DevicePortal.cpp +152 -53
  4. {winrt_windows_system_diagnostics_deviceportal-2.3.0 → winrt_windows_system_diagnostics_deviceportal-3.1.0}/pyproject.toml +4 -4
  5. winrt_windows_system_diagnostics_deviceportal-3.1.0/pywinrt-version.txt +1 -0
  6. {winrt_windows_system_diagnostics_deviceportal-2.3.0 → winrt_windows_system_diagnostics_deviceportal-3.1.0}/requirements.txt +2 -2
  7. {winrt_windows_system_diagnostics_deviceportal-2.3.0 → winrt_windows_system_diagnostics_deviceportal-3.1.0}/setup.py +1 -1
  8. winrt_windows_system_diagnostics_deviceportal-3.1.0/winrt/_winrt_windows_system_diagnostics_deviceportal.pyi +70 -0
  9. {winrt_windows_system_diagnostics_deviceportal-2.3.0 → winrt_windows_system_diagnostics_deviceportal-3.1.0}/winrt/windows/system/diagnostics/deviceportal/__init__.py +6 -5
  10. {winrt_windows_system_diagnostics_deviceportal-2.3.0 → winrt_windows_system_diagnostics_deviceportal-3.1.0}/winrt_Windows.System.Diagnostics.DevicePortal.egg-info/PKG-INFO +10 -10
  11. winrt_windows_system_diagnostics_deviceportal-3.1.0/winrt_Windows.System.Diagnostics.DevicePortal.egg-info/requires.txt +8 -0
  12. winrt_windows_system_diagnostics_deviceportal-2.3.0/all-requirements.txt +0 -7
  13. winrt_windows_system_diagnostics_deviceportal-2.3.0/pywinrt-version.txt +0 -1
  14. winrt_windows_system_diagnostics_deviceportal-2.3.0/winrt/_winrt_windows_system_diagnostics_deviceportal.pyi +0 -65
  15. winrt_windows_system_diagnostics_deviceportal-2.3.0/winrt_Windows.System.Diagnostics.DevicePortal.egg-info/requires.txt +0 -8
  16. {winrt_windows_system_diagnostics_deviceportal-2.3.0 → winrt_windows_system_diagnostics_deviceportal-3.1.0}/README.md +0 -0
  17. {winrt_windows_system_diagnostics_deviceportal-2.3.0 → winrt_windows_system_diagnostics_deviceportal-3.1.0}/setup.cfg +0 -0
  18. {winrt_windows_system_diagnostics_deviceportal-2.3.0 → winrt_windows_system_diagnostics_deviceportal-3.1.0}/winrt/windows/system/diagnostics/deviceportal/py.typed +0 -0
  19. {winrt_windows_system_diagnostics_deviceportal-2.3.0 → winrt_windows_system_diagnostics_deviceportal-3.1.0}/winrt_Windows.System.Diagnostics.DevicePortal.egg-info/SOURCES.txt +0 -0
  20. {winrt_windows_system_diagnostics_deviceportal-2.3.0 → winrt_windows_system_diagnostics_deviceportal-3.1.0}/winrt_Windows.System.Diagnostics.DevicePortal.egg-info/dependency_links.txt +0 -0
  21. {winrt_windows_system_diagnostics_deviceportal-2.3.0 → winrt_windows_system_diagnostics_deviceportal-3.1.0}/winrt_Windows.System.Diagnostics.DevicePortal.egg-info/top_level.txt +0 -0
@@ -1,8 +1,8 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: winrt-Windows.System.Diagnostics.DevicePortal
3
- Version: 2.3.0
3
+ Version: 3.1.0
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
- License: MIT
5
+ License-Expression: MIT
6
6
  Project-URL: Documentation, https://pywinrt.readthedocs.io
7
7
  Project-URL: Repository, https://github.com/pywinrt/pywinrt
8
8
  Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
@@ -10,15 +10,15 @@ Classifier: Operating System :: Microsoft :: Windows
10
10
  Classifier: Programming Language :: Python :: 3
11
11
  Classifier: Programming Language :: Python :: Implementation :: CPython
12
12
  Classifier: Intended Audience :: Developers
13
- Requires-Python: <3.14,>=3.9
13
+ Requires-Python: >=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==2.3.0
15
+ Requires-Dist: winrt-runtime==3.1.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.ApplicationModel.AppService[all]==2.3.0; extra == "all"
18
- Requires-Dist: winrt-Windows.Foundation[all]==2.3.0; extra == "all"
19
- Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.3.0; extra == "all"
20
- Requires-Dist: winrt-Windows.Networking.Sockets[all]==2.3.0; extra == "all"
21
- Requires-Dist: winrt-Windows.Web.Http[all]==2.3.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.ApplicationModel.AppService[all]==3.1.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Foundation[all]==3.1.0; extra == "all"
19
+ Requires-Dist: winrt-Windows.Foundation.Collections[all]==3.1.0; extra == "all"
20
+ Requires-Dist: winrt-Windows.Networking.Sockets[all]==3.1.0; extra == "all"
21
+ Requires-Dist: winrt-Windows.Web.Http[all]==3.1.0; extra == "all"
22
22
 
23
23
  <!-- warning: Please don't edit this file. It was automatically generated. -->
24
24
 
@@ -0,0 +1,7 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.1.0
2
+
3
+ winrt-Windows.ApplicationModel.AppService[all]==3.1.0
4
+ winrt-Windows.Foundation[all]==3.1.0
5
+ winrt-Windows.Foundation.Collections[all]==3.1.0
6
+ winrt-Windows.Networking.Sockets[all]==3.1.0
7
+ winrt-Windows.Web.Http[all]==3.1.0
@@ -1,4 +1,4 @@
1
- // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
1
+ // WARNING: Please don't edit this file. It was generated by Python/WinRT v3.1.0
2
2
 
3
3
  #include "py.Windows.System.Diagnostics.DevicePortal.h"
4
4
 
@@ -23,7 +23,7 @@ namespace py::cpp::Windows::System::Diagnostics::DevicePortal
23
23
 
24
24
  static PyObject* DevicePortalConnection_GetForAppServiceConnection(PyObject* /*unused*/, PyObject* args) noexcept
25
25
  {
26
- auto arg_count = PyTuple_Size(args);
26
+ auto arg_count = PyTuple_GET_SIZE(args);
27
27
 
28
28
  if (arg_count == 1)
29
29
  {
@@ -44,7 +44,11 @@ namespace py::cpp::Windows::System::Diagnostics::DevicePortal
44
44
 
45
45
  auto param0 = py::convert_to<winrt::Windows::ApplicationModel::AppService::AppServiceConnection>(args, 0);
46
46
 
47
- return py::convert(winrt::Windows::System::Diagnostics::DevicePortal::DevicePortalConnection::GetForAppServiceConnection(param0));
47
+ return py::convert([&]()
48
+ {
49
+ auto _gil = release_gil();
50
+ return winrt::Windows::System::Diagnostics::DevicePortal::DevicePortalConnection::GetForAppServiceConnection(param0);
51
+ }());
48
52
  }
49
53
  catch (...)
50
54
  {
@@ -61,7 +65,7 @@ namespace py::cpp::Windows::System::Diagnostics::DevicePortal
61
65
 
62
66
  static PyObject* DevicePortalConnection_GetServerMessageWebSocketForRequest(py::wrapper::Windows::System::Diagnostics::DevicePortal::DevicePortalConnection* self, PyObject* args) noexcept
63
67
  {
64
- auto arg_count = PyTuple_Size(args);
68
+ auto arg_count = PyTuple_GET_SIZE(args);
65
69
 
66
70
  if (arg_count == 1)
67
71
  {
@@ -82,7 +86,11 @@ namespace py::cpp::Windows::System::Diagnostics::DevicePortal
82
86
 
83
87
  auto param0 = py::convert_to<winrt::Windows::Web::Http::HttpRequestMessage>(args, 0);
84
88
 
85
- return py::convert(self->obj.GetServerMessageWebSocketForRequest(param0));
89
+ return py::convert([&]()
90
+ {
91
+ auto _gil = release_gil();
92
+ return self->obj.GetServerMessageWebSocketForRequest(param0);
93
+ }());
86
94
  }
87
95
  catch (...)
88
96
  {
@@ -90,7 +98,18 @@ namespace py::cpp::Windows::System::Diagnostics::DevicePortal
90
98
  return nullptr;
91
99
  }
92
100
  }
93
- else if (arg_count == 3)
101
+ else
102
+ {
103
+ py::set_invalid_arg_count_error(arg_count);
104
+ return nullptr;
105
+ }
106
+ }
107
+
108
+ static PyObject* DevicePortalConnection_GetServerMessageWebSocketForRequest2(py::wrapper::Windows::System::Diagnostics::DevicePortal::DevicePortalConnection* self, PyObject* args) noexcept
109
+ {
110
+ auto arg_count = PyTuple_GET_SIZE(args);
111
+
112
+ if (arg_count == 3)
94
113
  {
95
114
  try
96
115
  {
@@ -111,7 +130,11 @@ namespace py::cpp::Windows::System::Diagnostics::DevicePortal
111
130
  auto param1 = py::convert_to<winrt::Windows::Networking::Sockets::SocketMessageType>(args, 1);
112
131
  auto param2 = py::convert_to<winrt::hstring>(args, 2);
113
132
 
114
- return py::convert(self->obj.GetServerMessageWebSocketForRequest(param0, param1, param2));
133
+ return py::convert([&]()
134
+ {
135
+ auto _gil = release_gil();
136
+ return self->obj.GetServerMessageWebSocketForRequest(param0, param1, param2);
137
+ }());
115
138
  }
116
139
  catch (...)
117
140
  {
@@ -119,7 +142,18 @@ namespace py::cpp::Windows::System::Diagnostics::DevicePortal
119
142
  return nullptr;
120
143
  }
121
144
  }
122
- else if (arg_count == 6)
145
+ else
146
+ {
147
+ py::set_invalid_arg_count_error(arg_count);
148
+ return nullptr;
149
+ }
150
+ }
151
+
152
+ static PyObject* DevicePortalConnection_GetServerMessageWebSocketForRequest3(py::wrapper::Windows::System::Diagnostics::DevicePortal::DevicePortalConnection* self, PyObject* args) noexcept
153
+ {
154
+ auto arg_count = PyTuple_GET_SIZE(args);
155
+
156
+ if (arg_count == 6)
123
157
  {
124
158
  try
125
159
  {
@@ -143,7 +177,11 @@ namespace py::cpp::Windows::System::Diagnostics::DevicePortal
143
177
  auto param4 = py::convert_to<uint32_t>(args, 4);
144
178
  auto param5 = py::convert_to<winrt::Windows::Networking::Sockets::MessageWebSocketReceiveMode>(args, 5);
145
179
 
146
- return py::convert(self->obj.GetServerMessageWebSocketForRequest(param0, param1, param2, param3, param4, param5));
180
+ return py::convert([&]()
181
+ {
182
+ auto _gil = release_gil();
183
+ return self->obj.GetServerMessageWebSocketForRequest(param0, param1, param2, param3, param4, param5);
184
+ }());
147
185
  }
148
186
  catch (...)
149
187
  {
@@ -160,7 +198,7 @@ namespace py::cpp::Windows::System::Diagnostics::DevicePortal
160
198
 
161
199
  static PyObject* DevicePortalConnection_GetServerStreamWebSocketForRequest(py::wrapper::Windows::System::Diagnostics::DevicePortal::DevicePortalConnection* self, PyObject* args) noexcept
162
200
  {
163
- auto arg_count = PyTuple_Size(args);
201
+ auto arg_count = PyTuple_GET_SIZE(args);
164
202
 
165
203
  if (arg_count == 1)
166
204
  {
@@ -181,7 +219,11 @@ namespace py::cpp::Windows::System::Diagnostics::DevicePortal
181
219
 
182
220
  auto param0 = py::convert_to<winrt::Windows::Web::Http::HttpRequestMessage>(args, 0);
183
221
 
184
- return py::convert(self->obj.GetServerStreamWebSocketForRequest(param0));
222
+ return py::convert([&]()
223
+ {
224
+ auto _gil = release_gil();
225
+ return self->obj.GetServerStreamWebSocketForRequest(param0);
226
+ }());
185
227
  }
186
228
  catch (...)
187
229
  {
@@ -189,7 +231,18 @@ namespace py::cpp::Windows::System::Diagnostics::DevicePortal
189
231
  return nullptr;
190
232
  }
191
233
  }
192
- else if (arg_count == 4)
234
+ else
235
+ {
236
+ py::set_invalid_arg_count_error(arg_count);
237
+ return nullptr;
238
+ }
239
+ }
240
+
241
+ static PyObject* DevicePortalConnection_GetServerStreamWebSocketForRequest2(py::wrapper::Windows::System::Diagnostics::DevicePortal::DevicePortalConnection* self, PyObject* args) noexcept
242
+ {
243
+ auto arg_count = PyTuple_GET_SIZE(args);
244
+
245
+ if (arg_count == 4)
193
246
  {
194
247
  try
195
248
  {
@@ -211,7 +264,11 @@ namespace py::cpp::Windows::System::Diagnostics::DevicePortal
211
264
  auto param2 = py::convert_to<uint32_t>(args, 2);
212
265
  auto param3 = py::convert_to<bool>(args, 3);
213
266
 
214
- return py::convert(self->obj.GetServerStreamWebSocketForRequest(param0, param1, param2, param3));
267
+ return py::convert([&]()
268
+ {
269
+ auto _gil = release_gil();
270
+ return self->obj.GetServerStreamWebSocketForRequest(param0, param1, param2, param3);
271
+ }());
215
272
  }
216
273
  catch (...)
217
274
  {
@@ -245,7 +302,11 @@ namespace py::cpp::Windows::System::Diagnostics::DevicePortal
245
302
 
246
303
  auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::System::Diagnostics::DevicePortal::DevicePortalConnection, winrt::Windows::System::Diagnostics::DevicePortal::DevicePortalConnectionClosedEventArgs>>(arg);
247
304
 
248
- return py::convert(self->obj.Closed(param0));
305
+ return py::convert([&]()
306
+ {
307
+ auto _gil = release_gil();
308
+ return self->obj.Closed(param0);
309
+ }());
249
310
  }
250
311
  catch (...)
251
312
  {
@@ -273,7 +334,11 @@ namespace py::cpp::Windows::System::Diagnostics::DevicePortal
273
334
 
274
335
  auto param0 = py::convert_to<winrt::event_token>(arg);
275
336
 
276
- self->obj.Closed(param0);
337
+ {
338
+ auto _gil = release_gil();
339
+ self->obj.Closed(param0);
340
+ }
341
+
277
342
  Py_RETURN_NONE;
278
343
  }
279
344
  catch (...)
@@ -302,7 +367,11 @@ namespace py::cpp::Windows::System::Diagnostics::DevicePortal
302
367
 
303
368
  auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::System::Diagnostics::DevicePortal::DevicePortalConnection, winrt::Windows::System::Diagnostics::DevicePortal::DevicePortalConnectionRequestReceivedEventArgs>>(arg);
304
369
 
305
- return py::convert(self->obj.RequestReceived(param0));
370
+ return py::convert([&]()
371
+ {
372
+ auto _gil = release_gil();
373
+ return self->obj.RequestReceived(param0);
374
+ }());
306
375
  }
307
376
  catch (...)
308
377
  {
@@ -330,7 +399,11 @@ namespace py::cpp::Windows::System::Diagnostics::DevicePortal
330
399
 
331
400
  auto param0 = py::convert_to<winrt::event_token>(arg);
332
401
 
333
- self->obj.RequestReceived(param0);
402
+ {
403
+ auto _gil = release_gil();
404
+ self->obj.RequestReceived(param0);
405
+ }
406
+
334
407
  Py_RETURN_NONE;
335
408
  }
336
409
  catch (...)
@@ -366,27 +439,27 @@ namespace py::cpp::Windows::System::Diagnostics::DevicePortal
366
439
 
367
440
  static PyMethodDef _methods_DevicePortalConnection[] = {
368
441
  { "get_server_message_web_socket_for_request", reinterpret_cast<PyCFunction>(DevicePortalConnection_GetServerMessageWebSocketForRequest), METH_VARARGS, nullptr },
442
+ { "get_server_message_web_socket_for_request2", reinterpret_cast<PyCFunction>(DevicePortalConnection_GetServerMessageWebSocketForRequest2), METH_VARARGS, nullptr },
443
+ { "get_server_message_web_socket_for_request3", reinterpret_cast<PyCFunction>(DevicePortalConnection_GetServerMessageWebSocketForRequest3), METH_VARARGS, nullptr },
369
444
  { "get_server_stream_web_socket_for_request", reinterpret_cast<PyCFunction>(DevicePortalConnection_GetServerStreamWebSocketForRequest), METH_VARARGS, nullptr },
445
+ { "get_server_stream_web_socket_for_request2", reinterpret_cast<PyCFunction>(DevicePortalConnection_GetServerStreamWebSocketForRequest2), METH_VARARGS, nullptr },
370
446
  { "add_closed", reinterpret_cast<PyCFunction>(DevicePortalConnection_add_Closed), METH_O, nullptr },
371
447
  { "remove_closed", reinterpret_cast<PyCFunction>(DevicePortalConnection_remove_Closed), METH_O, nullptr },
372
448
  { "add_request_received", reinterpret_cast<PyCFunction>(DevicePortalConnection_add_RequestReceived), METH_O, nullptr },
373
449
  { "remove_request_received", reinterpret_cast<PyCFunction>(DevicePortalConnection_remove_RequestReceived), METH_O, nullptr },
374
450
  { "_assign_array_", _assign_array_DevicePortalConnection, METH_O | METH_STATIC, nullptr },
375
451
  { "_from", reinterpret_cast<PyCFunction>(_from_DevicePortalConnection), METH_O | METH_STATIC, nullptr },
376
- { }
377
- };
452
+ { }};
378
453
 
379
454
  static PyGetSetDef _getset_DevicePortalConnection[] = {
380
- { }
381
- };
455
+ { }};
382
456
 
383
457
  static PyType_Slot _type_slots_DevicePortalConnection[] = {
384
458
  { Py_tp_new, reinterpret_cast<void*>(_new_DevicePortalConnection) },
385
459
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_DevicePortalConnection) },
386
460
  { Py_tp_methods, reinterpret_cast<void*>(_methods_DevicePortalConnection) },
387
461
  { Py_tp_getset, reinterpret_cast<void*>(_getset_DevicePortalConnection) },
388
- { }
389
- };
462
+ { }};
390
463
 
391
464
  static PyType_Spec type_spec_DevicePortalConnection = {
392
465
  "winrt._winrt_windows_system_diagnostics_deviceportal.DevicePortalConnection",
@@ -396,13 +469,11 @@ namespace py::cpp::Windows::System::Diagnostics::DevicePortal
396
469
  _type_slots_DevicePortalConnection};
397
470
 
398
471
  static PyGetSetDef getset_DevicePortalConnection_Static[] = {
399
- { }
400
- };
472
+ { }};
401
473
 
402
474
  static PyMethodDef methods_DevicePortalConnection_Static[] = {
403
475
  { "get_for_app_service_connection", reinterpret_cast<PyCFunction>(DevicePortalConnection_GetForAppServiceConnection), METH_VARARGS, nullptr },
404
- { }
405
- };
476
+ { }};
406
477
 
407
478
  static PyType_Slot type_slots_DevicePortalConnection_Static[] =
408
479
  {
@@ -412,14 +483,12 @@ namespace py::cpp::Windows::System::Diagnostics::DevicePortal
412
483
  { }
413
484
  };
414
485
 
415
- static PyType_Spec type_spec_DevicePortalConnection_Static =
416
- {
486
+ static PyType_Spec type_spec_DevicePortalConnection_Static = {
417
487
  "winrt._winrt_windows_system_diagnostics_deviceportal.DevicePortalConnection_Static",
418
488
  static_cast<int>(PyType_Type.tp_basicsize),
419
489
  static_cast<int>(PyType_Type.tp_itemsize),
420
490
  Py_TPFLAGS_DEFAULT,
421
- type_slots_DevicePortalConnection_Static
422
- };
491
+ type_slots_DevicePortalConnection_Static};
423
492
 
424
493
  // ----- DevicePortalConnectionClosedEventArgs class --------------------
425
494
 
@@ -455,7 +524,11 @@ namespace py::cpp::Windows::System::Diagnostics::DevicePortal
455
524
  return nullptr;
456
525
  }
457
526
 
458
- return py::convert(self->obj.Reason());
527
+ return py::convert([&]()
528
+ {
529
+ auto _gil = release_gil();
530
+ return self->obj.Reason();
531
+ }());
459
532
  }
460
533
  catch (...)
461
534
  {
@@ -491,21 +564,18 @@ namespace py::cpp::Windows::System::Diagnostics::DevicePortal
491
564
  static PyMethodDef _methods_DevicePortalConnectionClosedEventArgs[] = {
492
565
  { "_assign_array_", _assign_array_DevicePortalConnectionClosedEventArgs, METH_O | METH_STATIC, nullptr },
493
566
  { "_from", reinterpret_cast<PyCFunction>(_from_DevicePortalConnectionClosedEventArgs), METH_O | METH_STATIC, nullptr },
494
- { }
495
- };
567
+ { }};
496
568
 
497
569
  static PyGetSetDef _getset_DevicePortalConnectionClosedEventArgs[] = {
498
570
  { "reason", reinterpret_cast<getter>(DevicePortalConnectionClosedEventArgs_get_Reason), nullptr, nullptr, nullptr },
499
- { }
500
- };
571
+ { }};
501
572
 
502
573
  static PyType_Slot _type_slots_DevicePortalConnectionClosedEventArgs[] = {
503
574
  { Py_tp_new, reinterpret_cast<void*>(_new_DevicePortalConnectionClosedEventArgs) },
504
575
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_DevicePortalConnectionClosedEventArgs) },
505
576
  { Py_tp_methods, reinterpret_cast<void*>(_methods_DevicePortalConnectionClosedEventArgs) },
506
577
  { Py_tp_getset, reinterpret_cast<void*>(_getset_DevicePortalConnectionClosedEventArgs) },
507
- { }
508
- };
578
+ { }};
509
579
 
510
580
  static PyType_Spec type_spec_DevicePortalConnectionClosedEventArgs = {
511
581
  "winrt._winrt_windows_system_diagnostics_deviceportal.DevicePortalConnectionClosedEventArgs",
@@ -533,7 +603,7 @@ namespace py::cpp::Windows::System::Diagnostics::DevicePortal
533
603
 
534
604
  static PyObject* DevicePortalConnectionRequestReceivedEventArgs_GetDeferral(py::wrapper::Windows::System::Diagnostics::DevicePortal::DevicePortalConnectionRequestReceivedEventArgs* self, PyObject* args) noexcept
535
605
  {
536
- auto arg_count = PyTuple_Size(args);
606
+ auto arg_count = PyTuple_GET_SIZE(args);
537
607
 
538
608
  if (arg_count == 0)
539
609
  {
@@ -552,7 +622,11 @@ namespace py::cpp::Windows::System::Diagnostics::DevicePortal
552
622
  return nullptr;
553
623
  }
554
624
 
555
- return py::convert(self->obj.GetDeferral());
625
+ return py::convert([&]()
626
+ {
627
+ auto _gil = release_gil();
628
+ return self->obj.GetDeferral();
629
+ }());
556
630
  }
557
631
  catch (...)
558
632
  {
@@ -584,7 +658,11 @@ namespace py::cpp::Windows::System::Diagnostics::DevicePortal
584
658
  return nullptr;
585
659
  }
586
660
 
587
- return py::convert(self->obj.RequestMessage());
661
+ return py::convert([&]()
662
+ {
663
+ auto _gil = release_gil();
664
+ return self->obj.RequestMessage();
665
+ }());
588
666
  }
589
667
  catch (...)
590
668
  {
@@ -610,7 +688,11 @@ namespace py::cpp::Windows::System::Diagnostics::DevicePortal
610
688
  return nullptr;
611
689
  }
612
690
 
613
- return py::convert(self->obj.ResponseMessage());
691
+ return py::convert([&]()
692
+ {
693
+ auto _gil = release_gil();
694
+ return self->obj.ResponseMessage();
695
+ }());
614
696
  }
615
697
  catch (...)
616
698
  {
@@ -636,7 +718,11 @@ namespace py::cpp::Windows::System::Diagnostics::DevicePortal
636
718
  return nullptr;
637
719
  }
638
720
 
639
- return py::convert(self->obj.IsWebSocketUpgradeRequest());
721
+ return py::convert([&]()
722
+ {
723
+ auto _gil = release_gil();
724
+ return self->obj.IsWebSocketUpgradeRequest();
725
+ }());
640
726
  }
641
727
  catch (...)
642
728
  {
@@ -662,7 +748,11 @@ namespace py::cpp::Windows::System::Diagnostics::DevicePortal
662
748
  return nullptr;
663
749
  }
664
750
 
665
- return py::convert(self->obj.WebSocketProtocolsRequested());
751
+ return py::convert([&]()
752
+ {
753
+ auto _gil = release_gil();
754
+ return self->obj.WebSocketProtocolsRequested();
755
+ }());
666
756
  }
667
757
  catch (...)
668
758
  {
@@ -699,24 +789,21 @@ namespace py::cpp::Windows::System::Diagnostics::DevicePortal
699
789
  { "get_deferral", reinterpret_cast<PyCFunction>(DevicePortalConnectionRequestReceivedEventArgs_GetDeferral), METH_VARARGS, nullptr },
700
790
  { "_assign_array_", _assign_array_DevicePortalConnectionRequestReceivedEventArgs, METH_O | METH_STATIC, nullptr },
701
791
  { "_from", reinterpret_cast<PyCFunction>(_from_DevicePortalConnectionRequestReceivedEventArgs), METH_O | METH_STATIC, nullptr },
702
- { }
703
- };
792
+ { }};
704
793
 
705
794
  static PyGetSetDef _getset_DevicePortalConnectionRequestReceivedEventArgs[] = {
706
795
  { "request_message", reinterpret_cast<getter>(DevicePortalConnectionRequestReceivedEventArgs_get_RequestMessage), nullptr, nullptr, nullptr },
707
796
  { "response_message", reinterpret_cast<getter>(DevicePortalConnectionRequestReceivedEventArgs_get_ResponseMessage), nullptr, nullptr, nullptr },
708
797
  { "is_web_socket_upgrade_request", reinterpret_cast<getter>(DevicePortalConnectionRequestReceivedEventArgs_get_IsWebSocketUpgradeRequest), nullptr, nullptr, nullptr },
709
798
  { "web_socket_protocols_requested", reinterpret_cast<getter>(DevicePortalConnectionRequestReceivedEventArgs_get_WebSocketProtocolsRequested), nullptr, nullptr, nullptr },
710
- { }
711
- };
799
+ { }};
712
800
 
713
801
  static PyType_Slot _type_slots_DevicePortalConnectionRequestReceivedEventArgs[] = {
714
802
  { Py_tp_new, reinterpret_cast<void*>(_new_DevicePortalConnectionRequestReceivedEventArgs) },
715
803
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_DevicePortalConnectionRequestReceivedEventArgs) },
716
804
  { Py_tp_methods, reinterpret_cast<void*>(_methods_DevicePortalConnectionRequestReceivedEventArgs) },
717
805
  { Py_tp_getset, reinterpret_cast<void*>(_getset_DevicePortalConnectionRequestReceivedEventArgs) },
718
- { }
719
- };
806
+ { }};
720
807
 
721
808
  static PyType_Spec type_spec_DevicePortalConnectionRequestReceivedEventArgs = {
722
809
  "winrt._winrt_windows_system_diagnostics_deviceportal.DevicePortalConnectionRequestReceivedEventArgs",
@@ -757,6 +844,12 @@ PyMODINIT_FUNC PyInit__winrt_windows_system_diagnostics_deviceportal(void) noexc
757
844
  return nullptr;
758
845
  }
759
846
 
847
+ auto inspectable_meta_type = py::get_inspectable_meta_type();
848
+ if (!inspectable_meta_type)
849
+ {
850
+ return nullptr;
851
+ }
852
+
760
853
  auto object_type = py::get_object_type();
761
854
  if (!object_type)
762
855
  {
@@ -770,7 +863,13 @@ PyMODINIT_FUNC PyInit__winrt_windows_system_diagnostics_deviceportal(void) noexc
770
863
  return nullptr;
771
864
  }
772
865
 
773
- py::pyobj_handle type_DevicePortalConnection_Static{PyType_FromSpec(&type_spec_DevicePortalConnection_Static)};
866
+ py::pyobj_handle DevicePortalConnection_Static_bases{PyTuple_Pack(1, reinterpret_cast<PyObject*>(inspectable_meta_type))};
867
+ if (!DevicePortalConnection_Static_bases)
868
+ {
869
+ return nullptr;
870
+ }
871
+
872
+ py::pyobj_handle type_DevicePortalConnection_Static{PyType_FromSpecWithBases(&type_spec_DevicePortalConnection_Static, DevicePortalConnection_Static_bases.get())};
774
873
  if (!type_DevicePortalConnection_Static)
775
874
  {
776
875
  return nullptr;
@@ -782,13 +881,13 @@ PyMODINIT_FUNC PyInit__winrt_windows_system_diagnostics_deviceportal(void) noexc
782
881
  return nullptr;
783
882
  }
784
883
 
785
- py::pytype_handle DevicePortalConnectionClosedEventArgs_type{py::register_python_type(module.get(), &type_spec_DevicePortalConnectionClosedEventArgs, object_bases.get(), nullptr)};
884
+ py::pytype_handle DevicePortalConnectionClosedEventArgs_type{py::register_python_type(module.get(), &type_spec_DevicePortalConnectionClosedEventArgs, object_bases.get(), inspectable_meta_type)};
786
885
  if (!DevicePortalConnectionClosedEventArgs_type)
787
886
  {
788
887
  return nullptr;
789
888
  }
790
889
 
791
- py::pytype_handle DevicePortalConnectionRequestReceivedEventArgs_type{py::register_python_type(module.get(), &type_spec_DevicePortalConnectionRequestReceivedEventArgs, object_bases.get(), nullptr)};
890
+ py::pytype_handle DevicePortalConnectionRequestReceivedEventArgs_type{py::register_python_type(module.get(), &type_spec_DevicePortalConnectionRequestReceivedEventArgs, object_bases.get(), inspectable_meta_type)};
792
891
  if (!DevicePortalConnectionRequestReceivedEventArgs_type)
793
892
  {
794
893
  return nullptr;
@@ -1,14 +1,14 @@
1
1
  # WARNING: Please don't edit this file. It was automatically generated.
2
2
 
3
3
  [build-system]
4
- requires = ["setuptools", "winrt-sdk"]
4
+ requires = ["setuptools>=78", "winrt-sdk"]
5
5
  build-backend = "setuptools.build_meta"
6
6
 
7
7
  [project]
8
8
  name = "winrt-Windows.System.Diagnostics.DevicePortal"
9
9
  description = "Python projection of Windows Runtime (WinRT) APIs"
10
10
  readme = "README.md"
11
- license = { text = "MIT" }
11
+ license = "MIT"
12
12
  classifiers = [
13
13
  "Operating System :: Microsoft :: Windows",
14
14
  "Programming Language :: Python :: 3",
@@ -16,7 +16,7 @@ classifiers = [
16
16
  "Intended Audience :: Developers",
17
17
  ]
18
18
  dynamic = ["version", "dependencies", "optional-dependencies"]
19
- requires-python = ">=3.9,<3.14"
19
+ requires-python = ">=3.9"
20
20
 
21
21
  [project.urls]
22
22
  # Homepage = "https://github.com/pywinrt/pywinrt"
@@ -34,7 +34,7 @@ optional-dependencies.all = { file = "all-requirements.txt" }
34
34
 
35
35
  [tool.cibuildwheel]
36
36
  # use local winrt-sdk build dependency
37
- environment = { PYTHONPATH="../winrt-sdk/src" }
37
+ environment = { PYTHONPATH="../../winrt-sdk/src" }
38
38
  # don't install winrt-sdk from PyPI
39
39
  build-frontend = { name = "build[uv]", args = ["--skip-dependency-check", "--no-isolation"] }
40
40
  before-build = "uv pip install setuptools"
@@ -1,3 +1,3 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.1.0
2
2
 
3
- winrt-runtime==2.3.0
3
+ winrt-runtime==3.1.0
@@ -19,7 +19,7 @@ class build_ext_ex(build_ext):
19
19
 
20
20
 
21
21
  setup(
22
- cmdclass = {'build_ext': build_ext_ex},
22
+ cmdclass={"build_ext": build_ext_ex},
23
23
  ext_modules=[
24
24
  Extension(
25
25
  "winrt._winrt_windows_system_diagnostics_deviceportal",
@@ -0,0 +1,70 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.1.0
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.applicationmodel.appservice as windows_applicationmodel_appservice
13
+ import winrt.windows.foundation as windows_foundation
14
+ import winrt.windows.foundation.collections as windows_foundation_collections
15
+ import winrt.windows.networking.sockets as windows_networking_sockets
16
+ import winrt.windows.web.http as windows_web_http
17
+
18
+ from winrt.windows.system.diagnostics.deviceportal import DevicePortalConnectionClosedReason
19
+
20
+ Self = typing.TypeVar('Self')
21
+
22
+ @typing.final
23
+ class DevicePortalConnection_Static(winrt._winrt.IInspectable_Static):
24
+ # Windows.System.Diagnostics.DevicePortal.DevicePortalConnection Windows.System.Diagnostics.DevicePortal.DevicePortalConnection::GetForAppServiceConnection(Windows.ApplicationModel.AppService.AppServiceConnection)
25
+ def get_for_app_service_connection(cls, app_service_connection: windows_applicationmodel_appservice.AppServiceConnection, /) -> DevicePortalConnection: ...
26
+
27
+ @typing.final
28
+ class DevicePortalConnection(winrt.system.Object, metaclass=DevicePortalConnection_Static):
29
+ # Windows.Networking.Sockets.ServerMessageWebSocket Windows.System.Diagnostics.DevicePortal.DevicePortalConnection::GetServerMessageWebSocketForRequest(Windows.Web.Http.HttpRequestMessage)
30
+ def get_server_message_web_socket_for_request(self, request: windows_web_http.HttpRequestMessage, /) -> windows_networking_sockets.ServerMessageWebSocket: ...
31
+ # Windows.Networking.Sockets.ServerMessageWebSocket Windows.System.Diagnostics.DevicePortal.DevicePortalConnection::GetServerMessageWebSocketForRequest(Windows.Web.Http.HttpRequestMessage,Windows.Networking.Sockets.SocketMessageType,System.String)
32
+ 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: ...
33
+ # 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)
34
+ 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, max_message_size: winrt.system.UInt32, receive_mode: windows_networking_sockets.MessageWebSocketReceiveMode, /) -> windows_networking_sockets.ServerMessageWebSocket: ...
35
+ # Windows.Networking.Sockets.ServerStreamWebSocket Windows.System.Diagnostics.DevicePortal.DevicePortalConnection::GetServerStreamWebSocketForRequest(Windows.Web.Http.HttpRequestMessage)
36
+ def get_server_stream_web_socket_for_request(self, request: windows_web_http.HttpRequestMessage, /) -> windows_networking_sockets.ServerStreamWebSocket: ...
37
+ # Windows.Networking.Sockets.ServerStreamWebSocket Windows.System.Diagnostics.DevicePortal.DevicePortalConnection::GetServerStreamWebSocketForRequest(Windows.Web.Http.HttpRequestMessage,System.String,System.UInt32,System.Boolean)
38
+ def get_server_stream_web_socket_for_request2(self, request: windows_web_http.HttpRequestMessage, protocol: str, outbound_buffer_size_in_bytes: winrt.system.UInt32, no_delay: bool, /) -> windows_networking_sockets.ServerStreamWebSocket: ...
39
+ # Windows.Foundation.EventRegistrationToken Windows.System.Diagnostics.DevicePortal.DevicePortalConnection::add_Closed(Windows.Foundation.TypedEventHandler`2<Windows.System.Diagnostics.DevicePortal.DevicePortalConnection,Windows.System.Diagnostics.DevicePortal.DevicePortalConnectionClosedEventArgs>)
40
+ def add_closed(self, handler: windows_foundation.TypedEventHandler[DevicePortalConnection, DevicePortalConnectionClosedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
41
+ # System.Void Windows.System.Diagnostics.DevicePortal.DevicePortalConnection::remove_Closed(Windows.Foundation.EventRegistrationToken)
42
+ def remove_closed(self, token: typing.Union[windows_foundation.EventRegistrationToken, typing.Tuple[winrt.system.Int64]], /) -> None: ...
43
+ # Windows.Foundation.EventRegistrationToken Windows.System.Diagnostics.DevicePortal.DevicePortalConnection::add_RequestReceived(Windows.Foundation.TypedEventHandler`2<Windows.System.Diagnostics.DevicePortal.DevicePortalConnection,Windows.System.Diagnostics.DevicePortal.DevicePortalConnectionRequestReceivedEventArgs>)
44
+ def add_request_received(self, handler: windows_foundation.TypedEventHandler[DevicePortalConnection, DevicePortalConnectionRequestReceivedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
45
+ # System.Void Windows.System.Diagnostics.DevicePortal.DevicePortalConnection::remove_RequestReceived(Windows.Foundation.EventRegistrationToken)
46
+ def remove_request_received(self, token: typing.Union[windows_foundation.EventRegistrationToken, typing.Tuple[winrt.system.Int64]], /) -> None: ...
47
+
48
+ @typing.final
49
+ class DevicePortalConnectionClosedEventArgs(winrt.system.Object):
50
+ # Windows.System.Diagnostics.DevicePortal.DevicePortalConnectionClosedReason Windows.System.Diagnostics.DevicePortal.DevicePortalConnectionClosedEventArgs::get_Reason()
51
+ @_property
52
+ def reason(self) -> DevicePortalConnectionClosedReason: ...
53
+
54
+ @typing.final
55
+ class DevicePortalConnectionRequestReceivedEventArgs(winrt.system.Object):
56
+ # Windows.Foundation.Deferral Windows.System.Diagnostics.DevicePortal.DevicePortalConnectionRequestReceivedEventArgs::GetDeferral()
57
+ def get_deferral(self) -> windows_foundation.Deferral: ...
58
+ # Windows.Web.Http.HttpRequestMessage Windows.System.Diagnostics.DevicePortal.DevicePortalConnectionRequestReceivedEventArgs::get_RequestMessage()
59
+ @_property
60
+ def request_message(self) -> windows_web_http.HttpRequestMessage: ...
61
+ # Windows.Web.Http.HttpResponseMessage Windows.System.Diagnostics.DevicePortal.DevicePortalConnectionRequestReceivedEventArgs::get_ResponseMessage()
62
+ @_property
63
+ def response_message(self) -> windows_web_http.HttpResponseMessage: ...
64
+ # System.Boolean Windows.System.Diagnostics.DevicePortal.DevicePortalConnectionRequestReceivedEventArgs::get_IsWebSocketUpgradeRequest()
65
+ @_property
66
+ def is_web_socket_upgrade_request(self) -> bool: ...
67
+ # Windows.Foundation.Collections.IVectorView`1<System.String> Windows.System.Diagnostics.DevicePortal.DevicePortalConnectionRequestReceivedEventArgs::get_WebSocketProtocolsRequested()
68
+ @_property
69
+ def web_socket_protocols_requested(self) -> typing.Sequence[str]: ...
70
+
@@ -1,9 +1,13 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.1.0
2
2
 
3
3
  import enum
4
4
 
5
5
  import winrt.system
6
- from winrt import _winrt_windows_system_diagnostics_deviceportal
6
+ from winrt._winrt_windows_system_diagnostics_deviceportal import (
7
+ DevicePortalConnection,
8
+ DevicePortalConnectionClosedEventArgs,
9
+ DevicePortalConnectionRequestReceivedEventArgs,
10
+ )
7
11
 
8
12
  __all__ = [
9
13
  "DevicePortalConnectionClosedReason",
@@ -20,6 +24,3 @@ class DevicePortalConnectionClosedReason(enum.IntEnum):
20
24
  USER_NOT_PRESENT = 4
21
25
  SERVICE_TERMINATED = 5
22
26
 
23
- DevicePortalConnection = _winrt_windows_system_diagnostics_deviceportal.DevicePortalConnection
24
- DevicePortalConnectionClosedEventArgs = _winrt_windows_system_diagnostics_deviceportal.DevicePortalConnectionClosedEventArgs
25
- DevicePortalConnectionRequestReceivedEventArgs = _winrt_windows_system_diagnostics_deviceportal.DevicePortalConnectionRequestReceivedEventArgs
@@ -1,8 +1,8 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: winrt-Windows.System.Diagnostics.DevicePortal
3
- Version: 2.3.0
3
+ Version: 3.1.0
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
- License: MIT
5
+ License-Expression: MIT
6
6
  Project-URL: Documentation, https://pywinrt.readthedocs.io
7
7
  Project-URL: Repository, https://github.com/pywinrt/pywinrt
8
8
  Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
@@ -10,15 +10,15 @@ Classifier: Operating System :: Microsoft :: Windows
10
10
  Classifier: Programming Language :: Python :: 3
11
11
  Classifier: Programming Language :: Python :: Implementation :: CPython
12
12
  Classifier: Intended Audience :: Developers
13
- Requires-Python: <3.14,>=3.9
13
+ Requires-Python: >=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==2.3.0
15
+ Requires-Dist: winrt-runtime==3.1.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.ApplicationModel.AppService[all]==2.3.0; extra == "all"
18
- Requires-Dist: winrt-Windows.Foundation[all]==2.3.0; extra == "all"
19
- Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.3.0; extra == "all"
20
- Requires-Dist: winrt-Windows.Networking.Sockets[all]==2.3.0; extra == "all"
21
- Requires-Dist: winrt-Windows.Web.Http[all]==2.3.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.ApplicationModel.AppService[all]==3.1.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Foundation[all]==3.1.0; extra == "all"
19
+ Requires-Dist: winrt-Windows.Foundation.Collections[all]==3.1.0; extra == "all"
20
+ Requires-Dist: winrt-Windows.Networking.Sockets[all]==3.1.0; extra == "all"
21
+ Requires-Dist: winrt-Windows.Web.Http[all]==3.1.0; extra == "all"
22
22
 
23
23
  <!-- warning: Please don't edit this file. It was automatically generated. -->
24
24
 
@@ -0,0 +1,8 @@
1
+ winrt-runtime==3.1.0
2
+
3
+ [all]
4
+ winrt-Windows.ApplicationModel.AppService[all]==3.1.0
5
+ winrt-Windows.Foundation[all]==3.1.0
6
+ winrt-Windows.Foundation.Collections[all]==3.1.0
7
+ winrt-Windows.Networking.Sockets[all]==3.1.0
8
+ winrt-Windows.Web.Http[all]==3.1.0
@@ -1,7 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
2
-
3
- winrt-Windows.ApplicationModel.AppService[all]==2.3.0
4
- winrt-Windows.Foundation[all]==2.3.0
5
- winrt-Windows.Foundation.Collections[all]==2.3.0
6
- winrt-Windows.Networking.Sockets[all]==2.3.0
7
- winrt-Windows.Web.Http[all]==2.3.0
@@ -1,65 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
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.applicationmodel.appservice as windows_applicationmodel_appservice
13
- import winrt.windows.foundation as windows_foundation
14
- import winrt.windows.foundation.collections as windows_foundation_collections
15
- import winrt.windows.networking.sockets as windows_networking_sockets
16
- import winrt.windows.web.http as windows_web_http
17
-
18
- from winrt.windows.system.diagnostics.deviceportal import DevicePortalConnectionClosedReason
19
-
20
- Self = typing.TypeVar('Self')
21
-
22
- @typing.final
23
- class DevicePortalConnection_Static(type):
24
- def get_for_app_service_connection(cls, app_service_connection: typing.Optional[windows_applicationmodel_appservice.AppServiceConnection], /) -> typing.Optional[DevicePortalConnection]: ...
25
-
26
- @typing.final
27
- class DevicePortalConnection(winrt.system.Object, metaclass=DevicePortalConnection_Static):
28
- @staticmethod
29
- def _from(obj: winrt.system.Object, /) -> DevicePortalConnection: ...
30
- @typing.overload
31
- def get_server_message_web_socket_for_request(self, request: typing.Optional[windows_web_http.HttpRequestMessage], /) -> typing.Optional[windows_networking_sockets.ServerMessageWebSocket]: ...
32
- @typing.overload
33
- def get_server_message_web_socket_for_request(self, request: typing.Optional[windows_web_http.HttpRequestMessage], message_type: windows_networking_sockets.SocketMessageType, protocol: str, /) -> typing.Optional[windows_networking_sockets.ServerMessageWebSocket]: ...
34
- @typing.overload
35
- def get_server_message_web_socket_for_request(self, request: typing.Optional[windows_web_http.HttpRequestMessage], message_type: windows_networking_sockets.SocketMessageType, protocol: str, outbound_buffer_size_in_bytes: winrt.system.UInt32, max_message_size: winrt.system.UInt32, receive_mode: windows_networking_sockets.MessageWebSocketReceiveMode, /) -> typing.Optional[windows_networking_sockets.ServerMessageWebSocket]: ...
36
- @typing.overload
37
- def get_server_stream_web_socket_for_request(self, request: typing.Optional[windows_web_http.HttpRequestMessage], /) -> typing.Optional[windows_networking_sockets.ServerStreamWebSocket]: ...
38
- @typing.overload
39
- def get_server_stream_web_socket_for_request(self, request: typing.Optional[windows_web_http.HttpRequestMessage], protocol: str, outbound_buffer_size_in_bytes: winrt.system.UInt32, no_delay: bool, /) -> typing.Optional[windows_networking_sockets.ServerStreamWebSocket]: ...
40
- def add_closed(self, handler: windows_foundation.TypedEventHandler[DevicePortalConnection, DevicePortalConnectionClosedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
41
- def remove_closed(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
42
- def add_request_received(self, handler: windows_foundation.TypedEventHandler[DevicePortalConnection, DevicePortalConnectionRequestReceivedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
43
- def remove_request_received(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
44
-
45
- @typing.final
46
- class DevicePortalConnectionClosedEventArgs(winrt.system.Object):
47
- @staticmethod
48
- def _from(obj: winrt.system.Object, /) -> DevicePortalConnectionClosedEventArgs: ...
49
- @_property
50
- def reason(self) -> DevicePortalConnectionClosedReason: ...
51
-
52
- @typing.final
53
- class DevicePortalConnectionRequestReceivedEventArgs(winrt.system.Object):
54
- @staticmethod
55
- def _from(obj: winrt.system.Object, /) -> DevicePortalConnectionRequestReceivedEventArgs: ...
56
- def get_deferral(self) -> typing.Optional[windows_foundation.Deferral]: ...
57
- @_property
58
- def request_message(self) -> typing.Optional[windows_web_http.HttpRequestMessage]: ...
59
- @_property
60
- def response_message(self) -> typing.Optional[windows_web_http.HttpResponseMessage]: ...
61
- @_property
62
- def is_web_socket_upgrade_request(self) -> bool: ...
63
- @_property
64
- def web_socket_protocols_requested(self) -> typing.Optional[windows_foundation_collections.IVectorView[str]]: ...
65
-
@@ -1,8 +0,0 @@
1
- winrt-runtime==2.3.0
2
-
3
- [all]
4
- winrt-Windows.ApplicationModel.AppService[all]==2.3.0
5
- winrt-Windows.Foundation[all]==2.3.0
6
- winrt-Windows.Foundation.Collections[all]==2.3.0
7
- winrt-Windows.Networking.Sockets[all]==2.3.0
8
- winrt-Windows.Web.Http[all]==2.3.0