winrt-Windows.Security.DataProtection 2.3.0__tar.gz → 3.0.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (21) hide show
  1. {winrt_windows_security_dataprotection-2.3.0 → winrt_windows_security_dataprotection-3.0.0}/PKG-INFO +7 -7
  2. winrt_windows_security_dataprotection-3.0.0/all-requirements.txt +6 -0
  3. {winrt_windows_security_dataprotection-2.3.0 → winrt_windows_security_dataprotection-3.0.0}/py.Windows.Security.DataProtection.cpp +106 -58
  4. {winrt_windows_security_dataprotection-2.3.0 → winrt_windows_security_dataprotection-3.0.0}/pyproject.toml +2 -2
  5. winrt_windows_security_dataprotection-3.0.0/pywinrt-version.txt +1 -0
  6. {winrt_windows_security_dataprotection-2.3.0 → winrt_windows_security_dataprotection-3.0.0}/requirements.txt +2 -2
  7. {winrt_windows_security_dataprotection-2.3.0 → winrt_windows_security_dataprotection-3.0.0}/setup.py +1 -1
  8. winrt_windows_security_dataprotection-3.0.0/winrt/_winrt_windows_security_dataprotection.pyi +64 -0
  9. {winrt_windows_security_dataprotection-2.3.0 → winrt_windows_security_dataprotection-3.0.0}/winrt/windows/security/dataprotection/__init__.py +7 -6
  10. {winrt_windows_security_dataprotection-2.3.0 → winrt_windows_security_dataprotection-3.0.0}/winrt_Windows.Security.DataProtection.egg-info/PKG-INFO +7 -7
  11. winrt_windows_security_dataprotection-3.0.0/winrt_Windows.Security.DataProtection.egg-info/requires.txt +7 -0
  12. winrt_windows_security_dataprotection-2.3.0/all-requirements.txt +0 -6
  13. winrt_windows_security_dataprotection-2.3.0/pywinrt-version.txt +0 -1
  14. winrt_windows_security_dataprotection-2.3.0/winrt/_winrt_windows_security_dataprotection.pyi +0 -59
  15. winrt_windows_security_dataprotection-2.3.0/winrt_Windows.Security.DataProtection.egg-info/requires.txt +0 -7
  16. {winrt_windows_security_dataprotection-2.3.0 → winrt_windows_security_dataprotection-3.0.0}/README.md +0 -0
  17. {winrt_windows_security_dataprotection-2.3.0 → winrt_windows_security_dataprotection-3.0.0}/setup.cfg +0 -0
  18. {winrt_windows_security_dataprotection-2.3.0 → winrt_windows_security_dataprotection-3.0.0}/winrt/windows/security/dataprotection/py.typed +0 -0
  19. {winrt_windows_security_dataprotection-2.3.0 → winrt_windows_security_dataprotection-3.0.0}/winrt_Windows.Security.DataProtection.egg-info/SOURCES.txt +0 -0
  20. {winrt_windows_security_dataprotection-2.3.0 → winrt_windows_security_dataprotection-3.0.0}/winrt_Windows.Security.DataProtection.egg-info/dependency_links.txt +0 -0
  21. {winrt_windows_security_dataprotection-2.3.0 → winrt_windows_security_dataprotection-3.0.0}/winrt_Windows.Security.DataProtection.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.Security.DataProtection
3
- Version: 2.3.0
3
+ Version: 3.0.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,14 +10,14 @@ Classifier: Operating System :: Microsoft :: Windows
10
10
  Classifier: Programming Language :: Python :: 3
11
11
  Classifier: Programming Language :: Python :: Implementation :: CPython
12
12
  Classifier: Intended Audience :: Developers
13
- Requires-Python: <3.14,>=3.9
13
+ Requires-Python: >=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==2.3.0
15
+ Requires-Dist: winrt-runtime==3.0.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.Foundation[all]==2.3.0; extra == "all"
18
- Requires-Dist: winrt-Windows.Storage[all]==2.3.0; extra == "all"
19
- Requires-Dist: winrt-Windows.Storage.Streams[all]==2.3.0; extra == "all"
20
- Requires-Dist: winrt-Windows.System[all]==2.3.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.Foundation[all]==3.0.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Storage[all]==3.0.0; extra == "all"
19
+ Requires-Dist: winrt-Windows.Storage.Streams[all]==3.0.0; extra == "all"
20
+ Requires-Dist: winrt-Windows.System[all]==3.0.0; extra == "all"
21
21
 
22
22
  <!-- warning: Please don't edit this file. It was automatically generated. -->
23
23
 
@@ -0,0 +1,6 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
2
+
3
+ winrt-Windows.Foundation[all]==3.0.0
4
+ winrt-Windows.Storage[all]==3.0.0
5
+ winrt-Windows.Storage.Streams[all]==3.0.0
6
+ winrt-Windows.System[all]==3.0.0
@@ -1,4 +1,4 @@
1
- // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
1
+ // WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
2
2
 
3
3
  #include "py.Windows.Security.DataProtection.h"
4
4
 
@@ -23,7 +23,7 @@ namespace py::cpp::Windows::Security::DataProtection
23
23
 
24
24
  static PyObject* UserDataAvailabilityStateChangedEventArgs_GetDeferral(py::wrapper::Windows::Security::DataProtection::UserDataAvailabilityStateChangedEventArgs* self, PyObject* args) noexcept
