winrt-Windows.System.Diagnostics.DevicePortal 2.0.0b2__tar.gz → 2.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 (22) hide show
  1. {winrt-Windows.System.Diagnostics.DevicePortal-2.0.0b2 → winrt_windows_system_diagnostics_deviceportal-2.1.0}/PKG-INFO +7 -1
  2. winrt_windows_system_diagnostics_deviceportal-2.1.0/all-requirements.txt +7 -0
  3. {winrt-Windows.System.Diagnostics.DevicePortal-2.0.0b2 → winrt_windows_system_diagnostics_deviceportal-2.1.0}/py.Windows.System.Diagnostics.DevicePortal.cpp +120 -131
  4. {winrt-Windows.System.Diagnostics.DevicePortal-2.0.0b2 → winrt_windows_system_diagnostics_deviceportal-2.1.0}/pyproject.toml +2 -2
  5. winrt_windows_system_diagnostics_deviceportal-2.1.0/pywinrt-version.txt +1 -0
  6. {winrt-Windows.System.Diagnostics.DevicePortal-2.0.0b2 → winrt_windows_system_diagnostics_deviceportal-2.1.0}/requirements.txt +2 -2
  7. winrt_windows_system_diagnostics_deviceportal-2.1.0/setup.py +31 -0
  8. winrt_windows_system_diagnostics_deviceportal-2.1.0/winrt/_winrt_windows_system_diagnostics_deviceportal.pyi +65 -0
  9. {winrt-Windows.System.Diagnostics.DevicePortal-2.0.0b2 → winrt_windows_system_diagnostics_deviceportal-2.1.0}/winrt/windows/system/diagnostics/deviceportal/__init__.py +1 -1
  10. winrt_windows_system_diagnostics_deviceportal-2.1.0/winrt/windows/system/diagnostics/deviceportal/py.typed +0 -0
  11. {winrt-Windows.System.Diagnostics.DevicePortal-2.0.0b2 → winrt_windows_system_diagnostics_deviceportal-2.1.0}/winrt_Windows.System.Diagnostics.DevicePortal.egg-info/PKG-INFO +7 -1
  12. {winrt-Windows.System.Diagnostics.DevicePortal-2.0.0b2 → winrt_windows_system_diagnostics_deviceportal-2.1.0}/winrt_Windows.System.Diagnostics.DevicePortal.egg-info/SOURCES.txt +1 -0
  13. winrt_windows_system_diagnostics_deviceportal-2.1.0/winrt_Windows.System.Diagnostics.DevicePortal.egg-info/requires.txt +8 -0
  14. winrt-Windows.System.Diagnostics.DevicePortal-2.0.0b2/all-requirements.txt +0 -7
  15. winrt-Windows.System.Diagnostics.DevicePortal-2.0.0b2/pywinrt-version.txt +0 -1
  16. winrt-Windows.System.Diagnostics.DevicePortal-2.0.0b2/setup.py +0 -16
  17. winrt-Windows.System.Diagnostics.DevicePortal-2.0.0b2/winrt/_winrt_windows_system_diagnostics_deviceportal.pyi +0 -65
  18. winrt-Windows.System.Diagnostics.DevicePortal-2.0.0b2/winrt_Windows.System.Diagnostics.DevicePortal.egg-info/requires.txt +0 -8
  19. {winrt-Windows.System.Diagnostics.DevicePortal-2.0.0b2 → winrt_windows_system_diagnostics_deviceportal-2.1.0}/README.md +0 -0
  20. {winrt-Windows.System.Diagnostics.DevicePortal-2.0.0b2 → winrt_windows_system_diagnostics_deviceportal-2.1.0}/setup.cfg +0 -0
  21. {winrt-Windows.System.Diagnostics.DevicePortal-2.0.0b2 → winrt_windows_system_diagnostics_deviceportal-2.1.0}/winrt_Windows.System.Diagnostics.DevicePortal.egg-info/dependency_links.txt +0 -0
  22. {winrt-Windows.System.Diagnostics.DevicePortal-2.0.0b2 → winrt_windows_system_diagnostics_deviceportal-2.1.0}/winrt_Windows.System.Diagnostics.DevicePortal.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.System.Diagnostics.DevicePortal
3
- Version: 2.0.0b2
3
+ Version: 2.1.0
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
5
  License: MIT
6
6
  Project-URL: Documentation, https://pywinrt.readthedocs.io
@@ -12,7 +12,13 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
12
12
  Classifier: Intended Audience :: Developers
13
13
  Requires-Python: <3.13,>=3.9
14
14
  Description-Content-Type: text/markdown
