winrt-Windows.Networking.ServiceDiscovery.Dnssd 2.1.0__tar.gz → 2.2.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 (20) hide show
  1. {winrt_windows_networking_servicediscovery_dnssd-2.1.0 → winrt_windows_networking_servicediscovery_dnssd-2.2.0}/PKG-INFO +8 -8
  2. winrt_windows_networking_servicediscovery_dnssd-2.2.0/all-requirements.txt +7 -0
  3. {winrt_windows_networking_servicediscovery_dnssd-2.1.0 → winrt_windows_networking_servicediscovery_dnssd-2.2.0}/py.Windows.Networking.ServiceDiscovery.Dnssd.cpp +283 -41
  4. {winrt_windows_networking_servicediscovery_dnssd-2.1.0 → winrt_windows_networking_servicediscovery_dnssd-2.2.0}/pyproject.toml +3 -2
  5. winrt_windows_networking_servicediscovery_dnssd-2.2.0/pywinrt-version.txt +1 -0
  6. {winrt_windows_networking_servicediscovery_dnssd-2.1.0 → winrt_windows_networking_servicediscovery_dnssd-2.2.0}/requirements.txt +2 -2
  7. {winrt_windows_networking_servicediscovery_dnssd-2.1.0 → winrt_windows_networking_servicediscovery_dnssd-2.2.0}/winrt/_winrt_windows_networking_servicediscovery_dnssd.pyi +1 -1
  8. {winrt_windows_networking_servicediscovery_dnssd-2.1.0 → winrt_windows_networking_servicediscovery_dnssd-2.2.0}/winrt/windows/networking/servicediscovery/dnssd/__init__.py +1 -1
  9. {winrt_windows_networking_servicediscovery_dnssd-2.1.0 → winrt_windows_networking_servicediscovery_dnssd-2.2.0}/winrt_Windows.Networking.ServiceDiscovery.Dnssd.egg-info/PKG-INFO +8 -8
  10. winrt_windows_networking_servicediscovery_dnssd-2.2.0/winrt_Windows.Networking.ServiceDiscovery.Dnssd.egg-info/requires.txt +8 -0
  11. winrt_windows_networking_servicediscovery_dnssd-2.1.0/all-requirements.txt +0 -7
  12. winrt_windows_networking_servicediscovery_dnssd-2.1.0/pywinrt-version.txt +0 -1
  13. winrt_windows_networking_servicediscovery_dnssd-2.1.0/winrt_Windows.Networking.ServiceDiscovery.Dnssd.egg-info/requires.txt +0 -8
  14. {winrt_windows_networking_servicediscovery_dnssd-2.1.0 → winrt_windows_networking_servicediscovery_dnssd-2.2.0}/README.md +0 -0
  15. {winrt_windows_networking_servicediscovery_dnssd-2.1.0 → winrt_windows_networking_servicediscovery_dnssd-2.2.0}/setup.cfg +0 -0
  16. {winrt_windows_networking_servicediscovery_dnssd-2.1.0 → winrt_windows_networking_servicediscovery_dnssd-2.2.0}/setup.py +0 -0
  17. {winrt_windows_networking_servicediscovery_dnssd-2.1.0 → winrt_windows_networking_servicediscovery_dnssd-2.2.0}/winrt/windows/networking/servicediscovery/dnssd/py.typed +0 -0
  18. {winrt_windows_networking_servicediscovery_dnssd-2.1.0 → winrt_windows_networking_servicediscovery_dnssd-2.2.0}/winrt_Windows.Networking.ServiceDiscovery.Dnssd.egg-info/SOURCES.txt +0 -0
  19. {winrt_windows_networking_servicediscovery_dnssd-2.1.0 → winrt_windows_networking_servicediscovery_dnssd-2.2.0}/winrt_Windows.Networking.ServiceDiscovery.Dnssd.egg-info/dependency_links.txt +0 -0
  20. {winrt_windows_networking_servicediscovery_dnssd-2.1.0 → winrt_windows_networking_servicediscovery_dnssd-2.2.0}/winrt_Windows.Networking.ServiceDiscovery.Dnssd.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.Networking.ServiceDiscovery.Dnssd