25
25
  {
26
- auto arg_count = PyTuple_Size(args);
26
+ auto arg_count = PyTuple_GET_SIZE(args);
27
27
 
28
28
  if (arg_count == 0)
29
29
  {
@@ -42,7 +42,11 @@ namespace py::cpp::Windows::Security::DataProtection
42
42
  return nullptr;
43
43
  }
44
44
 
45
- return py::convert(self->obj.GetDeferral());
45
+ return py::convert([&]()
46
+ {
47
+ auto _gil = release_gil();
48
+ return self->obj.GetDeferral();
49
+ }());
46
50
  }
47
51
  catch (...)
48
52
  {
@@ -85,20 +89,17 @@ namespace py::cpp::Windows::Security::DataProtection
85
89
  { "get_deferral", reinterpret_cast<PyCFunction>(UserDataAvailabilityStateChangedEventArgs_GetDeferral), METH_VARARGS, nullptr },
86
90
  { "_assign_array_", _assign_array_UserDataAvailabilityStateChangedEventArgs, METH_O | METH_STATIC, nullptr },
87
91
  { "_from", reinterpret_cast<PyCFunction>(_from_UserDataAvailabilityStateChangedEventArgs), METH_O | METH_STATIC, nullptr },
88
- { }
89
- };
92
+ { }};
90
93
 
91
94
  static PyGetSetDef _getset_UserDataAvailabilityStateChangedEventArgs[] = {
92
- { }
93
- };
95
+ { }};
94
96
 
95
97
  static PyType_Slot _type_slots_UserDataAvailabilityStateChangedEventArgs[] = {
96
98
  { Py_tp_new, reinterpret_cast<void*>(_new_UserDataAvailabilityStateChangedEventArgs) },
97
99
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_UserDataAvailabilityStateChangedEventArgs) },
98
100
  { Py_tp_methods, reinterpret_cast<void*>(_methods_UserDataAvailabilityStateChangedEventArgs) },
99
101
  { Py_tp_getset, reinterpret_cast<void*>(_getset_UserDataAvailabilityStateChangedEventArgs) },
100
- { }
101
- };
102
+ { }};
102
103
 
103
104
  static PyType_Spec type_spec_UserDataAvailabilityStateChangedEventArgs = {
104
105
  "winrt._winrt_windows_security_dataprotection.UserDataAvailabilityStateChangedEventArgs",
@@ -141,7 +142,11 @@ namespace py::cpp::Windows::Security::DataProtection
141
142
  return nullptr;
142
143
  }
143
144
 
144
- return py::convert(self->obj.Status());
145
+ return py::convert([&]()
146
+ {
147
+ auto _gil = release_gil();
148
+ return self->obj.Status();
149
+ }());
145
150
  }
146
151
  catch (...)
147
152
  {
@@ -167,7 +172,11 @@ namespace py::cpp::Windows::Security::DataProtection
167
172
  return nullptr;
168
173
  }
169
174
 
170
- return py::convert(self->obj.UnprotectedBuffer());
175
+ return py::convert([&]()
176
+ {
177
+ auto _gil = release_gil();
178
+ return self->obj.UnprotectedBuffer();
179
+ }());
171
180
  }
172
181
  catch (...)
173
182
  {
@@ -203,22 +212,19 @@ namespace py::cpp::Windows::Security::DataProtection
203
212
  static PyMethodDef _methods_UserDataBufferUnprotectResult[] = {
204
213
  { "_assign_array_", _assign_array_UserDataBufferUnprotectResult, METH_O | METH_STATIC, nullptr },
205
214
  { "_from", reinterpret_cast<PyCFunction>(_from_UserDataBufferUnprotectResult), METH_O | METH_STATIC, nullptr },
206
- { }
207
- };
215
+ { }};
208
216
 
209
217
  static PyGetSetDef _getset_UserDataBufferUnprotectResult[] = {
210
218
  { "status", reinterpret_cast<getter>(UserDataBufferUnprotectResult_get_Status), nullptr, nullptr, nullptr },
211
219
  { "unprotected_buffer", reinterpret_cast<getter>(UserDataBufferUnprotectResult_get_UnprotectedBuffer), nullptr, nullptr, nullptr },
212
- { }
213
- };
220
+ { }};
214
221
 
215
222
  static PyType_Slot _type_slots_UserDataBufferUnprotectResult[] = {
216
223
  { Py_tp_new, reinterpret_cast<void*>(_new_UserDataBufferUnprotectResult) },
217
224
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_UserDataBufferUnprotectResult) },
218
225
  { Py_tp_methods, reinterpret_cast<void*>(_methods_UserDataBufferUnprotectResult) },
219
226
  { Py_tp_getset, reinterpret_cast<void*>(_getset_UserDataBufferUnprotectResult) },
220
- { }
221
- };
227
+ { }};
222
228
 