15
+ Requires-Dist: winrt-runtime==2.1.0
15
16
  Provides-Extra: all
17
+ Requires-Dist: winrt-Windows.ApplicationModel.AppService[all]==2.1.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Foundation[all]==2.1.0; extra == "all"
19
+ Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.1.0; extra == "all"
20
+ Requires-Dist: winrt-Windows.Networking.Sockets[all]==2.1.0; extra == "all"
21
+ Requires-Dist: winrt-Windows.Web.Http[all]==2.1.0; extra == "all"
16
22
 
17
23
  <!-- warning: Please don't edit this file. It was automatically generated. -->
18
24
 
@@ -0,0 +1,7 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
2
+
3
+ winrt-Windows.ApplicationModel.AppService[all]==2.1.0
4
+ winrt-Windows.Foundation[all]==2.1.0
5
+ winrt-Windows.Foundation.Collections[all]==2.1.0
6
+ winrt-Windows.Networking.Sockets[all]==2.1.0
7
+ winrt-Windows.Web.Http[all]==2.1.0
@@ -1,8 +1,7 @@
1
- // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.2
1
+ // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
2
2
 
3
3
  #include "py.Windows.System.Diagnostics.DevicePortal.h"
4
4
 
5
-
6
5
  namespace py::cpp::Windows::System::Diagnostics::DevicePortal