3
- Version: 2.1.0
3
+ Version: 2.2.0
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
5
  License: MIT
6
6
  Project-URL: Documentation, https://pywinrt.readthedocs.io
@@ -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.13,>=3.9
13
+ Requires-Python: <3.14,>=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==2.1.0
15
+ Requires-Dist: winrt-runtime==2.2.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.Foundation[all]==2.1.0; extra == "all"
18
- Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.1.0; extra == "all"
19
- Requires-Dist: winrt-Windows.Networking[all]==2.1.0; extra == "all"
20
- Requires-Dist: winrt-Windows.Networking.Connectivity[all]==2.1.0; extra == "all"
21
- Requires-Dist: winrt-Windows.Networking.Sockets[all]==2.1.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.Foundation[all]==2.2.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.2.0; extra == "all"
19
+ Requires-Dist: winrt-Windows.Networking[all]==2.2.0; extra == "all"
20
+ Requires-Dist: winrt-Windows.Networking.Connectivity[all]==2.2.0; extra == "all"
21
+ Requires-Dist: winrt-Windows.Networking.Sockets[all]==2.2.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 v2.2.0
2
+
3
+ winrt-Windows.Foundation[all]==2.2.0
4
+ winrt-Windows.Foundation.Collections[all]==2.2.0
5
+ winrt-Windows.Networking[all]==2.2.0
6
+ winrt-Windows.Networking.Connectivity[all]==2.2.0
7
+ winrt-Windows.Networking.Sockets[all]==2.2.0
@@ -1,4 +1,4 @@
1
- // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
1
+ // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
2
 
3
3
  #include "py.Windows.Networking.ServiceDiscovery.Dnssd.h"
4
4
 