223
229
  static PyType_Spec type_spec_UserDataBufferUnprotectResult = {
224
230
  "winrt._winrt_windows_security_dataprotection.UserDataBufferUnprotectResult",
@@ -246,7 +252,7 @@ namespace py::cpp::Windows::Security::DataProtection
246
252
 
247
253
  static PyObject* UserDataProtectionManager_GetStorageItemProtectionInfoAsync(py::wrapper::Windows::Security::DataProtection::UserDataProtectionManager* self, PyObject* args) noexcept
248
254
  {
249
- auto arg_count = PyTuple_Size(args);
255
+ auto arg_count = PyTuple_GET_SIZE(args);
250
256
 
251
257
  if (arg_count == 1)
252
258
  {
@@ -267,7 +273,11 @@ namespace py::cpp::Windows::Security::DataProtection
267
273
 
268
274
  auto param0 = py::convert_to<winrt::Windows::Storage::IStorageItem>(args, 0);
269
275
 
270
- return py::convert(self->obj.GetStorageItemProtectionInfoAsync(param0));
276
+ return py::convert([&]()
277
+ {
278
+ auto _gil = release_gil();
279
+ return self->obj.GetStorageItemProtectionInfoAsync(param0);
280
+ }());
271
281
  }
272
282
  catch (...)
273
283
  {
@@ -284,7 +294,7 @@ namespace py::cpp::Windows::Security::DataProtection
284
294
 
285
295
  static PyObject* UserDataProtectionManager_IsContinuedDataAvailabilityExpected(py::wrapper::Windows::Security::DataProtection::UserDataProtectionManager* self, PyObject* args) noexcept
286
296
  {
287
- auto arg_count = PyTuple_Size(args);
297
+ auto arg_count = PyTuple_GET_SIZE(args);
288
298
 
289
299
  if (arg_count == 1)
290
300
  {
@@ -305,7 +315,11 @@ namespace py::cpp::Windows::Security::DataProtection
305
315
 
306
316
  auto param0 = py::convert_to<winrt::Windows::Security::DataProtection::UserDataAvailability>(args, 0);
307
317
 
308
- return py::convert(self->obj.IsContinuedDataAvailabilityExpected(param0));
318
+ return py::convert([&]()
319
+ {
320
+ auto _gil = release_gil();
321
+ return self->obj.IsContinuedDataAvailabilityExpected(param0);
322
+ }());
309
323
  }
310
324
  catch (...)
311
325
  {
@@ -322,7 +336,7 @@ namespace py::cpp::Windows::Security::DataProtection
322
336
 
323
337
  static PyObject* UserDataProtectionManager_ProtectBufferAsync(py::wrapper::Windows::Security::DataProtection::UserDataProtectionManager* self, PyObject* args) noexcept
324
338
  {
325
- auto arg_count = PyTuple_Size(args);
339
+ auto arg_count = PyTuple_GET_SIZE(args);
326
340
 
327
341
  if (arg_count == 2)
328
342
  {
@@ -344,7 +358,11 @@ namespace py::cpp::Windows::Security::DataProtection
344
358
  auto param0 = py::convert_to<winrt::Windows::Storage::Streams::IBuffer>(args, 0);
345
359
  auto param1 = py::convert_to<winrt::Windows::Security::DataProtection::UserDataAvailability>(args, 1);
346
360
 
347
- return py::convert(self->obj.ProtectBufferAsync(param0, param1));
361
+ return py::convert([&]()
362
+ {
363
+ auto _gil = release_gil();
364
+ return self->obj.ProtectBufferAsync(param0, param1);
365
+ }());
348
366
  }
349
367
  catch (...)
350
368
  {
@@ -361,7 +379,7 @@ namespace py::cpp::Windows::Security::DataProtection
361
379
 
362
380
  static PyObject* UserDataProtectionManager_ProtectStorageItemAsync(py::wrapper::Windows::Security::DataProtection::UserDataProtectionManager* self, PyObject* args) noexcept
363
381
  {
364
- auto arg_count = PyTuple_Size(args);
382
+ auto arg_count = PyTuple_GET_SIZE(args);
365
383
 
366
384
  if (arg_count == 2)
367
385
  {
@@ -383,7 +401,11 @@ namespace py::cpp::Windows::Security::DataProtection
383
401
  auto param0 = py::convert_to<winrt::Windows::Storage::IStorageItem>(args, 0);
384
402
  auto param1 = py::convert_to<winrt::Windows::Security::DataProtection::UserDataAvailability>(args, 1);
385
403
 
386
- return py::convert(self->obj.ProtectStorageItemAsync(param0, param1));
404
+ return py::convert([&]()
405
+ {
406
+ auto _gil = release_gil();
407
+ return self->obj.ProtectStorageItemAsync(param0, param1);
408
+ }());
387
409
  }
388
410
  catch (...)
389
411
  {
@@ -400,7 +422,7 @@ namespace py::cpp::Windows::Security::DataProtection
400
422
 
401
423
  static PyObject* UserDataProtectionManager_TryGetDefault(PyObject* /*unused*/, PyObject* args) noexcept
402
424
  {
403
- auto arg_count = PyTuple_Size(args);
425
+ auto arg_count = PyTuple_GET_SIZE(args);
404
426
 
405
427
  if (arg_count == 0)
406
428
  {
@@ -419,7 +441,11 @@ namespace py::cpp::Windows::Security::DataProtection
419
441
  return nullptr;
420
442
  }
421
443
 
422
- return py::convert(winrt::Windows::Security::DataProtection::UserDataProtectionManager::TryGetDefault());
444
+ return py::convert([&]()
445
+ {
446
+ auto _gil = release_gil();
447
+ return winrt::Windows::Security::DataProtection::UserDataProtectionManager::TryGetDefault();
448
+ }());
423
449
  }
424
450
  catch (...)
425
451
  {
@@ -436,7 +462,7 @@ namespace py::cpp::Windows::Security::DataProtection
436
462
 
437
463
  static PyObject* UserDataProtectionManager_TryGetForUser(PyObject* /*unused*/, PyObject* args) noexcept
438
464
  {
439
- auto arg_count = PyTuple_Size(args);
465
+ auto arg_count = PyTuple_GET_SIZE(args);
440
466
 
441
467
  if (arg_count == 1)
442
468
  {
@@ -457,7 +483,11 @@ namespace py::cpp::Windows::Security::DataProtection
457
483
 
458
484
  auto param0 = py::convert_to<winrt::Windows::System::User>(args, 0);
459
485
 
460
- return py::convert(winrt::Windows::Security::DataProtection::UserDataProtectionManager::TryGetForUser(param0));
486
+ return py::convert([&]()
487
+ {
488
+ auto _gil = release_gil();
489
+ return winrt::Windows::Security::DataProtection::UserDataProtectionManager::TryGetForUser(param0);
490
+ }());
461
491
  }
462
492
  catch (...)
463
493
  {
@@ -474,7 +504,7 @@ namespace py::cpp::Windows::Security::DataProtection
474
504
 
475
505
  static PyObject* UserDataProtectionManager_UnprotectBufferAsync(py::wrapper::Windows::Security::DataProtection::UserDataProtectionManager* self, PyObject* args) noexcept
476
506
  {
477
- auto arg_count = PyTuple_Size(args);
507
+ auto arg_count = PyTuple_GET_SIZE(args);
478
508
 
479
509
  if (arg_count == 1)
480
510
  {
@@ -495,7 +525,11 @@ namespace py::cpp::Windows::Security::DataProtection
495
525
 
496
526
  auto param0 = py::convert_to<winrt::Windows::Storage::Streams::IBuffer>(args, 0);
497
527
 
498
- return py::convert(self->obj.UnprotectBufferAsync(param0));
528
+ return py::convert([&]()
529
+ {
530
+ auto _gil = release_gil();
531
+ return self->obj.UnprotectBufferAsync(param0);
532
+ }());
499
533
  }
500
534
  catch (...)
501
535
  {
@@ -529,7 +563,11 @@ namespace py::cpp::Windows::Security::DataProtection
529
563
 
530
564
  auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Security::DataProtection::UserDataProtectionManager, winrt::Windows::Security::DataProtection::UserDataAvailabilityStateChangedEventArgs>>(arg);
531
565
 
532
- return py::convert(self->obj.DataAvailabilityStateChanged(param0));
566
+ return py::convert([&]()
567
+ {
568
+ auto _gil = release_gil();
569
+ return self->obj.DataAvailabilityStateChanged(param0);
570
+ }());
533
571
  }
534
572
  catch (...)
535
573
  {
@@ -557,7 +595,11 @@ namespace py::cpp::Windows::Security::DataProtection
557
595
 
558
596
  auto param0 = py::convert_to<winrt::event_token>(arg);
559
597
 
560
- self->obj.DataAvailabilityStateChanged(param0);
598
+ {
599
+ auto _gil = release_gil();
600
+ self->obj.DataAvailabilityStateChanged(param0);
601
+ }
602
+
561
603
  Py_RETURN_NONE;
562
604
  }
563
605
  catch (...)
@@ -601,20 +643,17 @@ namespace py::cpp::Windows::Security::DataProtection
601
643
  { "remove_data_availability_state_changed", reinterpret_cast<PyCFunction>(UserDataProtectionManager_remove_DataAvailabilityStateChanged), METH_O, nullptr },
602
644
  { "_assign_array_", _assign_array_UserDataProtectionManager, METH_O | METH_STATIC, nullptr },
603
645
  { "_from", reinterpret_cast<PyCFunction>(_from_UserDataProtectionManager), METH_O | METH_STATIC, nullptr },
604
- { }
605
- };
646
+ { }};
606
647
 
607
648
  static PyGetSetDef _getset_UserDataProtectionManager[] = {
608
- { }
609
- };
649
+ { }};
610
650
 
611
651
  static PyType_Slot _type_slots_UserDataProtectionManager[] = {
612
652
  { Py_tp_new, reinterpret_cast<void*>(_new_UserDataProtectionManager) },
613
653
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_UserDataProtectionManager) },
614
654
  { Py_tp_methods, reinterpret_cast<void*>(_methods_UserDataProtectionManager) },
615
655
  { Py_tp_getset, reinterpret_cast<void*>(_getset_UserDataProtectionManager) },
616
- { }
617
- };
656
+ { }};
618
657
 
619
658
  static PyType_Spec type_spec_UserDataProtectionManager = {
620
659
  "winrt._winrt_windows_security_dataprotection.UserDataProtectionManager",
@@ -624,14 +663,12 @@ namespace py::cpp::Windows::Security::DataProtection
624
663
  _type_slots_UserDataProtectionManager};
625
664
 
626
665
  static PyGetSetDef getset_UserDataProtectionManager_Static[] = {
627
- { }
628
- };
666
+ { }};
629
667
 
630
668
  static PyMethodDef methods_UserDataProtectionManager_Static[] = {
631
669
  { "try_get_default", reinterpret_cast<PyCFunction>(UserDataProtectionManager_TryGetDefault), METH_VARARGS, nullptr },
632
670
  { "try_get_for_user", reinterpret_cast<PyCFunction>(UserDataProtectionManager_TryGetForUser), METH_VARARGS, nullptr },
633
- { }
634
- };
671
+ { }};
635
672
 
636
673
  static PyType_Slot type_slots_UserDataProtectionManager_Static[] =
637
674
  {
@@ -641,14 +678,12 @@ namespace py::cpp::Windows::Security::DataProtection
641
678
  { }
642
679
  };
643
680
 
644
- static PyType_Spec type_spec_UserDataProtectionManager_Static =
645
- {
681
+ static PyType_Spec type_spec_UserDataProtectionManager_Static = {
646
682
  "winrt._winrt_windows_security_dataprotection.UserDataProtectionManager_Static",
647
683
  static_cast<int>(PyType_Type.tp_basicsize),
648
684
  static_cast<int>(PyType_Type.tp_itemsize),
649
685
  Py_TPFLAGS_DEFAULT,
650
- type_slots_UserDataProtectionManager_Static
651
- };
686
+ type_slots_UserDataProtectionManager_Static};
652
687
 
653
688
  // ----- UserDataStorageItemProtectionInfo class --------------------
654
689
 
@@ -684,7 +719,11 @@ namespace py::cpp::Windows::Security::DataProtection
684
719
  return nullptr;
685
720
  }
686
721
 
687
- return py::convert(self->obj.Availability());
722
+ return py::convert([&]()
723
+ {
724
+ auto _gil = release_gil();
725
+ return self->obj.Availability();
726
+ }());
688
727
  }
689
728
  catch (...)
690
729
  {
@@ -720,21 +759,18 @@ namespace py::cpp::Windows::Security::DataProtection
720
759
  static PyMethodDef _methods_UserDataStorageItemProtectionInfo[] = {
721
760
  { "_assign_array_", _assign_array_UserDataStorageItemProtectionInfo, METH_O | METH_STATIC, nullptr },
722
761
  { "_from", reinterpret_cast<PyCFunction>(_from_UserDataStorageItemProtectionInfo), METH_O | METH_STATIC, nullptr },
723
- { }
724
- };
762
+ { }};
725
763
 
726
764
  static PyGetSetDef _getset_UserDataStorageItemProtectionInfo[] = {
727
765
  { "availability", reinterpret_cast<getter>(UserDataStorageItemProtectionInfo_get_Availability), nullptr, nullptr, nullptr },
728
- { }
729
- };
766
+ { }};
730
767
 
731
768
  static PyType_Slot _type_slots_UserDataStorageItemProtectionInfo[] = {
732
769
  { Py_tp_new, reinterpret_cast<void*>(_new_UserDataStorageItemProtectionInfo) },
733
770
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_UserDataStorageItemProtectionInfo) },
734
771
  { Py_tp_methods, reinterpret_cast<void*>(_methods_UserDataStorageItemProtectionInfo) },
735
772
  { Py_tp_getset, reinterpret_cast<void*>(_getset_UserDataStorageItemProtectionInfo) },
736
- { }
737
- };
773
+ { }};
738
774
 