7
6
  {
8
7
  // ----- DevicePortalConnection class --------------------
@@ -28,14 +27,14 @@ namespace py::cpp::Windows::System::Diagnostics::DevicePortal
28
27
 
29
28
  if (arg_count == 1)
30
29
  {
31
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Diagnostics.DevicePortal.DevicePortalConnection", L"GetForAppServiceConnection", 1))
32
- {
33
- py::set_arg_count_version_error(1);
34
- return nullptr;
35
- }
36
-
37
30
  try
38
31
  {
32
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Diagnostics.DevicePortal.DevicePortalConnection", L"GetForAppServiceConnection", 1))
33
+ {
34
+ py::set_arg_count_version_error(1);
35
+ return nullptr;
36
+ }
37
+
39
38
  auto param0 = py::convert_to<winrt::Windows::ApplicationModel::AppService::AppServiceConnection>(args, 0);
40
39
 
41
40
  return py::convert(winrt::Windows::System::Diagnostics::DevicePortal::DevicePortalConnection::GetForAppServiceConnection(param0));
@@ -59,14 +58,14 @@ namespace py::cpp::Windows::System::Diagnostics::DevicePortal
59
58
 
60
59
  if (arg_count == 1)
61
60
  {
62
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Diagnostics.DevicePortal.DevicePortalConnection", L"GetServerMessageWebSocketForRequest", 1))
63
- {
64
- py::set_arg_count_version_error(1);
65
- return nullptr;
66
- }
67
-
68
61
  try
69
62
  {
63
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Diagnostics.DevicePortal.DevicePortalConnection", L"GetServerMessageWebSocketForRequest", 1))
64
+ {
65
+ py::set_arg_count_version_error(1);
66
+ return nullptr;
67
+ }
68
+
70
69
  auto param0 = py::convert_to<winrt::Windows::Web::Http::HttpRequestMessage>(args, 0);
71
70
 
72
71
  return py::convert(self->obj.GetServerMessageWebSocketForRequest(param0));
@@ -79,14 +78,14 @@ namespace py::cpp::Windows::System::Diagnostics::DevicePortal
79
78
  }
80
79
  else if (arg_count == 3)
81
80
  {
82
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Diagnostics.DevicePortal.DevicePortalConnection", L"GetServerMessageWebSocketForRequest", 3))
83
- {
84
- py::set_arg_count_version_error(3);
85
- return nullptr;
86
- }
87
-
88
81
  try
89
82
  {
83
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Diagnostics.DevicePortal.DevicePortalConnection", L"GetServerMessageWebSocketForRequest", 3))
84
+ {
85
+ py::set_arg_count_version_error(3);
86
+ return nullptr;
87
+ }
88
+
90
89
  auto param0 = py::convert_to<winrt::Windows::Web::Http::HttpRequestMessage>(args, 0);
91
90
  auto param1 = py::convert_to<winrt::Windows::Networking::Sockets::SocketMessageType>(args, 1);
92
91
  auto param2 = py::convert_to<winrt::hstring>(args, 2);
@@ -101,14 +100,14 @@ namespace py::cpp::Windows::System::Diagnostics::DevicePortal
101
100
  }
102
101
  else if (arg_count == 6)
103
102
  {
104
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Diagnostics.DevicePortal.DevicePortalConnection", L"GetServerMessageWebSocketForRequest", 6))
105
- {
106
- py::set_arg_count_version_error(6);
107
- return nullptr;
108
- }
109
-
110
103
  try
111
104
  {
105
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Diagnostics.DevicePortal.DevicePortalConnection", L"GetServerMessageWebSocketForRequest", 6))
106
+ {
107
+ py::set_arg_count_version_error(6);
108
+ return nullptr;
109
+ }
110
+
112
111
  auto param0 = py::convert_to<winrt::Windows::Web::Http::HttpRequestMessage>(args, 0);
113
112
  auto param1 = py::convert_to<winrt::Windows::Networking::Sockets::SocketMessageType>(args, 1);
114
113
  auto param2 = py::convert_to<winrt::hstring>(args, 2);
@@ -137,14 +136,14 @@ namespace py::cpp::Windows::System::Diagnostics::DevicePortal
137
136
 
138
137
  if (arg_count == 1)
139
138
  {
140
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Diagnostics.DevicePortal.DevicePortalConnection", L"GetServerStreamWebSocketForRequest", 1))
141
- {
142
- py::set_arg_count_version_error(1);
143
- return nullptr;
144
- }
145
-
146
139
  try
147
140
  {
141
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Diagnostics.DevicePortal.DevicePortalConnection", L"GetServerStreamWebSocketForRequest", 1))
142
+ {
143
+ py::set_arg_count_version_error(1);
144
+ return nullptr;
145
+ }
146
+
148
147
  auto param0 = py::convert_to<winrt::Windows::Web::Http::HttpRequestMessage>(args, 0);
149
148
 
150
149
  return py::convert(self->obj.GetServerStreamWebSocketForRequest(param0));
@@ -157,14 +156,14 @@ namespace py::cpp::Windows::System::Diagnostics::DevicePortal
157
156
  }
158
157
  else if (arg_count == 4)
159
158
  {
160
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Diagnostics.DevicePortal.DevicePortalConnection", L"GetServerStreamWebSocketForRequest", 4))
161
- {
162
- py::set_arg_count_version_error(4);
163
- return nullptr;
164
- }
165
-
166
159
  try
167
160
  {
161
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Diagnostics.DevicePortal.DevicePortalConnection", L"GetServerStreamWebSocketForRequest", 4))
162
+ {
163
+ py::set_arg_count_version_error(4);
164
+ return nullptr;
165
+ }
166
+
168
167
  auto param0 = py::convert_to<winrt::Windows::Web::Http::HttpRequestMessage>(args, 0);
169
168
  auto param1 = py::convert_to<winrt::hstring>(args, 1);
170
169
  auto param2 = py::convert_to<uint32_t>(args, 2);
@@ -187,14 +186,14 @@ namespace py::cpp::Windows::System::Diagnostics::DevicePortal
187
186
 
188
187
  static PyObject* DevicePortalConnection_add_Closed(py::wrapper::Windows::System::Diagnostics::DevicePortal::DevicePortalConnection* self, PyObject* arg) noexcept
189
188
  {
190
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.System.Diagnostics.DevicePortal.DevicePortalConnection", L"Closed"))
191
- {
192
- PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
193
- return nullptr;
194
- }
195
-
196
189
  try
197
190
  {
191
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.System.Diagnostics.DevicePortal.DevicePortalConnection", L"Closed"))
192
+ {
193
+ PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
194
+ return nullptr;
195
+ }
196
+
198
197
  auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::System::Diagnostics::DevicePortal::DevicePortalConnection, winrt::Windows::System::Diagnostics::DevicePortal::DevicePortalConnectionClosedEventArgs>>(arg);
199
198
 
200
199
  return py::convert(self->obj.Closed(param0));
@@ -208,14 +207,14 @@ namespace py::cpp::Windows::System::Diagnostics::DevicePortal
208
207
 
209
208
  static PyObject* DevicePortalConnection_remove_Closed(py::wrapper::Windows::System::Diagnostics::DevicePortal::DevicePortalConnection* self, PyObject* arg) noexcept
210
209
  {
211
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.System.Diagnostics.DevicePortal.DevicePortalConnection", L"Closed"))
212
- {
213
- PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
214
- return nullptr;
215
- }
216
-
217
210
  try
218
211
  {
212
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.System.Diagnostics.DevicePortal.DevicePortalConnection", L"Closed"))
213
+ {
214
+ PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
215
+ return nullptr;
216
+ }
217
+
219
218
  auto param0 = py::convert_to<winrt::event_token>(arg);
220
219
 
221
220
  self->obj.Closed(param0);
@@ -230,14 +229,14 @@ namespace py::cpp::Windows::System::Diagnostics::DevicePortal
230
229
 
231
230
  static PyObject* DevicePortalConnection_add_RequestReceived(py::wrapper::Windows::System::Diagnostics::DevicePortal::DevicePortalConnection* self, PyObject* arg) noexcept
232
231
  {
233
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.System.Diagnostics.DevicePortal.DevicePortalConnection", L"RequestReceived"))
234
- {
235
- PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
236
- return nullptr;
237
- }
238
-
239
232
  try
240
233
  {
234
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.System.Diagnostics.DevicePortal.DevicePortalConnection", L"RequestReceived"))
235
+ {
236
+ PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
237
+ return nullptr;
238
+ }
239
+
241
240
  auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::System::Diagnostics::DevicePortal::DevicePortalConnection, winrt::Windows::System::Diagnostics::DevicePortal::DevicePortalConnectionRequestReceivedEventArgs>>(arg);
242
241
 
243
242
  return py::convert(self->obj.RequestReceived(param0));
@@ -251,14 +250,14 @@ namespace py::cpp::Windows::System::Diagnostics::DevicePortal
251
250
 
252
251
  static PyObject* DevicePortalConnection_remove_RequestReceived(py::wrapper::Windows::System::Diagnostics::DevicePortal::DevicePortalConnection* self, PyObject* arg) noexcept
253
252
  {
254
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.System.Diagnostics.DevicePortal.DevicePortalConnection", L"RequestReceived"))
255
- {
256
- PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
257
- return nullptr;
258
- }
259
-
260
253
  try
261
254
  {
255
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.System.Diagnostics.DevicePortal.DevicePortalConnection", L"RequestReceived"))
256
+ {
257
+ PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
258
+ return nullptr;
259
+ }
260
+
262
261
  auto param0 = py::convert_to<winrt::event_token>(arg);
263
262
 
264
263
  self->obj.RequestReceived(param0);
@@ -311,23 +310,20 @@ namespace py::cpp::Windows::System::Diagnostics::DevicePortal
311
310
  { }
312
311
  };
313
312
 
314
- static PyType_Slot _type_slots_DevicePortalConnection[] =
315
- {
313
+ static PyType_Slot _type_slots_DevicePortalConnection[] = {
316
314
  { Py_tp_new, reinterpret_cast<void*>(_new_DevicePortalConnection) },
317
315
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_DevicePortalConnection) },
318
316
  { Py_tp_methods, reinterpret_cast<void*>(_methods_DevicePortalConnection) },
319
317
  { Py_tp_getset, reinterpret_cast<void*>(_getset_DevicePortalConnection) },
320
- { },
318
+ { }
321
319
  };
322
320
 
323
- static PyType_Spec type_spec_DevicePortalConnection =
324
- {
321
+ static PyType_Spec type_spec_DevicePortalConnection = {
325
322
  "winrt._winrt_windows_system_diagnostics_deviceportal.DevicePortalConnection",
326
323
  sizeof(py::wrapper::Windows::System::Diagnostics::DevicePortal::DevicePortalConnection),
327
324
  0,
328
325
  Py_TPFLAGS_DEFAULT,
329
- _type_slots_DevicePortalConnection
330
- };
326
+ _type_slots_DevicePortalConnection};
331
327
 
332
328
  static PyGetSetDef getset_DevicePortalConnection_Static[] = {
333
329
  { }
@@ -374,14 +370,14 @@ namespace py::cpp::Windows::System::Diagnostics::DevicePortal
374
370
 
375
371
  static PyObject* DevicePortalConnectionClosedEventArgs_get_Reason(py::wrapper::Windows::System::Diagnostics::DevicePortal::DevicePortalConnectionClosedEventArgs* self, void* /*unused*/) noexcept
376
372
  {
377
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Diagnostics.DevicePortal.DevicePortalConnectionClosedEventArgs", L"Reason"))
378
- {
379
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
380
- return nullptr;
381
- }
382
-
383
373
  try
384
374
  {
375
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Diagnostics.DevicePortal.DevicePortalConnectionClosedEventArgs", L"Reason"))
376
+ {
377
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
378
+ return nullptr;
379
+ }
380
+
385
381
  return py::convert(self->obj.Reason());
386
382
  }
387
383
  catch (...)
@@ -426,23 +422,20 @@ namespace py::cpp::Windows::System::Diagnostics::DevicePortal
426
422
  { }
427
423
  };
428
424
 
429
- static PyType_Slot _type_slots_DevicePortalConnectionClosedEventArgs[] =
430
- {
425
+ static PyType_Slot _type_slots_DevicePortalConnectionClosedEventArgs[] = {
431
426
  { Py_tp_new, reinterpret_cast<void*>(_new_DevicePortalConnectionClosedEventArgs) },
432
427
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_DevicePortalConnectionClosedEventArgs) },
433
428
  { Py_tp_methods, reinterpret_cast<void*>(_methods_DevicePortalConnectionClosedEventArgs) },
434
429
  { Py_tp_getset, reinterpret_cast<void*>(_getset_DevicePortalConnectionClosedEventArgs) },
435
- { },
430
+ { }
436
431
  };
437
432
 
438
- static PyType_Spec type_spec_DevicePortalConnectionClosedEventArgs =
439
- {
433
+ static PyType_Spec type_spec_DevicePortalConnectionClosedEventArgs = {
440
434
  "winrt._winrt_windows_system_diagnostics_deviceportal.DevicePortalConnectionClosedEventArgs",
441
435
  sizeof(py::wrapper::Windows::System::Diagnostics::DevicePortal::DevicePortalConnectionClosedEventArgs),
442
436
  0,
443
437
  Py_TPFLAGS_DEFAULT,
444
- _type_slots_DevicePortalConnectionClosedEventArgs
445
- };
438
+ _type_slots_DevicePortalConnectionClosedEventArgs};
446
439
 
447
440
  // ----- DevicePortalConnectionRequestReceivedEventArgs class --------------------
448
441
 
@@ -467,14 +460,14 @@ namespace py::cpp::Windows::System::Diagnostics::DevicePortal
467
460
 
468
461
  if (arg_count == 0)
469
462
  {
470
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Diagnostics.DevicePortal.DevicePortalConnectionRequestReceivedEventArgs", L"GetDeferral", 0))
471
- {
472
- py::set_arg_count_version_error(0);
473
- return nullptr;
474
- }
475
-
476
463
  try
477
464
  {
465
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Diagnostics.DevicePortal.DevicePortalConnectionRequestReceivedEventArgs", L"GetDeferral", 0))
466
+ {
467
+ py::set_arg_count_version_error(0);
468
+ return nullptr;
469
+ }
470
+
478
471
  return py::convert(self->obj.GetDeferral());
479
472
  }
480
473
  catch (...)
@@ -492,14 +485,14 @@ namespace py::cpp::Windows::System::Diagnostics::DevicePortal
492
485
 
493
486
  static PyObject* DevicePortalConnectionRequestReceivedEventArgs_get_RequestMessage(py::wrapper::Windows::System::Diagnostics::DevicePortal::DevicePortalConnectionRequestReceivedEventArgs* self, void* /*unused*/) noexcept
494
487
  {
495
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Diagnostics.DevicePortal.DevicePortalConnectionRequestReceivedEventArgs", L"RequestMessage"))
496
- {
497
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
498
- return nullptr;
499
- }
500
-
501
488
  try
502
489
  {
490
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Diagnostics.DevicePortal.DevicePortalConnectionRequestReceivedEventArgs", L"RequestMessage"))
491
+ {
492
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
493
+ return nullptr;
494
+ }
495
+
503
496
  return py::convert(self->obj.RequestMessage());
504
497
  }
505
498
  catch (...)
@@ -511,14 +504,14 @@ namespace py::cpp::Windows::System::Diagnostics::DevicePortal
511
504
 
512
505
  static PyObject* DevicePortalConnectionRequestReceivedEventArgs_get_ResponseMessage(py::wrapper::Windows::System::Diagnostics::DevicePortal::DevicePortalConnectionRequestReceivedEventArgs* self, void* /*unused*/) noexcept
513
506
  {
514
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Diagnostics.DevicePortal.DevicePortalConnectionRequestReceivedEventArgs", L"ResponseMessage"))
515
- {
516
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
517
- return nullptr;
518
- }
519
-
520
507
  try
521
508
  {
509
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Diagnostics.DevicePortal.DevicePortalConnectionRequestReceivedEventArgs", L"ResponseMessage"))
510
+ {
511
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
512
+ return nullptr;
513
+ }
514
+
522
515
  return py::convert(self->obj.ResponseMessage());
523
516
  }
524
517
  catch (...)
@@ -530,14 +523,14 @@ namespace py::cpp::Windows::System::Diagnostics::DevicePortal
530
523
 
531
524
  static PyObject* DevicePortalConnectionRequestReceivedEventArgs_get_IsWebSocketUpgradeRequest(py::wrapper::Windows::System::Diagnostics::DevicePortal::DevicePortalConnectionRequestReceivedEventArgs* self, void* /*unused*/) noexcept
532
525
  {
533
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Diagnostics.DevicePortal.DevicePortalConnectionRequestReceivedEventArgs", L"IsWebSocketUpgradeRequest"))
534
- {
535
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
536
- return nullptr;
537
- }
538
-
539
526
  try
540
527
  {
528
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Diagnostics.DevicePortal.DevicePortalConnectionRequestReceivedEventArgs", L"IsWebSocketUpgradeRequest"))
529
+ {
530
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
531
+ return nullptr;
532
+ }
533
+
541
534
  return py::convert(self->obj.IsWebSocketUpgradeRequest());
542
535
  }
543
536
  catch (...)
@@ -549,14 +542,14 @@ namespace py::cpp::Windows::System::Diagnostics::DevicePortal
549
542
 
550
543
  static PyObject* DevicePortalConnectionRequestReceivedEventArgs_get_WebSocketProtocolsRequested(py::wrapper::Windows::System::Diagnostics::DevicePortal::DevicePortalConnectionRequestReceivedEventArgs* self, void* /*unused*/) noexcept
551
544
  {
552
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Diagnostics.DevicePortal.DevicePortalConnectionRequestReceivedEventArgs", L"WebSocketProtocolsRequested"))
553
- {
554
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
555
- return nullptr;
556
- }
557
-
558
545
  try
559
546
  {
547
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Diagnostics.DevicePortal.DevicePortalConnectionRequestReceivedEventArgs", L"WebSocketProtocolsRequested"))
548
+ {
549
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
550
+ return nullptr;
551
+ }
552
+
560
553
  return py::convert(self->obj.WebSocketProtocolsRequested());
561
554
  }
562
555
  catch (...)
@@ -605,39 +598,35 @@ namespace py::cpp::Windows::System::Diagnostics::DevicePortal
605
598
  { }
606
599
  };
607
600
 
608
- static PyType_Slot _type_slots_DevicePortalConnectionRequestReceivedEventArgs[] =
609
- {
601
+ static PyType_Slot _type_slots_DevicePortalConnectionRequestReceivedEventArgs[] = {
610
602
  { Py_tp_new, reinterpret_cast<void*>(_new_DevicePortalConnectionRequestReceivedEventArgs) },
611
603
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_DevicePortalConnectionRequestReceivedEventArgs) },
612
604
  { Py_tp_methods, reinterpret_cast<void*>(_methods_DevicePortalConnectionRequestReceivedEventArgs) },
613
605
  { Py_tp_getset, reinterpret_cast<void*>(_getset_DevicePortalConnectionRequestReceivedEventArgs) },
614
- { },
606
+ { }
615
607
  };
616
608
 
617
- static PyType_Spec type_spec_DevicePortalConnectionRequestReceivedEventArgs =
618
- {
609
+ static PyType_Spec type_spec_DevicePortalConnectionRequestReceivedEventArgs = {
619
610
  "winrt._winrt_windows_system_diagnostics_deviceportal.DevicePortalConnectionRequestReceivedEventArgs",
620
611
  sizeof(py::wrapper::Windows::System::Diagnostics::DevicePortal::DevicePortalConnectionRequestReceivedEventArgs),
621
612
  0,
622
613
  Py_TPFLAGS_DEFAULT,
623
- _type_slots_DevicePortalConnectionRequestReceivedEventArgs
624
- };
614
+ _type_slots_DevicePortalConnectionRequestReceivedEventArgs};
625
615
 
626
616
  // ----- Windows.System.Diagnostics.DevicePortal Initialization --------------------
627
- PyDoc_STRVAR(module_doc, "Windows::System::Diagnostics::DevicePortal");
628
-
629
617
 
630
- static PyModuleDef module_def
631
- = {PyModuleDef_HEAD_INIT,
632
- "_winrt_windows_system_diagnostics_deviceportal",
633
- module_doc,
634
- 0,
635
- nullptr,
636
- nullptr,
637
- nullptr,
638
- nullptr,
639
- nullptr};
618
+ PyDoc_STRVAR(module_doc, "Windows.System.Diagnostics.DevicePortal");
640
619
 
620
+ static PyModuleDef module_def = {
621
+ PyModuleDef_HEAD_INIT,
622
+ "_winrt_windows_system_diagnostics_deviceportal",
623
+ module_doc,
624
+ 0,
625
+ nullptr,
626
+ nullptr,
627
+ nullptr,
628
+ nullptr,
629
+ nullptr};
641
630
  } // py::cpp::Windows::System::Diagnostics::DevicePortal
642
631
 
643
632
  PyMODINIT_FUNC PyInit__winrt_windows_system_diagnostics_deviceportal(void) noexcept
@@ -1,7 +1,7 @@
1
1
  # WARNING: Please don't edit this file. It was automatically generated.
2
2
 
3
3
  [build-system]
4
- requires = ["setuptools", "setuptools-scm", "winrt-sdk"]
4
+ requires = ["setuptools", "winrt-sdk"]
5
5
  build-backend = "setuptools.build_meta"
6
6
 
7
7
  [project]
@@ -30,7 +30,7 @@ dependencies = { file = "requirements.txt" }
30
30
  optional-dependencies.all = { file = "all-requirements.txt" }
31
31
 
32
32
  [tool.setuptools.package-data]
33
- winrt = ["*.pyi"]
33
+ "*" = ["*.pyi", "py.typed"]
34
34
 
35
35
  [tool.cibuildwheel]
36
36
  # use local winrt-sdk build dependency
@@ -1,3 +1,3 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.2
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
2
2
 
3
- winrt-runtime==2.0.0-beta.2
3
+ winrt-runtime==2.1.0
@@ -0,0 +1,31 @@
1
+ # WARNING: Please don't edit this file. It was automatically generated.
2
+
3
+ from setuptools import Extension, setup
4
+ from setuptools.command.build_ext import build_ext
5
+ from winrt_sdk import get_include_dirs
6
+
7
+
8
+ class build_ext_ex(build_ext):
9
+ def build_extension(self, ext):
10
+ if self.compiler.compiler_type == "msvc":
11
+ ext.extra_compile_args = ["/std:c++20", "/permissive-"]
12
+ elif self.compiler.compiler_type == "mingw32":
13
+ ext.extra_compile_args = ["-std=c++20", "-D_WIN32_WINNT=_WIN32_WINNT_WIN10"]
14
+ ext.extra_link_args = ["-loleaut32"]
15
+ else:
16
+ raise ValueError(f"Unsupported compiler: {self.compiler.compiler_type}")
17
+
18
+ build_ext.build_extension(self, ext)
19
+
20
+
21
+ setup(
22
+ cmdclass = {'build_ext': build_ext_ex},
23
+ ext_modules=[
24
+ Extension(
25
+ "winrt._winrt_windows_system_diagnostics_deviceportal",
26
+ sources=["py.Windows.System.Diagnostics.DevicePortal.cpp"],
27
+ include_dirs=get_include_dirs(),
28
+ libraries=["windowsapp"],
29
+ )
30
+ ],
31
+ )
@@ -0,0 +1,65 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.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(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,4 +1,4 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.2
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
2
2
 
3
3
  import enum
4
4
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.System.Diagnostics.DevicePortal
3
- Version: 2.0.0b2
3
+ Version: 2.1.0
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
5
  License: MIT
6
6
  Project-URL: Documentation, https://pywinrt.readthedocs.io
@@ -12,7 +12,13 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
12
12
  Classifier: Intended Audience :: Developers
13
13
  Requires-Python: <3.13,>=3.9
14
14
  Description-Content-Type: text/markdown
15
+ Requires-Dist: winrt-runtime==2.1.0
15
16
  Provides-Extra: all
17
+ Requires-Dist: winrt-Windows.ApplicationModel.AppService[all]==2.1.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Foundation[all]==2.1.0; extra == "all"
19
+ Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.1.0; extra == "all"
20
+ Requires-Dist: winrt-Windows.Networking.Sockets[all]==2.1.0; extra == "all"
21
+ Requires-Dist: winrt-Windows.Web.Http[all]==2.1.0; extra == "all"
16
22
 
17
23
  <!-- warning: Please don't edit this file. It was automatically generated. -->
18
24
 
@@ -7,6 +7,7 @@ requirements.txt
7
7
  setup.py
8
8
  winrt/_winrt_windows_system_diagnostics_deviceportal.pyi
9
9
  winrt/windows/system/diagnostics/deviceportal/__init__.py
10
+ winrt/windows/system/diagnostics/deviceportal/py.typed
10
11
  winrt_Windows.System.Diagnostics.DevicePortal.egg-info/PKG-INFO
11
12
  winrt_Windows.System.Diagnostics.DevicePortal.egg-info/SOURCES.txt
12
13
  winrt_Windows.System.Diagnostics.DevicePortal.egg-info/dependency_links.txt
@@ -0,0 +1,8 @@
1
+ winrt-runtime==2.1.0
2
+
3
+ [all]
4
+ winrt-Windows.ApplicationModel.AppService[all]==2.1.0
5
+ winrt-Windows.Foundation[all]==2.1.0
6
+ winrt-Windows.Foundation.Collections[all]==2.1.0
7
+ winrt-Windows.Networking.Sockets[all]==2.1.0
8
+ winrt-Windows.Web.Http[all]==2.1.0
@@ -1,7 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.2
2
-
3
- winrt-Windows.ApplicationModel.AppService[all]==2.0.0-beta.2
4
- winrt-Windows.Foundation[all]==2.0.0-beta.2
5
- winrt-Windows.Foundation.Collections[all]==2.0.0-beta.2
6
- winrt-Windows.Networking.Sockets[all]==2.0.0-beta.2
7
- winrt-Windows.Web.Http[all]==2.0.0-beta.2
@@ -1,16 +0,0 @@
1
- # WARNING: Please don't edit this file. It was automatically generated.
2
-
3
- from setuptools import Extension, setup
4
- from winrt_sdk import get_include_dirs
5
-
6
- setup(
7
- ext_modules=[
8
- Extension(
9
- "winrt._winrt_windows_system_diagnostics_deviceportal",
10
- sources=["py.Windows.System.Diagnostics.DevicePortal.cpp"],
11
- include_dirs=get_include_dirs(),
12
- extra_compile_args=["/std:c++20", "/permissive-"],
13
- libraries=["windowsapp"],
14
- )
15
- ],
16
- )
@@ -1,65 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.2
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
13
- import winrt.windows.foundation
14
- import winrt.windows.foundation.collections
15
- import winrt.windows.networking.sockets
16
- import winrt.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[winrt.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[winrt.windows.web.http.HttpRequestMessage], /) -> typing.Optional[winrt.windows.networking.sockets.ServerMessageWebSocket]: ...
32
- @typing.overload
33
- def get_server_message_web_socket_for_request(self, request: typing.Optional[winrt.windows.web.http.HttpRequestMessage], message_type: winrt.windows.networking.sockets.SocketMessageType, protocol: str, /) -> typing.Optional[winrt.windows.networking.sockets.ServerMessageWebSocket]: ...
34
- @typing.overload
35
- def get_server_message_web_socket_for_request(self, request: typing.Optional[winrt.windows.web.http.HttpRequestMessage], message_type: winrt.windows.networking.sockets.SocketMessageType, protocol: str, outbound_buffer_size_in_bytes: winrt.system.UInt32, max_message_size: winrt.system.UInt32, receive_mode: winrt.windows.networking.sockets.MessageWebSocketReceiveMode, /) -> typing.Optional[winrt.windows.networking.sockets.ServerMessageWebSocket]: ...
36
- @typing.overload
37
- def get_server_stream_web_socket_for_request(self, request: typing.Optional[winrt.windows.web.http.HttpRequestMessage], /) -> typing.Optional[winrt.windows.networking.sockets.ServerStreamWebSocket]: ...
38
- @typing.overload
39
- def get_server_stream_web_socket_for_request(self, request: typing.Optional[winrt.windows.web.http.HttpRequestMessage], protocol: str, outbound_buffer_size_in_bytes: winrt.system.UInt32, no_delay: bool, /) -> typing.Optional[winrt.windows.networking.sockets.ServerStreamWebSocket]: ...
40
- def add_closed(self, handler: winrt.windows.foundation.TypedEventHandler[DevicePortalConnection, DevicePortalConnectionClosedEventArgs], /) -> winrt.windows.foundation.EventRegistrationToken: ...
41
- def remove_closed(self, token: winrt.windows.foundation.EventRegistrationToken, /) -> None: ...
42
- def add_request_received(self, handler: winrt.windows.foundation.TypedEventHandler[DevicePortalConnection, DevicePortalConnectionRequestReceivedEventArgs], /) -> winrt.windows.foundation.EventRegistrationToken: ...
43
- def remove_request_received(self, token: winrt.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[winrt.windows.foundation.Deferral]: ...
57
- @_property
58
- def request_message(self) -> typing.Optional[winrt.windows.web.http.HttpRequestMessage]: ...
59
- @_property
60
- def response_message(self) -> typing.Optional[winrt.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[winrt.windows.foundation.collections.IVectorView[str]]: ...
65
-
@@ -1,8 +0,0 @@
1
- winrt-runtime==2.0.0-beta.2
2
-
3
- [all]
4
- winrt-Windows.ApplicationModel.AppService[all]==2.0.0-beta.2
5
- winrt-Windows.Foundation[all]==2.0.0-beta.2
6
- winrt-Windows.Foundation.Collections[all]==2.0.0-beta.2
7
- winrt-Windows.Networking.Sockets[all]==2.0.0-beta.2
8
- winrt-Windows.Web.Http[all]==2.0.0-beta.2