@@ -19,7 +19,7 @@ namespace py::cpp::Windows::Networking::ServiceDiscovery::Dnssd
19
19
  {
20
20
  try
21
21
  {
22
- winrt::Windows::Networking::ServiceDiscovery::Dnssd::DnssdRegistrationResult instance{ };
22
+ winrt::Windows::Networking::ServiceDiscovery::Dnssd::DnssdRegistrationResult instance{};
23
23
  return py::wrap(instance, type);
24
24
  }
25
25
  catch (...)
@@ -51,7 +51,14 @@ namespace py::cpp::Windows::Networking::ServiceDiscovery::Dnssd
51
51
  {
52
52
  try
53
53
  {
54
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdRegistrationResult", L"ToString", 0))
54
+ static std::optional<bool> is_overload_present{};
55
+
56
+ if (!is_overload_present.has_value())
57
+ {
58
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdRegistrationResult", L"ToString", 0);
59
+ }
60
+
61
+ if (!is_overload_present.value())
55
62
  {
56
63
  py::set_arg_count_version_error(0);
57
64
  return nullptr;
@@ -76,7 +83,14 @@ namespace py::cpp::Windows::Networking::ServiceDiscovery::Dnssd
76
83
  {
77
84
  try
78
85
  {
79
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdRegistrationResult", L"HasInstanceNameChanged"))
86
+ static std::optional<bool> is_property_present{};
87
+
88
+ if (!is_property_present.has_value())
89
+ {
90
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdRegistrationResult", L"HasInstanceNameChanged");
91
+ }
92
+
93
+ if (!is_property_present.value())
80
94
  {
81
95
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
82
96
  return nullptr;
@@ -95,7 +109,14 @@ namespace py::cpp::Windows::Networking::ServiceDiscovery::Dnssd
95
109
  {
96
110
  try
97
111
  {
98
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdRegistrationResult", L"IPAddress"))
112
+ static std::optional<bool> is_property_present{};
113
+
114
+ if (!is_property_present.has_value())
115
+ {
116
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdRegistrationResult", L"IPAddress");
117
+ }
118
+
119
+ if (!is_property_present.value())
99
120
  {
100
121
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
101
122
  return nullptr;
@@ -114,7 +135,14 @@ namespace py::cpp::Windows::Networking::ServiceDiscovery::Dnssd
114
135
  {
115
136
  try
116
137
  {
117
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdRegistrationResult", L"Status"))
138
+ static std::optional<bool> is_property_present{};
139
+
140
+ if (!is_property_present.has_value())
141
+ {
142
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdRegistrationResult", L"Status");
143
+ }
144
+
145
+ if (!is_property_present.value())
118
146
  {
119
147
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
120
148
  return nullptr;
@@ -215,7 +243,7 @@ namespace py::cpp::Windows::Networking::ServiceDiscovery::Dnssd
215
243
  auto param1 = py::convert_to<winrt::Windows::Networking::HostName>(args, 1);
216
244
  auto param2 = py::convert_to<uint16_t>(args, 2);
217
245
 
218
- winrt::Windows::Networking::ServiceDiscovery::Dnssd::DnssdServiceInstance instance{ param0, param1, param2 };
246
+ winrt::Windows::Networking::ServiceDiscovery::Dnssd::DnssdServiceInstance instance{param0, param1, param2};
219
247
  return py::wrap(instance, type);
220
248
  }
221
249
  catch (...)
@@ -247,7 +275,14 @@ namespace py::cpp::Windows::Networking::ServiceDiscovery::Dnssd
247
275
  {
248
276
  try
249
277
  {
250
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstance", L"RegisterDatagramSocketAsync", 1))
278
+ static std::optional<bool> is_overload_present{};
279
+
280
+ if (!is_overload_present.has_value())
281
+ {
282
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstance", L"RegisterDatagramSocketAsync", 1);
283
+ }
284
+
285
+ if (!is_overload_present.value())
251
286
  {
252
287
  py::set_arg_count_version_error(1);
253
288
  return nullptr;
@@ -267,7 +302,14 @@ namespace py::cpp::Windows::Networking::ServiceDiscovery::Dnssd
267
302
  {
268
303
  try
269
304
  {
270
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstance", L"RegisterDatagramSocketAsync", 2))
305
+ static std::optional<bool> is_overload_present{};
306
+
307
+ if (!is_overload_present.has_value())
308
+ {
309
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstance", L"RegisterDatagramSocketAsync", 2);
310
+ }
311
+
312
+ if (!is_overload_present.value())
271
313
  {
272
314
  py::set_arg_count_version_error(2);
273
315
  return nullptr;
@@ -299,7 +341,14 @@ namespace py::cpp::Windows::Networking::ServiceDiscovery::Dnssd
299
341
  {
300
342
  try
301
343
  {
302
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstance", L"RegisterStreamSocketListenerAsync", 1))
344
+ static std::optional<bool> is_overload_present{};
345
+
346
+ if (!is_overload_present.has_value())
347
+ {
348
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstance", L"RegisterStreamSocketListenerAsync", 1);
349
+ }
350
+
351
+ if (!is_overload_present.value())
303
352
  {
304
353
  py::set_arg_count_version_error(1);
305
354
  return nullptr;
@@ -319,7 +368,14 @@ namespace py::cpp::Windows::Networking::ServiceDiscovery::Dnssd
319
368
  {
320
369
  try
321
370
  {
322
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstance", L"RegisterStreamSocketListenerAsync", 2))
371
+ static std::optional<bool> is_overload_present{};
372
+
373
+ if (!is_overload_present.has_value())
374
+ {
375
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstance", L"RegisterStreamSocketListenerAsync", 2);
376
+ }
377
+
378
+ if (!is_overload_present.value())
323
379
  {
324
380
  py::set_arg_count_version_error(2);
325
381
  return nullptr;
@@ -351,7 +407,14 @@ namespace py::cpp::Windows::Networking::ServiceDiscovery::Dnssd
351
407
  {
352
408
  try
353
409
  {
354
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstance", L"ToString", 0))
410
+ static std::optional<bool> is_overload_present{};
411
+
412
+ if (!is_overload_present.has_value())
413
+ {
414
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstance", L"ToString", 0);
415
+ }
416
+
417
+ if (!is_overload_present.value())
355
418
  {
356
419
  py::set_arg_count_version_error(0);
357
420
  return nullptr;
@@ -376,7 +439,14 @@ namespace py::cpp::Windows::Networking::ServiceDiscovery::Dnssd
376
439
  {
377
440
  try
378
441
  {
379
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstance", L"Weight"))
442
+ static std::optional<bool> is_property_present{};
443
+
444
+ if (!is_property_present.has_value())
445
+ {
446
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstance", L"Weight");
447
+ }
448
+
449
+ if (!is_property_present.value())
380
450
  {
381
451
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
382
452
  return nullptr;
@@ -401,7 +471,14 @@ namespace py::cpp::Windows::Networking::ServiceDiscovery::Dnssd
401
471
 
402
472
  try
403
473
  {
404
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstance", L"Weight"))
474
+ static std::optional<bool> is_property_present{};
475
+
476
+ if (!is_property_present.has_value())
477
+ {
478
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstance", L"Weight");
479
+ }
480
+
481
+ if (!is_property_present.value())
405
482
  {
406
483
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
407
484
  return -1;
@@ -423,7 +500,14 @@ namespace py::cpp::Windows::Networking::ServiceDiscovery::Dnssd
423
500
  {
424
501
  try
425
502
  {
426
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstance", L"Priority"))
503
+ static std::optional<bool> is_property_present{};
504
+
505
+ if (!is_property_present.has_value())
506
+ {
507
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstance", L"Priority");
508
+ }
509
+
510
+ if (!is_property_present.value())
427
511
  {
428
512
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
429
513
  return nullptr;
@@ -448,7 +532,14 @@ namespace py::cpp::Windows::Networking::ServiceDiscovery::Dnssd
448
532
 
449
533
  try
450
534
  {
451
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstance", L"Priority"))
535
+ static std::optional<bool> is_property_present{};
536
+
537
+ if (!is_property_present.has_value())
538
+ {
539
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstance", L"Priority");
540
+ }
541
+
542
+ if (!is_property_present.value())
452
543
  {
453
544
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
454
545
  return -1;
@@ -470,7 +561,14 @@ namespace py::cpp::Windows::Networking::ServiceDiscovery::Dnssd
470
561
  {
471
562
  try
472
563
  {
473
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstance", L"Port"))
564
+ static std::optional<bool> is_property_present{};
565
+
566
+ if (!is_property_present.has_value())
567
+ {
568
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstance", L"Port");
569
+ }
570
+
571
+ if (!is_property_present.value())
474
572
  {
475
573
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
476
574
  return nullptr;
@@ -495,7 +593,14 @@ namespace py::cpp::Windows::Networking::ServiceDiscovery::Dnssd
495
593
 
496
594
  try
497
595
  {
498
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstance", L"Port"))
596
+ static std::optional<bool> is_property_present{};
597
+
598
+ if (!is_property_present.has_value())
599
+ {
600
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstance", L"Port");
601
+ }
602
+
603
+ if (!is_property_present.value())
499
604
  {
500
605
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
501
606
  return -1;
@@ -517,7 +622,14 @@ namespace py::cpp::Windows::Networking::ServiceDiscovery::Dnssd
517
622
  {
518
623
  try
519
624
  {
520
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstance", L"HostName"))
625
+ static std::optional<bool> is_property_present{};
626
+
627
+ if (!is_property_present.has_value())
628
+ {
629
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstance", L"HostName");
630
+ }
631
+
632
+ if (!is_property_present.value())
521
633
  {
522
634
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
523
635
  return nullptr;
@@ -542,7 +654,14 @@ namespace py::cpp::Windows::Networking::ServiceDiscovery::Dnssd
542
654
 
543
655
  try
544
656
  {
545
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstance", L"HostName"))
657
+ static std::optional<bool> is_property_present{};
658
+
659
+ if (!is_property_present.has_value())
660
+ {
661
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstance", L"HostName");
662
+ }
663
+
664
+ if (!is_property_present.value())
546
665
  {
547
666
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
548
667
  return -1;
@@ -564,7 +683,14 @@ namespace py::cpp::Windows::Networking::ServiceDiscovery::Dnssd
564
683
  {
565
684
  try
566
685
  {
567
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstance", L"DnssdServiceInstanceName"))
686
+ static std::optional<bool> is_property_present{};
687
+
688
+ if (!is_property_present.has_value())
689
+ {
690
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstance", L"DnssdServiceInstanceName");
691
+ }
692
+
693
+ if (!is_property_present.value())
568
694
  {
569
695
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
570
696
  return nullptr;
@@ -589,7 +715,14 @@ namespace py::cpp::Windows::Networking::ServiceDiscovery::Dnssd
589
715
 
590
716
  try
591
717
  {
592
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstance", L"DnssdServiceInstanceName"))
718
+ static std::optional<bool> is_property_present{};
719
+
720
+ if (!is_property_present.has_value())
721
+ {
722
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstance", L"DnssdServiceInstanceName");
723
+ }
724
+
725
+ if (!is_property_present.value())
593
726
  {
594
727
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
595
728
  return -1;
@@ -611,7 +744,14 @@ namespace py::cpp::Windows::Networking::ServiceDiscovery::Dnssd
611
744
  {
612
745
  try
613
746
  {
614
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstance", L"TextAttributes"))
747
+ static std::optional<bool> is_property_present{};
748
+
749
+ if (!is_property_present.has_value())
750
+ {
751
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstance", L"TextAttributes");
752
+ }
753
+
754
+ if (!is_property_present.value())
615
755
  {
616
756
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
617
757
  return nullptr;
@@ -723,7 +863,14 @@ namespace py::cpp::Windows::Networking::ServiceDiscovery::Dnssd
723
863
  {
724
864
  try
725
865
  {
726
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstanceCollection", L"First", 0))
866
+ static std::optional<bool> is_overload_present{};
867
+
868
+ if (!is_overload_present.has_value())
869
+ {
870
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstanceCollection", L"First", 0);
871
+ }
872
+
873
+ if (!is_overload_present.value())
727
874
  {
728
875
  py::set_arg_count_version_error(0);
729
876
  return nullptr;
@@ -752,7 +899,14 @@ namespace py::cpp::Windows::Networking::ServiceDiscovery::Dnssd
752
899
  {
753
900
  try
754
901
  {
755
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstanceCollection", L"GetAt", 1))
902
+ static std::optional<bool> is_overload_present{};
903
+
904
+ if (!is_overload_present.has_value())
905
+ {
906
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstanceCollection", L"GetAt", 1);
907
+ }
908
+
909
+ if (!is_overload_present.value())
756
910
  {
757
911
  py::set_arg_count_version_error(1);
758
912
  return nullptr;
@@ -783,7 +937,14 @@ namespace py::cpp::Windows::Networking::ServiceDiscovery::Dnssd
783
937
  {
784
938
  try
785
939
  {
786
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstanceCollection", L"GetMany", 1))
940
+ static std::optional<bool> is_overload_present{};
941
+
942
+ if (!is_overload_present.has_value())
943
+ {
944
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstanceCollection", L"GetMany", 1);
945
+ }
946
+
947
+ if (!is_overload_present.value())
787
948
  {
788
949
  py::set_arg_count_version_error(1);
789
950
  return nullptr;
@@ -815,7 +976,14 @@ namespace py::cpp::Windows::Networking::ServiceDiscovery::Dnssd
815
976
  {
816
977
  try
817
978
  {
818
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstanceCollection", L"IndexOf", 1))
979
+ static std::optional<bool> is_overload_present{};
980
+
981
+ if (!is_overload_present.has_value())
982
+ {
983
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstanceCollection", L"IndexOf", 1);
984
+ }
985
+
986
+ if (!is_overload_present.value())
819
987
  {
820
988
  py::set_arg_count_version_error(1);
821
989
  return nullptr;
@@ -855,7 +1023,14 @@ namespace py::cpp::Windows::Networking::ServiceDiscovery::Dnssd
855
1023
  {
856
1024
  try
857
1025
  {
858
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstanceCollection", L"Size"))
1026
+ static std::optional<bool> is_property_present{};
1027
+
1028
+ if (!is_property_present.has_value())
1029
+ {
1030
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstanceCollection", L"Size");
1031
+ }
1032
+
1033
+ if (!is_property_present.value())
859
1034
  {
860
1035
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
861
1036
  return nullptr;
@@ -1052,7 +1227,14 @@ namespace py::cpp::Windows::Networking::ServiceDiscovery::Dnssd
1052
1227
  {
1053
1228
  try
1054
1229
  {
1055
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceWatcher", L"Start", 0))
1230
+ static std::optional<bool> is_overload_present{};
1231
+
1232
+ if (!is_overload_present.has_value())
1233
+ {
1234
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceWatcher", L"Start", 0);
1235
+ }
1236
+
1237
+ if (!is_overload_present.value())
1056
1238
  {
1057
1239
  py::set_arg_count_version_error(0);
1058
1240
  return nullptr;
@@ -1082,7 +1264,14 @@ namespace py::cpp::Windows::Networking::ServiceDiscovery::Dnssd
1082
1264
  {
1083
1265
  try
1084
1266
  {
1085
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceWatcher", L"Stop", 0))
1267
+ static std::optional<bool> is_overload_present{};
1268
+
1269
+ if (!is_overload_present.has_value())
1270
+ {
1271
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceWatcher", L"Stop", 0);
1272
+ }
1273
+
1274
+ if (!is_overload_present.value())
1086
1275
  {
1087
1276
  py::set_arg_count_version_error(0);
1088
1277
  return nullptr;
@@ -1108,7 +1297,14 @@ namespace py::cpp::Windows::Networking::ServiceDiscovery::Dnssd
1108
1297
  {
1109
1298
  try
1110
1299
  {
1111
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceWatcher", L"Status"))
1300
+ static std::optional<bool> is_property_present{};
1301
+
1302
+ if (!is_property_present.has_value())
1303
+ {
1304
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceWatcher", L"Status");
1305
+ }
1306
+
1307
+ if (!is_property_present.value())
1112
1308
  {
1113
1309
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1114
1310
  return nullptr;
@@ -1127,7 +1323,14 @@ namespace py::cpp::Windows::Networking::ServiceDiscovery::Dnssd
1127
1323
  {
1128
1324
  try
1129
1325
  {
1130
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceWatcher", L"Added"))
1326
+ static std::optional<bool> is_event_present{};
1327
+
1328
+ if (!is_event_present.has_value())
1329
+ {
1330
+ is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceWatcher", L"Added");
1331
+ }
1332
+
1333
+ if (!is_event_present.value())
1131
1334
  {
1132
1335
  PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
1133
1336
  return nullptr;
@@ -1148,7 +1351,14 @@ namespace py::cpp::Windows::Networking::ServiceDiscovery::Dnssd
1148
1351
  {
1149
1352
  try
1150
1353
  {
1151
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceWatcher", L"Added"))
1354
+ static std::optional<bool> is_event_present{};
1355
+
1356
+ if (!is_event_present.has_value())
1357
+ {
1358
+ is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceWatcher", L"Added");
1359
+ }
1360
+
1361
+ if (!is_event_present.value())
1152
1362
  {
1153
1363
  PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
1154
1364
  return nullptr;
@@ -1170,7 +1380,14 @@ namespace py::cpp::Windows::Networking::ServiceDiscovery::Dnssd
1170
1380
  {
1171
1381
  try
1172
1382
  {
1173
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceWatcher", L"EnumerationCompleted"))
1383
+ static std::optional<bool> is_event_present{};
1384
+
1385
+ if (!is_event_present.has_value())
1386
+ {
1387
+ is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceWatcher", L"EnumerationCompleted");
1388
+ }
1389
+
1390
+ if (!is_event_present.value())
1174
1391
  {
1175
1392
  PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
1176
1393
  return nullptr;
@@ -1191,7 +1408,14 @@ namespace py::cpp::Windows::Networking::ServiceDiscovery::Dnssd
1191
1408
  {
1192
1409
  try
1193
1410
  {
1194
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceWatcher", L"EnumerationCompleted"))
1411
+ static std::optional<bool> is_event_present{};
1412
+
1413
+ if (!is_event_present.has_value())
1414
+ {
1415
+ is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceWatcher", L"EnumerationCompleted");
1416
+ }
1417
+
1418
+ if (!is_event_present.value())
1195
1419
  {
1196
1420
  PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
1197
1421
  return nullptr;
@@ -1213,7 +1437,14 @@ namespace py::cpp::Windows::Networking::ServiceDiscovery::Dnssd
1213
1437
  {
1214
1438
  try
1215
1439
  {
1216
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceWatcher", L"Stopped"))
1440
+ static std::optional<bool> is_event_present{};
1441
+
1442
+ if (!is_event_present.has_value())
1443
+ {
1444
+ is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceWatcher", L"Stopped");
1445
+ }
1446
+
1447
+ if (!is_event_present.value())
1217
1448
  {
1218
1449
  PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
1219
1450
  return nullptr;
@@ -1234,7 +1465,14 @@ namespace py::cpp::Windows::Networking::ServiceDiscovery::Dnssd
1234
1465
  {
1235
1466
  try
1236
1467
  {
1237
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceWatcher", L"Stopped"))
1468
+ static std::optional<bool> is_event_present{};
1469
+
1470
+ if (!is_event_present.has_value())
1471
+ {
1472
+ is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceWatcher", L"Stopped");
1473
+ }
1474
+
1475
+ if (!is_event_present.value())
1238
1476
  {
1239
1477
  PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
1240
1478
  return nullptr;
@@ -1355,22 +1593,26 @@ PyMODINIT_FUNC PyInit__winrt_windows_networking_servicediscovery_dnssd(void) noe
1355
1593
  return nullptr;
1356
1594
  }
1357
1595
 
1358
- if (py::register_python_type(module.get(), &type_spec_DnssdRegistrationResult, object_bases.get(), nullptr) == -1)
1596
+ py::pytype_handle DnssdRegistrationResult_type{py::register_python_type(module.get(), &type_spec_DnssdRegistrationResult, object_bases.get(), nullptr)};
1597
+ if (!DnssdRegistrationResult_type)
1359
1598
  {
1360
1599
  return nullptr;
1361
1600
  }
1362
1601
 
1363
- if (py::register_python_type(module.get(), &type_spec_DnssdServiceInstance, object_bases.get(), nullptr) == -1)
1602
+ py::pytype_handle DnssdServiceInstance_type{py::register_python_type(module.get(), &type_spec_DnssdServiceInstance, object_bases.get(), nullptr)};
1603
+ if (!DnssdServiceInstance_type)
1364
1604
  {
1365
1605
  return nullptr;
1366
1606
  }
1367
1607
 
1368
- if (py::register_python_type(module.get(), &type_spec_DnssdServiceInstanceCollection, object_bases.get(), nullptr) == -1)
1608
+ py::pytype_handle DnssdServiceInstanceCollection_type{py::register_python_type(module.get(), &type_spec_DnssdServiceInstanceCollection, object_bases.get(), nullptr)};
1609
+ if (!DnssdServiceInstanceCollection_type)
1369
1610
  {
1370
1611
  return nullptr;
1371
1612
  }
1372
1613
 
1373
- if (py::register_python_type(module.get(), &type_spec_DnssdServiceWatcher, object_bases.get(), nullptr) == -1)
1614
+ py::pytype_handle DnssdServiceWatcher_type{py::register_python_type(module.get(), &type_spec_DnssdServiceWatcher, object_bases.get(), nullptr)};
1615
+ if (!DnssdServiceWatcher_type)
1374
1616
  {
1375
1617
  return nullptr;
1376
1618
  }
@@ -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.13"
19
+ requires-python = ">=3.9,<3.14"
20
20
 
21
21
  [project.urls]
22
22
  # Homepage = "https://github.com/pywinrt/pywinrt"
@@ -36,7 +36,8 @@ optional-dependencies.all = { file = "all-requirements.txt" }
36
36
  # use local winrt-sdk build dependency
37
37
  environment = { PYTHONPATH="../winrt-sdk/src" }
38
38
  # don't install winrt-sdk from PyPI
39
- build-frontend = { name = "build", args = ["--skip-dependency-check", "--no-isolation"] }
39
+ build-frontend = { name = "build[uv]", args = ["--skip-dependency-check", "--no-isolation"] }
40
+ before-build = "uv pip install setuptools"
40
41
  # don't build for PyPy
41
42
  skip = "pp*"
42
43
  # suppress warnings about ARM64 testing
@@ -1,3 +1,3 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
2
 
3
- winrt-runtime==2.1.0
3
+ winrt-runtime==2.2.0
@@ -1,4 +1,4 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
2
 
3
3
  import datetime
4
4
  import sys
@@ -1,4 +1,4 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
2
 
3
3
  import enum
4
4
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.Networking.ServiceDiscovery.Dnssd
3
- Version: 2.1.0
3
+ Version: 2.2.0
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
5
  License: MIT
6
6
  Project-URL: Documentation, https://pywinrt.readthedocs.io
@@ -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.13,>=3.9
13
+ Requires-Python: <3.14,>=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==2.1.0
15
+ Requires-Dist: winrt-runtime==2.2.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.Foundation[all]==2.1.0; extra == "all"
18
- Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.1.0; extra == "all"
19
- Requires-Dist: winrt-Windows.Networking[all]==2.1.0; extra == "all"
20
- Requires-Dist: winrt-Windows.Networking.Connectivity[all]==2.1.0; extra == "all"
21
- Requires-Dist: winrt-Windows.Networking.Sockets[all]==2.1.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.Foundation[all]==2.2.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.2.0; extra == "all"
19
+ Requires-Dist: winrt-Windows.Networking[all]==2.2.0; extra == "all"
20
+ Requires-Dist: winrt-Windows.Networking.Connectivity[all]==2.2.0; extra == "all"
21
+ Requires-Dist: winrt-Windows.Networking.Sockets[all]==2.2.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==2.2.0
2
+
3
+ [all]
4
+ winrt-Windows.Foundation[all]==2.2.0
5
+ winrt-Windows.Foundation.Collections[all]==2.2.0
6
+ winrt-Windows.Networking[all]==2.2.0
7
+ winrt-Windows.Networking.Connectivity[all]==2.2.0
8
+ winrt-Windows.Networking.Sockets[all]==2.2.0
@@ -1,7 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
2
-
3
- winrt-Windows.Foundation[all]==2.1.0
4
- winrt-Windows.Foundation.Collections[all]==2.1.0
5
- winrt-Windows.Networking[all]==2.1.0
6
- winrt-Windows.Networking.Connectivity[all]==2.1.0
7
- winrt-Windows.Networking.Sockets[all]==2.1.0
@@ -1,8 +0,0 @@
1
- winrt-runtime==2.1.0
2
-
3
- [all]
4
- winrt-Windows.Foundation[all]==2.1.0
5
- winrt-Windows.Foundation.Collections[all]==2.1.0
6
- winrt-Windows.Networking[all]==2.1.0
7
- winrt-Windows.Networking.Connectivity[all]==2.1.0
8
- winrt-Windows.Networking.Sockets[all]==2.1.0