739
775
  static PyType_Spec type_spec_UserDataStorageItemProtectionInfo = {
740
776
  "winrt._winrt_windows_security_dataprotection.UserDataStorageItemProtectionInfo",
@@ -775,6 +811,12 @@ PyMODINIT_FUNC PyInit__winrt_windows_security_dataprotection(void) noexcept
775
811
  return nullptr;
776
812
  }
777
813
 
814
+ auto inspectable_meta_type = py::get_inspectable_meta_type();
815
+ if (!inspectable_meta_type)
816
+ {
817
+ return nullptr;
818
+ }
819
+
778
820
  auto object_type = py::get_object_type();
779
821
  if (!object_type)
780
822
  {
@@ -788,19 +830,25 @@ PyMODINIT_FUNC PyInit__winrt_windows_security_dataprotection(void) noexcept
788
830
  return nullptr;
789
831
  }
790
832
 
791
- py::pytype_handle UserDataAvailabilityStateChangedEventArgs_type{py::register_python_type(module.get(), &type_spec_UserDataAvailabilityStateChangedEventArgs, object_bases.get(), nullptr)};
833
+ py::pytype_handle UserDataAvailabilityStateChangedEventArgs_type{py::register_python_type(module.get(), &type_spec_UserDataAvailabilityStateChangedEventArgs, object_bases.get(), inspectable_meta_type)};
792
834
  if (!UserDataAvailabilityStateChangedEventArgs_type)
