winrt-Windows.Devices.Bluetooth.Background 2.1.0__tar.gz → 2.3.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.
- {winrt_windows_devices_bluetooth_background-2.1.0 → winrt_windows_devices_bluetooth_background-2.3.0}/PKG-INFO +11 -11
- winrt_windows_devices_bluetooth_background-2.3.0/all-requirements.txt +10 -0
- {winrt_windows_devices_bluetooth_background-2.1.0 → winrt_windows_devices_bluetooth_background-2.3.0}/py.Windows.Devices.Bluetooth.Background.cpp +233 -36
- {winrt_windows_devices_bluetooth_background-2.1.0 → winrt_windows_devices_bluetooth_background-2.3.0}/pyproject.toml +3 -2
- winrt_windows_devices_bluetooth_background-2.3.0/pywinrt-version.txt +1 -0
- {winrt_windows_devices_bluetooth_background-2.1.0 → winrt_windows_devices_bluetooth_background-2.3.0}/requirements.txt +2 -2
- {winrt_windows_devices_bluetooth_background-2.1.0 → winrt_windows_devices_bluetooth_background-2.3.0}/winrt/_winrt_windows_devices_bluetooth_background.pyi +1 -1
- {winrt_windows_devices_bluetooth_background-2.1.0 → winrt_windows_devices_bluetooth_background-2.3.0}/winrt/windows/devices/bluetooth/background/__init__.py +1 -1
- {winrt_windows_devices_bluetooth_background-2.1.0 → winrt_windows_devices_bluetooth_background-2.3.0}/winrt_Windows.Devices.Bluetooth.Background.egg-info/PKG-INFO +11 -11
- winrt_windows_devices_bluetooth_background-2.3.0/winrt_Windows.Devices.Bluetooth.Background.egg-info/requires.txt +11 -0
- winrt_windows_devices_bluetooth_background-2.1.0/all-requirements.txt +0 -10
- winrt_windows_devices_bluetooth_background-2.1.0/pywinrt-version.txt +0 -1
- winrt_windows_devices_bluetooth_background-2.1.0/winrt_Windows.Devices.Bluetooth.Background.egg-info/requires.txt +0 -11
- {winrt_windows_devices_bluetooth_background-2.1.0 → winrt_windows_devices_bluetooth_background-2.3.0}/README.md +0 -0
- {winrt_windows_devices_bluetooth_background-2.1.0 → winrt_windows_devices_bluetooth_background-2.3.0}/setup.cfg +0 -0
- {winrt_windows_devices_bluetooth_background-2.1.0 → winrt_windows_devices_bluetooth_background-2.3.0}/setup.py +0 -0
- {winrt_windows_devices_bluetooth_background-2.1.0 → winrt_windows_devices_bluetooth_background-2.3.0}/winrt/windows/devices/bluetooth/background/py.typed +0 -0
- {winrt_windows_devices_bluetooth_background-2.1.0 → winrt_windows_devices_bluetooth_background-2.3.0}/winrt_Windows.Devices.Bluetooth.Background.egg-info/SOURCES.txt +0 -0
- {winrt_windows_devices_bluetooth_background-2.1.0 → winrt_windows_devices_bluetooth_background-2.3.0}/winrt_Windows.Devices.Bluetooth.Background.egg-info/dependency_links.txt +0 -0
- {winrt_windows_devices_bluetooth_background-2.1.0 → winrt_windows_devices_bluetooth_background-2.3.0}/winrt_Windows.Devices.Bluetooth.Background.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.Devices.Bluetooth.Background
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.3.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,18 +10,18 @@ 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
|
+
Requires-Python: <3.14,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==2.
|
|
15
|
+
Requires-Dist: winrt-runtime==2.3.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Devices.Bluetooth[all]==2.
|
|
18
|
-
Requires-Dist: winrt-Windows.Devices.Bluetooth.Advertisement[all]==2.
|
|
19
|
-
Requires-Dist: winrt-Windows.Devices.Bluetooth.GenericAttributeProfile[all]==2.
|
|
20
|
-
Requires-Dist: winrt-Windows.Devices.Bluetooth.Rfcomm[all]==2.
|
|
21
|
-
Requires-Dist: winrt-Windows.Foundation[all]==2.
|
|
22
|
-
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.
|
|
23
|
-
Requires-Dist: winrt-Windows.Networking.Sockets[all]==2.
|
|
24
|
-
Requires-Dist: winrt-Windows.Storage.Streams[all]==2.
|
|
17
|
+
Requires-Dist: winrt-Windows.Devices.Bluetooth[all]==2.3.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Devices.Bluetooth.Advertisement[all]==2.3.0; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.Devices.Bluetooth.GenericAttributeProfile[all]==2.3.0; extra == "all"
|
|
20
|
+
Requires-Dist: winrt-Windows.Devices.Bluetooth.Rfcomm[all]==2.3.0; extra == "all"
|
|
21
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.3.0; extra == "all"
|
|
22
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.3.0; extra == "all"
|
|
23
|
+
Requires-Dist: winrt-Windows.Networking.Sockets[all]==2.3.0; extra == "all"
|
|
24
|
+
Requires-Dist: winrt-Windows.Storage.Streams[all]==2.3.0; extra == "all"
|
|
25
25
|
|
|
26
26
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
27
27
|
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
|
|
2
|
+
|
|
3
|
+
winrt-Windows.Devices.Bluetooth[all]==2.3.0
|
|
4
|
+
winrt-Windows.Devices.Bluetooth.Advertisement[all]==2.3.0
|
|
5
|
+
winrt-Windows.Devices.Bluetooth.GenericAttributeProfile[all]==2.3.0
|
|
6
|
+
winrt-Windows.Devices.Bluetooth.Rfcomm[all]==2.3.0
|
|
7
|
+
winrt-Windows.Foundation[all]==2.3.0
|
|
8
|
+
winrt-Windows.Foundation.Collections[all]==2.3.0
|
|
9
|
+
winrt-Windows.Networking.Sockets[all]==2.3.0
|
|
10
|
+
winrt-Windows.Storage.Streams[all]==2.3.0
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.
|
|
1
|
+
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
|
|
2
2
|
|
|
3
3
|
#include "py.Windows.Devices.Bluetooth.Background.h"
|
|
4
4
|
|
|
@@ -25,7 +25,14 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
|
|
|
25
25
|
{
|
|
26
26
|
try
|
|
27
27
|
{
|
|
28
|
-
|
|
28
|
+
static std::optional<bool> is_property_present{};
|
|
29
|
+
|
|
30
|
+
if (!is_property_present.has_value())
|
|
31
|
+
{
|
|
32
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Bluetooth.Background.BluetoothLEAdvertisementPublisherTriggerDetails", L"Error");
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
if (!is_property_present.value())
|
|
29
36
|
{
|
|
30
37
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
31
38
|
return nullptr;
|
|
@@ -44,7 +51,14 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
|
|
|
44
51
|
{
|
|
45
52
|
try
|
|
46
53
|
{
|
|
47
|
-
|
|
54
|
+
static std::optional<bool> is_property_present{};
|
|
55
|
+
|
|
56
|
+
if (!is_property_present.has_value())
|
|
57
|
+
{
|
|
58
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Bluetooth.Background.BluetoothLEAdvertisementPublisherTriggerDetails", L"Status");
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
if (!is_property_present.value())
|
|
48
62
|
{
|
|
49
63
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
50
64
|
return nullptr;
|
|
@@ -63,7 +77,14 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
|
|
|
63
77
|
{
|
|
64
78
|
try
|
|
65
79
|
{
|
|
66
|
-
|
|
80
|
+
static std::optional<bool> is_property_present{};
|
|
81
|
+
|
|
82
|
+
if (!is_property_present.has_value())
|
|
83
|
+
{
|
|
84
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Bluetooth.Background.BluetoothLEAdvertisementPublisherTriggerDetails", L"SelectedTransmitPowerLevelInDBm");
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
if (!is_property_present.value())
|
|
67
88
|
{
|
|
68
89
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
69
90
|
return nullptr;
|
|
@@ -151,7 +172,14 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
|
|
|
151
172
|
{
|
|
152
173
|
try
|
|
153
174
|
{
|
|
154
|
-
|
|
175
|
+
static std::optional<bool> is_property_present{};
|
|
176
|
+
|
|
177
|
+
if (!is_property_present.has_value())
|
|
178
|
+
{
|
|
179
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Bluetooth.Background.BluetoothLEAdvertisementWatcherTriggerDetails", L"Advertisements");
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
if (!is_property_present.value())
|
|
155
183
|
{
|
|
156
184
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
157
185
|
return nullptr;
|
|
@@ -170,7 +198,14 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
|
|
|
170
198
|
{
|
|
171
199
|
try
|
|
172
200
|
{
|
|
173
|
-
|
|
201
|
+
static std::optional<bool> is_property_present{};
|
|
202
|
+
|
|
203
|
+
if (!is_property_present.has_value())
|
|
204
|
+
{
|
|
205
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Bluetooth.Background.BluetoothLEAdvertisementWatcherTriggerDetails", L"Error");
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
if (!is_property_present.value())
|
|
174
209
|
{
|
|
175
210
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
176
211
|
return nullptr;
|
|
@@ -189,7 +224,14 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
|
|
|
189
224
|
{
|
|
190
225
|
try
|
|
191
226
|
{
|
|
192
|
-
|
|
227
|
+
static std::optional<bool> is_property_present{};
|
|
228
|
+
|
|
229
|
+
if (!is_property_present.has_value())
|
|
230
|
+
{
|
|
231
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Bluetooth.Background.BluetoothLEAdvertisementWatcherTriggerDetails", L"SignalStrengthFilter");
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
if (!is_property_present.value())
|
|
193
235
|
{
|
|
194
236
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
195
237
|
return nullptr;
|
|
@@ -277,7 +319,14 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
|
|
|
277
319
|
{
|
|
278
320
|
try
|
|
279
321
|
{
|
|
280
|
-
|
|
322
|
+
static std::optional<bool> is_property_present{};
|
|
323
|
+
|
|
324
|
+
if (!is_property_present.has_value())
|
|
325
|
+
{
|
|
326
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Bluetooth.Background.GattCharacteristicNotificationTriggerDetails", L"Characteristic");
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
if (!is_property_present.value())
|
|
281
330
|
{
|
|
282
331
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
283
332
|
return nullptr;
|
|
@@ -296,7 +345,14 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
|
|
|
296
345
|
{
|
|
297
346
|
try
|
|
298
347
|
{
|
|
299
|
-
|
|
348
|
+
static std::optional<bool> is_property_present{};
|
|
349
|
+
|
|
350
|
+
if (!is_property_present.has_value())
|
|
351
|
+
{
|
|
352
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Bluetooth.Background.GattCharacteristicNotificationTriggerDetails", L"Value");
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
if (!is_property_present.value())
|
|
300
356
|
{
|
|
301
357
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
302
358
|
return nullptr;
|
|
@@ -315,7 +371,14 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
|
|
|
315
371
|
{
|
|
316
372
|
try
|
|
317
373
|
{
|
|
318
|
-
|
|
374
|
+
static std::optional<bool> is_property_present{};
|
|
375
|
+
|
|
376
|
+
if (!is_property_present.has_value())
|
|
377
|
+
{
|
|
378
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Bluetooth.Background.GattCharacteristicNotificationTriggerDetails", L"Error");
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
if (!is_property_present.value())
|
|
319
382
|
{
|
|
320
383
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
321
384
|
return nullptr;
|
|
@@ -334,7 +397,14 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
|
|
|
334
397
|
{
|
|
335
398
|
try
|
|
336
399
|
{
|
|
337
|
-
|
|
400
|
+
static std::optional<bool> is_property_present{};
|
|
401
|
+
|
|
402
|
+
if (!is_property_present.has_value())
|
|
403
|
+
{
|
|
404
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Bluetooth.Background.GattCharacteristicNotificationTriggerDetails", L"EventTriggeringMode");
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
if (!is_property_present.value())
|
|
338
408
|
{
|
|
339
409
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
340
410
|
return nullptr;
|
|
@@ -353,7 +423,14 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
|
|
|
353
423
|
{
|
|
354
424
|
try
|
|
355
425
|
{
|
|
356
|
-
|
|
426
|
+
static std::optional<bool> is_property_present{};
|
|
427
|
+
|
|
428
|
+
if (!is_property_present.has_value())
|
|
429
|
+
{
|
|
430
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Bluetooth.Background.GattCharacteristicNotificationTriggerDetails", L"ValueChangedEvents");
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
if (!is_property_present.value())
|
|
357
434
|
{
|
|
358
435
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
359
436
|
return nullptr;
|
|
@@ -447,7 +524,14 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
|
|
|
447
524
|
{
|
|
448
525
|
try
|
|
449
526
|
{
|
|
450
|
-
|
|
527
|
+
static std::optional<bool> is_overload_present{};
|
|
528
|
+
|
|
529
|
+
if (!is_overload_present.has_value())
|
|
530
|
+
{
|
|
531
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Bluetooth.Background.GattServiceProviderConnection", L"Start", 0);
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
if (!is_overload_present.value())
|
|
451
535
|
{
|
|
452
536
|
py::set_arg_count_version_error(0);
|
|
453
537
|
return nullptr;
|
|
@@ -473,7 +557,14 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
|
|
|
473
557
|
{
|
|
474
558
|
try
|
|
475
559
|
{
|
|
476
|
-
|
|
560
|
+
static std::optional<bool> is_property_present{};
|
|
561
|
+
|
|
562
|
+
if (!is_property_present.has_value())
|
|
563
|
+
{
|
|
564
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Bluetooth.Background.GattServiceProviderConnection", L"Service");
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
if (!is_property_present.value())
|
|
477
568
|
{
|
|
478
569
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
479
570
|
return nullptr;
|
|
@@ -492,7 +583,14 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
|
|
|
492
583
|
{
|
|
493
584
|
try
|
|
494
585
|
{
|
|
495
|
-
|
|
586
|
+
static std::optional<bool> is_property_present{};
|
|
587
|
+
|
|
588
|
+
if (!is_property_present.has_value())
|
|
589
|
+
{
|
|
590
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Bluetooth.Background.GattServiceProviderConnection", L"TriggerId");
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
if (!is_property_present.value())
|
|
496
594
|
{
|
|
497
595
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
498
596
|
return nullptr;
|
|
@@ -511,7 +609,14 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
|
|
|
511
609
|
{
|
|
512
610
|
try
|
|
513
611
|
{
|
|
514
|
-
|
|
612
|
+
static std::optional<bool> is_property_present{};
|
|
613
|
+
|
|
614
|
+
if (!is_property_present.has_value())
|
|
615
|
+
{
|
|
616
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Bluetooth.Background.GattServiceProviderConnection", L"AllServices");
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
if (!is_property_present.value())
|
|
515
620
|
{
|
|
516
621
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
517
622
|
return nullptr;
|
|
@@ -625,7 +730,14 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
|
|
|
625
730
|
{
|
|
626
731
|
try
|
|
627
732
|
{
|
|
628
|
-
|
|
733
|
+
static std::optional<bool> is_property_present{};
|
|
734
|
+
|
|
735
|
+
if (!is_property_present.has_value())
|
|
736
|
+
{
|
|
737
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Bluetooth.Background.GattServiceProviderTriggerDetails", L"Connection");
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
if (!is_property_present.value())
|
|
629
741
|
{
|
|
630
742
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
631
743
|
return nullptr;
|
|
@@ -711,7 +823,14 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
|
|
|
711
823
|
{
|
|
712
824
|
try
|
|
713
825
|
{
|
|
714
|
-
|
|
826
|
+
static std::optional<bool> is_property_present{};
|
|
827
|
+
|
|
828
|
+
if (!is_property_present.has_value())
|
|
829
|
+
{
|
|
830
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Bluetooth.Background.RfcommConnectionTriggerDetails", L"Incoming");
|
|
831
|
+
}
|
|
832
|
+
|
|
833
|
+
if (!is_property_present.value())
|
|
715
834
|
{
|
|
716
835
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
717
836
|
return nullptr;
|
|
@@ -730,7 +849,14 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
|
|
|
730
849
|
{
|
|
731
850
|
try
|
|
732
851
|
{
|
|
733
|
-
|
|
852
|
+
static std::optional<bool> is_property_present{};
|
|
853
|
+
|
|
854
|
+
if (!is_property_present.has_value())
|
|
855
|
+
{
|
|
856
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Bluetooth.Background.RfcommConnectionTriggerDetails", L"RemoteDevice");
|
|
857
|
+
}
|
|
858
|
+
|
|
859
|
+
if (!is_property_present.value())
|
|
734
860
|
{
|
|
735
861
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
736
862
|
return nullptr;
|
|
@@ -749,7 +875,14 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
|
|
|
749
875
|
{
|
|
750
876
|
try
|
|
751
877
|
{
|
|
752
|
-
|
|
878
|
+
static std::optional<bool> is_property_present{};
|
|
879
|
+
|
|
880
|
+
if (!is_property_present.has_value())
|
|
881
|
+
{
|
|
882
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Bluetooth.Background.RfcommConnectionTriggerDetails", L"Socket");
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
if (!is_property_present.value())
|
|
753
886
|
{
|
|
754
887
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
755
888
|
return nullptr;
|
|
@@ -837,7 +970,14 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
|
|
|
837
970
|
{
|
|
838
971
|
try
|
|
839
972
|
{
|
|
840
|
-
|
|
973
|
+
static std::optional<bool> is_property_present{};
|
|
974
|
+
|
|
975
|
+
if (!is_property_present.has_value())
|
|
976
|
+
{
|
|
977
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Bluetooth.Background.RfcommInboundConnectionInformation", L"ServiceCapabilities");
|
|
978
|
+
}
|
|
979
|
+
|
|
980
|
+
if (!is_property_present.value())
|
|
841
981
|
{
|
|
842
982
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
843
983
|
return nullptr;
|
|
@@ -862,7 +1002,14 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
|
|
|
862
1002
|
|
|
863
1003
|
try
|
|
864
1004
|
{
|
|
865
|
-
|
|
1005
|
+
static std::optional<bool> is_property_present{};
|
|
1006
|
+
|
|
1007
|
+
if (!is_property_present.has_value())
|
|
1008
|
+
{
|
|
1009
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Bluetooth.Background.RfcommInboundConnectionInformation", L"ServiceCapabilities");
|
|
1010
|
+
}
|
|
1011
|
+
|
|
1012
|
+
if (!is_property_present.value())
|
|
866
1013
|
{
|
|
867
1014
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
868
1015
|
return -1;
|
|
@@ -884,7 +1031,14 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
|
|
|
884
1031
|
{
|
|
885
1032
|
try
|
|
886
1033
|
{
|
|
887
|
-
|
|
1034
|
+
static std::optional<bool> is_property_present{};
|
|
1035
|
+
|
|
1036
|
+
if (!is_property_present.has_value())
|
|
1037
|
+
{
|
|
1038
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Bluetooth.Background.RfcommInboundConnectionInformation", L"SdpRecord");
|
|
1039
|
+
}
|
|
1040
|
+
|
|
1041
|
+
if (!is_property_present.value())
|
|
888
1042
|
{
|
|
889
1043
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
890
1044
|
return nullptr;
|
|
@@ -909,7 +1063,14 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
|
|
|
909
1063
|
|
|
910
1064
|
try
|
|
911
1065
|
{
|
|
912
|
-
|
|
1066
|
+
static std::optional<bool> is_property_present{};
|
|
1067
|
+
|
|
1068
|
+
if (!is_property_present.has_value())
|
|
1069
|
+
{
|
|
1070
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Bluetooth.Background.RfcommInboundConnectionInformation", L"SdpRecord");
|
|
1071
|
+
}
|
|
1072
|
+
|
|
1073
|
+
if (!is_property_present.value())
|
|
913
1074
|
{
|
|
914
1075
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
915
1076
|
return -1;
|
|
@@ -931,7 +1092,14 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
|
|
|
931
1092
|
{
|
|
932
1093
|
try
|
|
933
1094
|
{
|
|
934
|
-
|
|
1095
|
+
static std::optional<bool> is_property_present{};
|
|
1096
|
+
|
|
1097
|
+
if (!is_property_present.has_value())
|
|
1098
|
+
{
|
|
1099
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Bluetooth.Background.RfcommInboundConnectionInformation", L"LocalServiceId");
|
|
1100
|
+
}
|
|
1101
|
+
|
|
1102
|
+
if (!is_property_present.value())
|
|
935
1103
|
{
|
|
936
1104
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
937
1105
|
return nullptr;
|
|
@@ -956,7 +1124,14 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
|
|
|
956
1124
|
|
|
957
1125
|
try
|
|
958
1126
|
{
|
|
959
|
-
|
|
1127
|
+
static std::optional<bool> is_property_present{};
|
|
1128
|
+
|
|
1129
|
+
if (!is_property_present.has_value())
|
|
1130
|
+
{
|
|
1131
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Bluetooth.Background.RfcommInboundConnectionInformation", L"LocalServiceId");
|
|
1132
|
+
}
|
|
1133
|
+
|
|
1134
|
+
if (!is_property_present.value())
|
|
960
1135
|
{
|
|
961
1136
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
962
1137
|
return -1;
|
|
@@ -1047,7 +1222,14 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
|
|
|
1047
1222
|
{
|
|
1048
1223
|
try
|
|
1049
1224
|
{
|
|
1050
|
-
|
|
1225
|
+
static std::optional<bool> is_property_present{};
|
|
1226
|
+
|
|
1227
|
+
if (!is_property_present.has_value())
|
|
1228
|
+
{
|
|
1229
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Bluetooth.Background.RfcommOutboundConnectionInformation", L"RemoteServiceId");
|
|
1230
|
+
}
|
|
1231
|
+
|
|
1232
|
+
if (!is_property_present.value())
|
|
1051
1233
|
{
|
|
1052
1234
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1053
1235
|
return nullptr;
|
|
@@ -1072,7 +1254,14 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
|
|
|
1072
1254
|
|
|
1073
1255
|
try
|
|
1074
1256
|
{
|
|
1075
|
-
|
|
1257
|
+
static std::optional<bool> is_property_present{};
|
|
1258
|
+
|
|
1259
|
+
if (!is_property_present.has_value())
|
|
1260
|
+
{
|
|
1261
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Bluetooth.Background.RfcommOutboundConnectionInformation", L"RemoteServiceId");
|
|
1262
|
+
}
|
|
1263
|
+
|
|
1264
|
+
if (!is_property_present.value())
|
|
1076
1265
|
{
|
|
1077
1266
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1078
1267
|
return -1;
|
|
@@ -1185,17 +1374,20 @@ PyMODINIT_FUNC PyInit__winrt_windows_devices_bluetooth_background(void) noexcept
|
|
|
1185
1374
|
return nullptr;
|
|
1186
1375
|
}
|
|
1187
1376
|
|
|
1188
|
-
|
|
1377
|
+
py::pytype_handle BluetoothLEAdvertisementPublisherTriggerDetails_type{py::register_python_type(module.get(), &type_spec_BluetoothLEAdvertisementPublisherTriggerDetails, object_bases.get(), nullptr)};
|
|
1378
|
+
if (!BluetoothLEAdvertisementPublisherTriggerDetails_type)
|
|
1189
1379
|
{
|
|
1190
1380
|
return nullptr;
|
|
1191
1381
|
}
|
|
1192
1382
|
|
|
1193
|
-
|
|
1383
|
+
py::pytype_handle BluetoothLEAdvertisementWatcherTriggerDetails_type{py::register_python_type(module.get(), &type_spec_BluetoothLEAdvertisementWatcherTriggerDetails, object_bases.get(), nullptr)};
|
|
1384
|
+
if (!BluetoothLEAdvertisementWatcherTriggerDetails_type)
|
|
1194
1385
|
{
|
|
1195
1386
|
return nullptr;
|
|
1196
1387
|
}
|
|
1197
1388
|
|
|
1198
|
-
|
|
1389
|
+
py::pytype_handle GattCharacteristicNotificationTriggerDetails_type{py::register_python_type(module.get(), &type_spec_GattCharacteristicNotificationTriggerDetails, object_bases.get(), nullptr)};
|
|
1390
|
+
if (!GattCharacteristicNotificationTriggerDetails_type)
|
|
1199
1391
|
{
|
|
1200
1392
|
return nullptr;
|
|
1201
1393
|
}
|
|
@@ -1206,27 +1398,32 @@ PyMODINIT_FUNC PyInit__winrt_windows_devices_bluetooth_background(void) noexcept
|
|
|
1206
1398
|
return nullptr;
|
|
1207
1399
|
}
|
|
1208
1400
|
|
|
1209
|
-
|
|
1401
|
+
py::pytype_handle GattServiceProviderConnection_type{py::register_python_type(module.get(), &type_spec_GattServiceProviderConnection, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_GattServiceProviderConnection_Static.get()))};
|
|
1402
|
+
if (!GattServiceProviderConnection_type)
|
|
1210
1403
|
{
|
|
1211
1404
|
return nullptr;
|
|
1212
1405
|
}
|
|
1213
1406
|
|
|
1214
|
-
|
|
1407
|
+
py::pytype_handle GattServiceProviderTriggerDetails_type{py::register_python_type(module.get(), &type_spec_GattServiceProviderTriggerDetails, object_bases.get(), nullptr)};
|
|
1408
|
+
if (!GattServiceProviderTriggerDetails_type)
|
|
1215
1409
|
{
|
|
1216
1410
|
return nullptr;
|
|
1217
1411
|
}
|
|
1218
1412
|
|
|
1219
|
-
|
|
1413
|
+
py::pytype_handle RfcommConnectionTriggerDetails_type{py::register_python_type(module.get(), &type_spec_RfcommConnectionTriggerDetails, object_bases.get(), nullptr)};
|
|
1414
|
+
if (!RfcommConnectionTriggerDetails_type)
|
|
1220
1415
|
{
|
|
1221
1416
|
return nullptr;
|
|
1222
1417
|
}
|
|
1223
1418
|
|
|
1224
|
-
|
|
1419
|
+
py::pytype_handle RfcommInboundConnectionInformation_type{py::register_python_type(module.get(), &type_spec_RfcommInboundConnectionInformation, object_bases.get(), nullptr)};
|
|
1420
|
+
if (!RfcommInboundConnectionInformation_type)
|
|
1225
1421
|
{
|
|
1226
1422
|
return nullptr;
|
|
1227
1423
|
}
|
|
1228
1424
|
|
|
1229
|
-
|
|
1425
|
+
py::pytype_handle RfcommOutboundConnectionInformation_type{py::register_python_type(module.get(), &type_spec_RfcommOutboundConnectionInformation, object_bases.get(), nullptr)};
|
|
1426
|
+
if (!RfcommOutboundConnectionInformation_type)
|
|
1230
1427
|
{
|
|
1231
1428
|
return nullptr;
|
|
1232
1429
|
}
|
|
@@ -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.
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.3.0
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
|
|
2
2
|
|
|
3
|
-
winrt-runtime==2.
|
|
3
|
+
winrt-runtime==2.3.0
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.Devices.Bluetooth.Background
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.3.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,18 +10,18 @@ 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
|
+
Requires-Python: <3.14,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==2.
|
|
15
|
+
Requires-Dist: winrt-runtime==2.3.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Devices.Bluetooth[all]==2.
|
|
18
|
-
Requires-Dist: winrt-Windows.Devices.Bluetooth.Advertisement[all]==2.
|
|
19
|
-
Requires-Dist: winrt-Windows.Devices.Bluetooth.GenericAttributeProfile[all]==2.
|
|
20
|
-
Requires-Dist: winrt-Windows.Devices.Bluetooth.Rfcomm[all]==2.
|
|
21
|
-
Requires-Dist: winrt-Windows.Foundation[all]==2.
|
|
22
|
-
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.
|
|
23
|
-
Requires-Dist: winrt-Windows.Networking.Sockets[all]==2.
|
|
24
|
-
Requires-Dist: winrt-Windows.Storage.Streams[all]==2.
|
|
17
|
+
Requires-Dist: winrt-Windows.Devices.Bluetooth[all]==2.3.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Devices.Bluetooth.Advertisement[all]==2.3.0; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.Devices.Bluetooth.GenericAttributeProfile[all]==2.3.0; extra == "all"
|
|
20
|
+
Requires-Dist: winrt-Windows.Devices.Bluetooth.Rfcomm[all]==2.3.0; extra == "all"
|
|
21
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.3.0; extra == "all"
|
|
22
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.3.0; extra == "all"
|
|
23
|
+
Requires-Dist: winrt-Windows.Networking.Sockets[all]==2.3.0; extra == "all"
|
|
24
|
+
Requires-Dist: winrt-Windows.Storage.Streams[all]==2.3.0; extra == "all"
|
|
25
25
|
|
|
26
26
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
27
27
|
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
winrt-runtime==2.3.0
|
|
2
|
+
|
|
3
|
+
[all]
|
|
4
|
+
winrt-Windows.Devices.Bluetooth[all]==2.3.0
|
|
5
|
+
winrt-Windows.Devices.Bluetooth.Advertisement[all]==2.3.0
|
|
6
|
+
winrt-Windows.Devices.Bluetooth.GenericAttributeProfile[all]==2.3.0
|
|
7
|
+
winrt-Windows.Devices.Bluetooth.Rfcomm[all]==2.3.0
|
|
8
|
+
winrt-Windows.Foundation[all]==2.3.0
|
|
9
|
+
winrt-Windows.Foundation.Collections[all]==2.3.0
|
|
10
|
+
winrt-Windows.Networking.Sockets[all]==2.3.0
|
|
11
|
+
winrt-Windows.Storage.Streams[all]==2.3.0
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
|
|
2
|
-
|
|
3
|
-
winrt-Windows.Devices.Bluetooth[all]==2.1.0
|
|
4
|
-
winrt-Windows.Devices.Bluetooth.Advertisement[all]==2.1.0
|
|
5
|
-
winrt-Windows.Devices.Bluetooth.GenericAttributeProfile[all]==2.1.0
|
|
6
|
-
winrt-Windows.Devices.Bluetooth.Rfcomm[all]==2.1.0
|
|
7
|
-
winrt-Windows.Foundation[all]==2.1.0
|
|
8
|
-
winrt-Windows.Foundation.Collections[all]==2.1.0
|
|
9
|
-
winrt-Windows.Networking.Sockets[all]==2.1.0
|
|
10
|
-
winrt-Windows.Storage.Streams[all]==2.1.0
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2.1.0
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
winrt-runtime==2.1.0
|
|
2
|
-
|
|
3
|
-
[all]
|
|
4
|
-
winrt-Windows.Devices.Bluetooth[all]==2.1.0
|
|
5
|
-
winrt-Windows.Devices.Bluetooth.Advertisement[all]==2.1.0
|
|
6
|
-
winrt-Windows.Devices.Bluetooth.GenericAttributeProfile[all]==2.1.0
|
|
7
|
-
winrt-Windows.Devices.Bluetooth.Rfcomm[all]==2.1.0
|
|
8
|
-
winrt-Windows.Foundation[all]==2.1.0
|
|
9
|
-
winrt-Windows.Foundation.Collections[all]==2.1.0
|
|
10
|
-
winrt-Windows.Networking.Sockets[all]==2.1.0
|
|
11
|
-
winrt-Windows.Storage.Streams[all]==2.1.0
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|