793
835
  {
794
836
  return nullptr;
795
837
  }
796
838
 
797
- py::pytype_handle UserDataBufferUnprotectResult_type{py::register_python_type(module.get(), &type_spec_UserDataBufferUnprotectResult, object_bases.get(), nullptr)};
839
+ py::pytype_handle UserDataBufferUnprotectResult_type{py::register_python_type(module.get(), &type_spec_UserDataBufferUnprotectResult, object_bases.get(), inspectable_meta_type)};
798
840
  if (!UserDataBufferUnprotectResult_type)
799
841
  {
800
842
  return nullptr;
801
843
  }
802
844
 
803
- py::pyobj_handle type_UserDataProtectionManager_Static{PyType_FromSpec(&type_spec_UserDataProtectionManager_Static)};
845
+ py::pyobj_handle UserDataProtectionManager_Static_bases{PyTuple_Pack(1, reinterpret_cast<PyObject*>(inspectable_meta_type))};
846
+ if (!UserDataProtectionManager_Static_bases)
847
+ {
848
+ return nullptr;
849
+ }
850
+
851
+ py::pyobj_handle type_UserDataProtectionManager_Static{PyType_FromSpecWithBases(&type_spec_UserDataProtectionManager_Static, UserDataProtectionManager_Static_bases.get())};
804
852
  if (!type_UserDataProtectionManager_Static)
805
853
  {
806
854
  return nullptr;
@@ -812,7 +860,7 @@ PyMODINIT_FUNC PyInit__winrt_windows_security_dataprotection(void) noexcept
812
860
  return nullptr;
813
861
  }
814
862
 
815
- py::pytype_handle UserDataStorageItemProtectionInfo_type{py::register_python_type(module.get(), &type_spec_UserDataStorageItemProtectionInfo, object_bases.get(), nullptr)};
863
+ py::pytype_handle UserDataStorageItemProtectionInfo_type{py::register_python_type(module.get(), &type_spec_UserDataStorageItemProtectionInfo, object_bases.get(), inspectable_meta_type)};
816
864
  if (!UserDataStorageItemProtectionInfo_type)
817
865
  {
818
866
  return nullptr;
@@ -16,7 +16,7 @@ classifiers = [
16
16
  "Intended Audience :: Developers",
17
17
  ]
18
18
  dynamic = ["version", "dependencies", "optional-dependencies"]
19
- requires-python = ">=3.9,<3.14"
19
+ requires-python = ">=3.9"
20
20
 
21
21
  [project.urls]
22
22
  # Homepage = "https://github.com/pywinrt/pywinrt"
@@ -34,7 +34,7 @@ optional-dependencies.all = { file = "all-requirements.txt" }
34
34
 
35
35
  [tool.cibuildwheel]
36
36
  # use local winrt-sdk build dependency
37
- environment = { PYTHONPATH="../winrt-sdk/src" }
37
+ environment = { PYTHONPATH="../../winrt-sdk/src" }
38
38
  # don't install winrt-sdk from PyPI
39
39
  build-frontend = { name = "build[uv]", args = ["--skip-dependency-check", "--no-isolation"] }
40
40
  before-build = "uv pip install setuptools"
@@ -1,3 +1,3 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
2
2
 
3
- winrt-runtime==2.3.0
3
+ winrt-runtime==3.0.0
@@ -19,7 +19,7 @@ class build_ext_ex(build_ext):
19
19
 
20
20
 
21
21
  setup(
22
- cmdclass = {'build_ext': build_ext_ex},
22
+ cmdclass={"build_ext": build_ext_ex},
23
23
  ext_modules=[
24
24
  Extension(
25
25
  "winrt._winrt_windows_security_dataprotection",
@@ -0,0 +1,64 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.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.foundation as windows_foundation
13
+ import winrt.windows.storage as windows_storage
14
+ import winrt.windows.storage.streams as windows_storage_streams
15
+ import winrt.windows.system as windows_system
16
+
17
+ from winrt.windows.security.dataprotection import UserDataAvailability, UserDataBufferUnprotectStatus, UserDataStorageItemProtectionStatus
18
+
19
+ Self = typing.TypeVar('Self')
20
+
21
+ @typing.final
22
+ class UserDataAvailabilityStateChangedEventArgs(winrt.system.Object):
23
+ # Windows.Foundation.Deferral Windows.Security.DataProtection.UserDataAvailabilityStateChangedEventArgs::GetDeferral()
24
+ def get_deferral(self) -> windows_foundation.Deferral: ...
25
+
26
+ @typing.final
27
+ class UserDataBufferUnprotectResult(winrt.system.Object):
28
+ # Windows.Security.DataProtection.UserDataBufferUnprotectStatus Windows.Security.DataProtection.UserDataBufferUnprotectResult::get_Status()
29
+ @_property
30
+ def status(self) -> UserDataBufferUnprotectStatus: ...
31
+ # Windows.Storage.Streams.IBuffer Windows.Security.DataProtection.UserDataBufferUnprotectResult::get_UnprotectedBuffer()
32
+ @_property
33
+ def unprotected_buffer(self) -> windows_storage_streams.IBuffer: ...
34
+
35
+ @typing.final
36
+ class UserDataProtectionManager_Static(winrt._winrt.IInspectable_Static):
37
+ # Windows.Security.DataProtection.UserDataProtectionManager Windows.Security.DataProtection.UserDataProtectionManager::TryGetDefault()
38
+ def try_get_default(cls) -> typing.Optional[UserDataProtectionManager]: ...
39
+ # Windows.Security.DataProtection.UserDataProtectionManager Windows.Security.DataProtection.UserDataProtectionManager::TryGetForUser(Windows.System.User)
40
+ def try_get_for_user(cls, user: windows_system.User, /) -> typing.Optional[UserDataProtectionManager]: ...
41
+
42
+ @typing.final
43
+ class UserDataProtectionManager(winrt.system.Object, metaclass=UserDataProtectionManager_Static):
44
+ # Windows.Foundation.IAsyncOperation`1<Windows.Security.DataProtection.UserDataStorageItemProtectionInfo> Windows.Security.DataProtection.UserDataProtectionManager::GetStorageItemProtectionInfoAsync(Windows.Storage.IStorageItem)
45
+ def get_storage_item_protection_info_async(self, storage_item: windows_storage.IStorageItem, /) -> windows_foundation.IAsyncOperation[UserDataStorageItemProtectionInfo]: ...
46
+ # System.Boolean Windows.Security.DataProtection.UserDataProtectionManager::IsContinuedDataAvailabilityExpected(Windows.Security.DataProtection.UserDataAvailability)
47
+ def is_continued_data_availability_expected(self, availability: UserDataAvailability, /) -> bool: ...
48
+ # Windows.Foundation.IAsyncOperation`1<Windows.Storage.Streams.IBuffer> Windows.Security.DataProtection.UserDataProtectionManager::ProtectBufferAsync(Windows.Storage.Streams.IBuffer,Windows.Security.DataProtection.UserDataAvailability)
49
+ def protect_buffer_async(self, unprotected_buffer: windows_storage_streams.IBuffer, availability: UserDataAvailability, /) -> windows_foundation.IAsyncOperation[windows_storage_streams.IBuffer]: ...
50
+ # Windows.Foundation.IAsyncOperation`1<Windows.Security.DataProtection.UserDataStorageItemProtectionStatus> Windows.Security.DataProtection.UserDataProtectionManager::ProtectStorageItemAsync(Windows.Storage.IStorageItem,Windows.Security.DataProtection.UserDataAvailability)
51
+ def protect_storage_item_async(self, storage_item: windows_storage.IStorageItem, availability: UserDataAvailability, /) -> windows_foundation.IAsyncOperation[UserDataStorageItemProtectionStatus]: ...
52
+ # Windows.Foundation.IAsyncOperation`1<Windows.Security.DataProtection.UserDataBufferUnprotectResult> Windows.Security.DataProtection.UserDataProtectionManager::UnprotectBufferAsync(Windows.Storage.Streams.IBuffer)
53
+ def unprotect_buffer_async(self, protected_buffer: windows_storage_streams.IBuffer, /) -> windows_foundation.IAsyncOperation[UserDataBufferUnprotectResult]: ...
54
+ # Windows.Foundation.EventRegistrationToken Windows.Security.DataProtection.UserDataProtectionManager::add_DataAvailabilityStateChanged(Windows.Foundation.TypedEventHandler`2<Windows.Security.DataProtection.UserDataProtectionManager,Windows.Security.DataProtection.UserDataAvailabilityStateChangedEventArgs>)
55
+ def add_data_availability_state_changed(self, handler: windows_foundation.TypedEventHandler[UserDataProtectionManager, UserDataAvailabilityStateChangedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
56
+ # System.Void Windows.Security.DataProtection.UserDataProtectionManager::remove_DataAvailabilityStateChanged(Windows.Foundation.EventRegistrationToken)
57
+ def remove_data_availability_state_changed(self, token: typing.Union[windows_foundation.EventRegistrationToken, typing.Tuple[winrt.system.Int64]], /) -> None: ...
58
+
59
+ @typing.final
60
+ class UserDataStorageItemProtectionInfo(winrt.system.Object):
61
+ # Windows.Security.DataProtection.UserDataAvailability Windows.Security.DataProtection.UserDataStorageItemProtectionInfo::get_Availability()
62
+ @_property
63
+ def availability(self) -> UserDataAvailability: ...
64
+
@@ -1,9 +1,14 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
2
2
 
3
3
  import enum
4
4
 
5
5
  import winrt.system
6
- from winrt import _winrt_windows_security_dataprotection
6
+ from winrt._winrt_windows_security_dataprotection import (
7
+ UserDataAvailabilityStateChangedEventArgs,
8
+ UserDataBufferUnprotectResult,
9
+ UserDataProtectionManager,
10
+ UserDataStorageItemProtectionInfo,
11
+ )
7
12
 
8
13
  __all__ = [
9
14
  "UserDataAvailability",
@@ -29,7 +34,3 @@ class UserDataStorageItemProtectionStatus(enum.IntEnum):
29
34
  NOT_PROTECTABLE = 1
30
35
  DATA_UNAVAILABLE = 2
31
36
 
32
- UserDataAvailabilityStateChangedEventArgs = _winrt_windows_security_dataprotection.UserDataAvailabilityStateChangedEventArgs
33
- UserDataBufferUnprotectResult = _winrt_windows_security_dataprotection.UserDataBufferUnprotectResult
34
- UserDataProtectionManager = _winrt_windows_security_dataprotection.UserDataProtectionManager
35
- UserDataStorageItemProtectionInfo = _winrt_windows_security_dataprotection.UserDataStorageItemProtectionInfo
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.Security.DataProtection
3
- Version: 2.3.0
3
+ Version: 3.0.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,14 +10,14 @@ Classifier: Operating System :: Microsoft :: Windows
10
10
  Classifier: Programming Language :: Python :: 3
11
11
  Classifier: Programming Language :: Python :: Implementation :: CPython
12
12
  Classifier: Intended Audience :: Developers
13
- Requires-Python: <3.14,>=3.9
13
+ Requires-Python: >=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==2.3.0
15
+ Requires-Dist: winrt-runtime==3.0.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.Foundation[all]==2.3.0; extra == "all"
18
- Requires-Dist: winrt-Windows.Storage[all]==2.3.0; extra == "all"
19
- Requires-Dist: winrt-Windows.Storage.Streams[all]==2.3.0; extra == "all"
20
- Requires-Dist: winrt-Windows.System[all]==2.3.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.Foundation[all]==3.0.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Storage[all]==3.0.0; extra == "all"
19
+ Requires-Dist: winrt-Windows.Storage.Streams[all]==3.0.0; extra == "all"
20
+ Requires-Dist: winrt-Windows.System[all]==3.0.0; extra == "all"
21
21
 
22
22
  <!-- warning: Please don't edit this file. It was automatically generated. -->
23
23
 
@@ -0,0 +1,7 @@
1
+ winrt-runtime==3.0.0
2
+
3
+ [all]
4
+ winrt-Windows.Foundation[all]==3.0.0
5
+ winrt-Windows.Storage[all]==3.0.0
6
+ winrt-Windows.Storage.Streams[all]==3.0.0
7
+ winrt-Windows.System[all]==3.0.0
@@ -1,6 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
2
-
3
- winrt-Windows.Foundation[all]==2.3.0
4
- winrt-Windows.Storage[all]==2.3.0
5
- winrt-Windows.Storage.Streams[all]==2.3.0
6
- winrt-Windows.System[all]==2.3.0
@@ -1,59 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
2
-
3
- import datetime
4
- import sys
5
- import types
6
- import typing
7
- import uuid as _uuid
8
- from builtins import property as _property
9
-
10
- import winrt._winrt
11
- import winrt.system
12
- import winrt.windows.foundation as windows_foundation
13
- import winrt.windows.storage as windows_storage
14
- import winrt.windows.storage.streams as windows_storage_streams
15
- import winrt.windows.system as windows_system
16
-
17
- from winrt.windows.security.dataprotection import UserDataAvailability, UserDataBufferUnprotectStatus, UserDataStorageItemProtectionStatus
18
-
19
- Self = typing.TypeVar('Self')
20
-
21
- @typing.final
22
- class UserDataAvailabilityStateChangedEventArgs(winrt.system.Object):
23
- @staticmethod
24
- def _from(obj: winrt.system.Object, /) -> UserDataAvailabilityStateChangedEventArgs: ...
25
- def get_deferral(self) -> typing.Optional[windows_foundation.Deferral]: ...
26
-
27
- @typing.final
28
- class UserDataBufferUnprotectResult(winrt.system.Object):
29
- @staticmethod
30
- def _from(obj: winrt.system.Object, /) -> UserDataBufferUnprotectResult: ...
31
- @_property
32
- def status(self) -> UserDataBufferUnprotectStatus: ...
33
- @_property
34
- def unprotected_buffer(self) -> typing.Optional[windows_storage_streams.IBuffer]: ...
35
-
36
- @typing.final
37
- class UserDataProtectionManager_Static(type):
38
- def try_get_default(cls) -> typing.Optional[UserDataProtectionManager]: ...
39
- def try_get_for_user(cls, user: typing.Optional[windows_system.User], /) -> typing.Optional[UserDataProtectionManager]: ...
40
-
41
- @typing.final
42
- class UserDataProtectionManager(winrt.system.Object, metaclass=UserDataProtectionManager_Static):
43
- @staticmethod
44
- def _from(obj: winrt.system.Object, /) -> UserDataProtectionManager: ...
45
- def get_storage_item_protection_info_async(self, storage_item: typing.Optional[windows_storage.IStorageItem], /) -> windows_foundation.IAsyncOperation[UserDataStorageItemProtectionInfo]: ...
46
- def is_continued_data_availability_expected(self, availability: UserDataAvailability, /) -> bool: ...
47
- def protect_buffer_async(self, unprotected_buffer: typing.Optional[windows_storage_streams.IBuffer], availability: UserDataAvailability, /) -> windows_foundation.IAsyncOperation[windows_storage_streams.IBuffer]: ...
48
- def protect_storage_item_async(self, storage_item: typing.Optional[windows_storage.IStorageItem], availability: UserDataAvailability, /) -> windows_foundation.IAsyncOperation[UserDataStorageItemProtectionStatus]: ...
49
- def unprotect_buffer_async(self, protected_buffer: typing.Optional[windows_storage_streams.IBuffer], /) -> windows_foundation.IAsyncOperation[UserDataBufferUnprotectResult]: ...
50
- def add_data_availability_state_changed(self, handler: windows_foundation.TypedEventHandler[UserDataProtectionManager, UserDataAvailabilityStateChangedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
51
- def remove_data_availability_state_changed(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
52
-
53
- @typing.final
54
- class UserDataStorageItemProtectionInfo(winrt.system.Object):
55
- @staticmethod
56
- def _from(obj: winrt.system.Object, /) -> UserDataStorageItemProtectionInfo: ...
57
- @_property
58
- def availability(self) -> UserDataAvailability: ...
59
-
@@ -1,7 +0,0 @@
1
- winrt-runtime==2.3.0
2
-
3
- [all]
4
- winrt-Windows.Foundation[all]==2.3.0
5
- winrt-Windows.Storage[all]==2.3.0
6
- winrt-Windows.Storage.Streams[all]==2.3.0
7
- winrt-Windows.System[all]==2.3.0