winrt-Windows.Security.Credentials.UI 2.3.0__tar.gz → 3.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (21) hide show
  1. {winrt_windows_security_credentials_ui-2.3.0 → winrt_windows_security_credentials_ui-3.1.0}/PKG-INFO +7 -7
  2. winrt_windows_security_credentials_ui-3.1.0/all-requirements.txt +4 -0
  3. {winrt_windows_security_credentials_ui-2.3.0 → winrt_windows_security_credentials_ui-3.1.0}/py.Windows.Security.Credentials.UI.cpp +255 -105
  4. {winrt_windows_security_credentials_ui-2.3.0 → winrt_windows_security_credentials_ui-3.1.0}/pyproject.toml +4 -4
  5. winrt_windows_security_credentials_ui-3.1.0/pywinrt-version.txt +1 -0
  6. {winrt_windows_security_credentials_ui-2.3.0 → winrt_windows_security_credentials_ui-3.1.0}/requirements.txt +2 -2
  7. {winrt_windows_security_credentials_ui-2.3.0 → winrt_windows_security_credentials_ui-3.1.0}/setup.py +1 -1
  8. winrt_windows_security_credentials_ui-3.1.0/winrt/_winrt_windows_security_credentials_ui.pyi +130 -0
  9. {winrt_windows_security_credentials_ui-2.3.0 → winrt_windows_security_credentials_ui-3.1.0}/winrt/windows/security/credentials/ui/__init__.py +7 -6
  10. {winrt_windows_security_credentials_ui-2.3.0 → winrt_windows_security_credentials_ui-3.1.0}/winrt_Windows.Security.Credentials.UI.egg-info/PKG-INFO +7 -7
  11. winrt_windows_security_credentials_ui-3.1.0/winrt_Windows.Security.Credentials.UI.egg-info/requires.txt +5 -0
  12. winrt_windows_security_credentials_ui-2.3.0/all-requirements.txt +0 -4
  13. winrt_windows_security_credentials_ui-2.3.0/pywinrt-version.txt +0 -1
  14. winrt_windows_security_credentials_ui-2.3.0/winrt/_winrt_windows_security_credentials_ui.pyi +0 -105
  15. winrt_windows_security_credentials_ui-2.3.0/winrt_Windows.Security.Credentials.UI.egg-info/requires.txt +0 -5
  16. {winrt_windows_security_credentials_ui-2.3.0 → winrt_windows_security_credentials_ui-3.1.0}/README.md +0 -0
  17. {winrt_windows_security_credentials_ui-2.3.0 → winrt_windows_security_credentials_ui-3.1.0}/setup.cfg +0 -0
  18. {winrt_windows_security_credentials_ui-2.3.0 → winrt_windows_security_credentials_ui-3.1.0}/winrt/windows/security/credentials/ui/py.typed +0 -0
  19. {winrt_windows_security_credentials_ui-2.3.0 → winrt_windows_security_credentials_ui-3.1.0}/winrt_Windows.Security.Credentials.UI.egg-info/SOURCES.txt +0 -0
  20. {winrt_windows_security_credentials_ui-2.3.0 → winrt_windows_security_credentials_ui-3.1.0}/winrt_Windows.Security.Credentials.UI.egg-info/dependency_links.txt +0 -0
  21. {winrt_windows_security_credentials_ui-2.3.0 → winrt_windows_security_credentials_ui-3.1.0}/winrt_Windows.Security.Credentials.UI.egg-info/top_level.txt +0 -0
@@ -1,8 +1,8 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: winrt-Windows.Security.Credentials.UI
3
- Version: 2.3.0
3
+ Version: 3.1.0
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
- License: MIT
5
+ License-Expression: MIT
6
6
  Project-URL: Documentation, https://pywinrt.readthedocs.io
7
7
  Project-URL: Repository, https://github.com/pywinrt/pywinrt
8
8
  Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
@@ -10,12 +10,12 @@ Classifier: Operating System :: Microsoft :: Windows
10
10
  Classifier: Programming Language :: Python :: 3
11
11
  Classifier: Programming Language :: Python :: Implementation :: CPython
12
12
  Classifier: Intended Audience :: Developers
13
- Requires-Python: <3.14,>=3.9
13
+ Requires-Python: >=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==2.3.0
15
+ Requires-Dist: winrt-runtime==3.1.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.Foundation[all]==2.3.0; extra == "all"
18
- Requires-Dist: winrt-Windows.Storage.Streams[all]==2.3.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.Foundation[all]==3.1.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Storage.Streams[all]==3.1.0; extra == "all"
19
19
 
20
20
  <!-- warning: Please don't edit this file. It was automatically generated. -->
21
21
 
@@ -0,0 +1,4 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.1.0
2
+
3
+ winrt-Windows.Foundation[all]==3.1.0
4
+ winrt-Windows.Storage.Streams[all]==3.1.0
@@ -1,4 +1,4 @@
1
- // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
1
+ // WARNING: Please don't edit this file. It was generated by Python/WinRT v3.1.0
2
2
 
3
3
  #include "py.Windows.Security.Credentials.UI.h"
4
4
 
@@ -13,11 +13,11 @@ namespace py::cpp::Windows::Security::Credentials::UI
13
13
  return nullptr;
14
14
  }
15
15
 
16
- static PyObject* CredentialPicker_PickAsync(PyObject* /*unused*/, PyObject* args) noexcept
16
+ static PyObject* CredentialPicker_PickWithCaptionAsync(PyObject* /*unused*/, PyObject* args) noexcept
17
17
  {
18
- auto arg_count = PyTuple_Size(args);
18
+ auto arg_count = PyTuple_GET_SIZE(args);
19
19
 
20
- if (arg_count == 1)
20
+ if (arg_count == 3)
21
21
  {
22
22
  try
23
23
  {
@@ -25,18 +25,24 @@ namespace py::cpp::Windows::Security::Credentials::UI
25
25
 
26
26
  if (!is_overload_present.has_value())
27
27
  {
28
- is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Credentials.UI.CredentialPicker", L"PickAsync", 1);
28
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Credentials.UI.CredentialPicker", L"PickAsync", 3);
29
29
  }
30
30
 
31
31
  if (!is_overload_present.value())
32
32
  {
33
- py::set_arg_count_version_error(1);
33
+ py::set_arg_count_version_error(3);
34
34
  return nullptr;
35
35
  }
36
36
 
37
- auto param0 = py::convert_to<winrt::Windows::Security::Credentials::UI::CredentialPickerOptions>(args, 0);
37
+ auto param0 = py::convert_to<winrt::hstring>(args, 0);
38
+ auto param1 = py::convert_to<winrt::hstring>(args, 1);
39
+ auto param2 = py::convert_to<winrt::hstring>(args, 2);
38
40
 
39
- return py::convert(winrt::Windows::Security::Credentials::UI::CredentialPicker::PickAsync(param0));
41
+ return py::convert([&]()
42
+ {
43
+ auto _gil = release_gil();
44
+ return winrt::Windows::Security::Credentials::UI::CredentialPicker::PickAsync(param0, param1, param2);
45
+ }());
40
46
  }
41
47
  catch (...)
42
48
  {
@@ -44,7 +50,18 @@ namespace py::cpp::Windows::Security::Credentials::UI
44
50
  return nullptr;
45
51
  }
46
52
  }
47
- else if (arg_count == 2)
53
+ else
54
+ {
55
+ py::set_invalid_arg_count_error(arg_count);
56
+ return nullptr;
57
+ }
58
+ }
59
+
60
+ static PyObject* CredentialPicker_PickWithMessageAsync(PyObject* /*unused*/, PyObject* args) noexcept
61
+ {
62
+ auto arg_count = PyTuple_GET_SIZE(args);
63
+
64
+ if (arg_count == 2)
48
65
  {
49
66
  try
50
67
  {
@@ -64,7 +81,11 @@ namespace py::cpp::Windows::Security::Credentials::UI
64
81
  auto param0 = py::convert_to<winrt::hstring>(args, 0);
65
82
  auto param1 = py::convert_to<winrt::hstring>(args, 1);
66
83
 
67
- return py::convert(winrt::Windows::Security::Credentials::UI::CredentialPicker::PickAsync(param0, param1));
84
+ return py::convert([&]()
85
+ {
86
+ auto _gil = release_gil();
87
+ return winrt::Windows::Security::Credentials::UI::CredentialPicker::PickAsync(param0, param1);
88
+ }());
68
89
  }
69
90
  catch (...)
70
91
  {
@@ -72,7 +93,18 @@ namespace py::cpp::Windows::Security::Credentials::UI
72
93
  return nullptr;
73
94
  }
74
95
  }
75
- else if (arg_count == 3)
96
+ else
97
+ {
98
+ py::set_invalid_arg_count_error(arg_count);
99
+ return nullptr;
100
+ }
101
+ }
102
+
103
+ static PyObject* CredentialPicker_PickWithOptionsAsync(PyObject* /*unused*/, PyObject* args) noexcept
104
+ {
105
+ auto arg_count = PyTuple_GET_SIZE(args);
106
+
107
+ if (arg_count == 1)
76
108
  {
77
109
  try
78
110
  {
@@ -80,20 +112,22 @@ namespace py::cpp::Windows::Security::Credentials::UI
80
112
 
81
113
  if (!is_overload_present.has_value())
82
114
  {
83
- is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Credentials.UI.CredentialPicker", L"PickAsync", 3);
115
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Credentials.UI.CredentialPicker", L"PickAsync", 1);
84
116
  }
85
117
 
86
118
  if (!is_overload_present.value())
87
119
  {
88
- py::set_arg_count_version_error(3);
120
+ py::set_arg_count_version_error(1);
89
121
  return nullptr;
90
122
  }
91
123
 
92
- auto param0 = py::convert_to<winrt::hstring>(args, 0);
93
- auto param1 = py::convert_to<winrt::hstring>(args, 1);
94
- auto param2 = py::convert_to<winrt::hstring>(args, 2);
124
+ auto param0 = py::convert_to<winrt::Windows::Security::Credentials::UI::CredentialPickerOptions>(args, 0);
95
125
 
96
- return py::convert(winrt::Windows::Security::Credentials::UI::CredentialPicker::PickAsync(param0, param1, param2));
126
+ return py::convert([&]()
127
+ {
128
+ auto _gil = release_gil();
129
+ return winrt::Windows::Security::Credentials::UI::CredentialPicker::PickAsync(param0);
130
+ }());
97
131
  }
98
132
  catch (...)
99
133
  {
@@ -109,19 +143,16 @@ namespace py::cpp::Windows::Security::Credentials::UI
109
143
  }
110
144
 
111
145
  static PyMethodDef _methods_CredentialPicker[] = {
112
- { }
113
- };
146
+ { }};
114
147
 
115
148
  static PyGetSetDef _getset_CredentialPicker[] = {
116
- { }
117
- };
149
+ { }};
118
150
 
119
151
  static PyType_Slot _type_slots_CredentialPicker[] = {
120
152
  { Py_tp_new, reinterpret_cast<void*>(_new_CredentialPicker) },
121
153
  { Py_tp_methods, reinterpret_cast<void*>(_methods_CredentialPicker) },
122
154
  { Py_tp_getset, reinterpret_cast<void*>(_getset_CredentialPicker) },
123
- { }
124
- };
155
+ { }};
125
156
 
126
157
  static PyType_Spec type_spec_CredentialPicker = {
127
158
  "winrt._winrt_windows_security_credentials_ui.CredentialPicker",
@@ -131,13 +162,13 @@ namespace py::cpp::Windows::Security::Credentials::UI
131
162
  _type_slots_CredentialPicker};
132
163
 
133
164
  static PyGetSetDef getset_CredentialPicker_Static[] = {
134
- { }
135
- };
165
+ { }};
136
166
 
137
167
  static PyMethodDef methods_CredentialPicker_Static[] = {
138
- { "pick_async", reinterpret_cast<PyCFunction>(CredentialPicker_PickAsync), METH_VARARGS, nullptr },
139
- { }
140
- };
168
+ { "pick_with_caption_async", reinterpret_cast<PyCFunction>(CredentialPicker_PickWithCaptionAsync), METH_VARARGS, nullptr },
169
+ { "pick_with_message_async", reinterpret_cast<PyCFunction>(CredentialPicker_PickWithMessageAsync), METH_VARARGS, nullptr },
170
+ { "pick_with_options_async", reinterpret_cast<PyCFunction>(CredentialPicker_PickWithOptionsAsync), METH_VARARGS, nullptr },
171
+ { }};
141
172
 
142
173
  static PyType_Slot type_slots_CredentialPicker_Static[] =
143
174
  {
@@ -147,26 +178,24 @@ namespace py::cpp::Windows::Security::Credentials::UI
147
178
  { }
148
179
  };
149
180
 
150
- static PyType_Spec type_spec_CredentialPicker_Static =
151
- {
181
+ static PyType_Spec type_spec_CredentialPicker_Static = {
152
182
  "winrt._winrt_windows_security_credentials_ui.CredentialPicker_Static",
153
183
  static_cast<int>(PyType_Type.tp_basicsize),
154
184
  static_cast<int>(PyType_Type.tp_itemsize),
155
185
  Py_TPFLAGS_DEFAULT,
156
- type_slots_CredentialPicker_Static
157
- };
186
+ type_slots_CredentialPicker_Static};
158
187
 
159
188
  // ----- CredentialPickerOptions class --------------------
160
189
 
161
190
  static PyObject* _new_CredentialPickerOptions(PyTypeObject* type, PyObject* args, PyObject* kwds) noexcept
162
191
  {
163
- if (kwds != nullptr)
192
+ if (kwds)
164
193
  {
165
194
  py::set_invalid_kwd_args_error();
166
195
  return nullptr;
167
196
  }
168
197
 
169
- auto arg_count = PyTuple_Size(args);
198
+ auto arg_count = PyTuple_GET_SIZE(args);
170
199
  if (arg_count == 0)
171
200
  {
172
201
  try
@@ -212,7 +241,11 @@ namespace py::cpp::Windows::Security::Credentials::UI
212
241
  return nullptr;
213
242
  }
214
243
 
215
- return py::convert(self->obj.TargetName());
244
+ return py::convert([&]()
245
+ {
246
+ auto _gil = release_gil();
247
+ return self->obj.TargetName();
248
+ }());
216
249
  }
217
250
  catch (...)
218
251
  {
@@ -223,7 +256,7 @@ namespace py::cpp::Windows::Security::Credentials::UI
223
256
 
224
257
  static int CredentialPickerOptions_put_TargetName(py::wrapper::Windows::Security::Credentials::UI::CredentialPickerOptions* self, PyObject* arg, void* /*unused*/) noexcept
225
258
  {
226
- if (arg == nullptr)
259
+ if (!arg)
227
260
  {
228
261
  PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
229
262
  return -1;
@@ -246,7 +279,11 @@ namespace py::cpp::Windows::Security::Credentials::UI
246
279
 
247
280
  auto param0 = py::convert_to<winrt::hstring>(arg);
248
281
 
249
- self->obj.TargetName(param0);
282
+ {
283
+ auto _gil = release_gil();
284
+ self->obj.TargetName(param0);
285
+ }
286
+
250
287
  return 0;
251
288
  }
252
289
  catch (...)
@@ -273,7 +310,11 @@ namespace py::cpp::Windows::Security::Credentials::UI
273
310
  return nullptr;
274
311
  }
275
312
 
276
- return py::convert(self->obj.PreviousCredential());
313
+ return py::convert([&]()
314
+ {
315
+ auto _gil = release_gil();
316
+ return self->obj.PreviousCredential();
317
+ }());
277
318
  }
278
319
  catch (...)
279
320
  {
@@ -284,7 +325,7 @@ namespace py::cpp::Windows::Security::Credentials::UI
284
325
 
285
326
  static int CredentialPickerOptions_put_PreviousCredential(py::wrapper::Windows::Security::Credentials::UI::CredentialPickerOptions* self, PyObject* arg, void* /*unused*/) noexcept
286
327
  {
287
- if (arg == nullptr)
328
+ if (!arg)
288
329
  {
289
330
  PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
290
331
  return -1;
@@ -307,7 +348,11 @@ namespace py::cpp::Windows::Security::Credentials::UI
307
348
 
308
349
  auto param0 = py::convert_to<winrt::Windows::Storage::Streams::IBuffer>(arg);
309
350
 
310
- self->obj.PreviousCredential(param0);
351
+ {
352
+ auto _gil = release_gil();
353
+ self->obj.PreviousCredential(param0);
354
+ }
355
+
311
356
  return 0;
312
357
  }
313
358
  catch (...)
@@ -334,7 +379,11 @@ namespace py::cpp::Windows::Security::Credentials::UI
334
379
  return nullptr;
335
380
  }
336
381
 
337
- return py::convert(self->obj.Message());
382
+ return py::convert([&]()
383
+ {
384
+ auto _gil = release_gil();
385
+ return self->obj.Message();
386
+ }());
338
387
  }
339
388
  catch (...)
340
389
  {
@@ -345,7 +394,7 @@ namespace py::cpp::Windows::Security::Credentials::UI
345
394
 
346
395
  static int CredentialPickerOptions_put_Message(py::wrapper::Windows::Security::Credentials::UI::CredentialPickerOptions* self, PyObject* arg, void* /*unused*/) noexcept
347
396
  {
348
- if (arg == nullptr)
397
+ if (!arg)
349
398
  {
350
399
  PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
351
400
  return -1;
@@ -368,7 +417,11 @@ namespace py::cpp::Windows::Security::Credentials::UI
368
417
 
369
418
  auto param0 = py::convert_to<winrt::hstring>(arg);
370
419
 
371
- self->obj.Message(param0);
420
+ {
421
+ auto _gil = release_gil();
422
+ self->obj.Message(param0);
423
+ }
424
+
372
425
  return 0;
373
426
  }
374
427
  catch (...)
@@ -395,7 +448,11 @@ namespace py::cpp::Windows::Security::Credentials::UI
395
448
  return nullptr;
396
449
  }
397
450
 
398
- return py::convert(self->obj.ErrorCode());
451
+ return py::convert([&]()
452
+ {
453
+ auto _gil = release_gil();
454
+ return self->obj.ErrorCode();
455
+ }());
399
456
  }
400
457
  catch (...)
401
458
  {
@@ -406,7 +463,7 @@ namespace py::cpp::Windows::Security::Credentials::UI
406
463
 
407
464
  static int CredentialPickerOptions_put_ErrorCode(py::wrapper::Windows::Security::Credentials::UI::CredentialPickerOptions* self, PyObject* arg, void* /*unused*/) noexcept
408
465
  {
409
- if (arg == nullptr)
466
+ if (!arg)
410
467
  {
411
468
  PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
412
469
  return -1;
@@ -429,7 +486,11 @@ namespace py::cpp::Windows::Security::Credentials::UI
429
486
 
430
487
  auto param0 = py::convert_to<uint32_t>(arg);
431
488
 
432
- self->obj.ErrorCode(param0);
489
+ {
490
+ auto _gil = release_gil();
491
+ self->obj.ErrorCode(param0);
492
+ }
493
+
433
494
  return 0;
434
495
  }
435
496
  catch (...)
@@ -456,7 +517,11 @@ namespace py::cpp::Windows::Security::Credentials::UI
456
517
  return nullptr;
457
518
  }
458
519
 
459
- return py::convert(self->obj.CustomAuthenticationProtocol());
520
+ return py::convert([&]()
521
+ {
522
+ auto _gil = release_gil();
523
+ return self->obj.CustomAuthenticationProtocol();
524
+ }());
460
525
  }
461
526
  catch (...)
462
527
  {
@@ -467,7 +532,7 @@ namespace py::cpp::Windows::Security::Credentials::UI
467
532
 
468
533
  static int CredentialPickerOptions_put_CustomAuthenticationProtocol(py::wrapper::Windows::Security::Credentials::UI::CredentialPickerOptions* self, PyObject* arg, void* /*unused*/) noexcept
469
534
  {
470
- if (arg == nullptr)
535
+ if (!arg)
471
536
  {
472
537
  PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
473
538
  return -1;
@@ -490,7 +555,11 @@ namespace py::cpp::Windows::Security::Credentials::UI
490
555
 
491
556
  auto param0 = py::convert_to<winrt::hstring>(arg);
492
557
 
493
- self->obj.CustomAuthenticationProtocol(param0);
558
+ {
559
+ auto _gil = release_gil();
560
+ self->obj.CustomAuthenticationProtocol(param0);
561
+ }
562
+
494
563
  return 0;
495
564
  }
496
565
  catch (...)
@@ -517,7 +586,11 @@ namespace py::cpp::Windows::Security::Credentials::UI
517
586
  return nullptr;
518
587
  }
519
588
 
520
- return py::convert(self->obj.CredentialSaveOption());
589
+ return py::convert([&]()
590
+ {
591
+ auto _gil = release_gil();
592
+ return self->obj.CredentialSaveOption();
593
+ }());
521
594
  }
522
595
  catch (...)
523
596
  {
@@ -528,7 +601,7 @@ namespace py::cpp::Windows::Security::Credentials::UI
528
601
 
529
602
  static int CredentialPickerOptions_put_CredentialSaveOption(py::wrapper::Windows::Security::Credentials::UI::CredentialPickerOptions* self, PyObject* arg, void* /*unused*/) noexcept
530
603
  {
531
- if (arg == nullptr)
604
+ if (!arg)
532
605
  {
533
606
  PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
534
607
  return -1;
@@ -551,7 +624,11 @@ namespace py::cpp::Windows::Security::Credentials::UI
551
624
 
552
625
  auto param0 = py::convert_to<winrt::Windows::Security::Credentials::UI::CredentialSaveOption>(arg);
553
626
 
554
- self->obj.CredentialSaveOption(param0);
627
+ {
628
+ auto _gil = release_gil();
629
+ self->obj.CredentialSaveOption(param0);
630
+ }
631
+
555
632
  return 0;
556
633
  }
557
634
  catch (...)
@@ -578,7 +655,11 @@ namespace py::cpp::Windows::Security::Credentials::UI
578
655
  return nullptr;
579
656
  }
580
657
 
581
- return py::convert(self->obj.Caption());
658
+ return py::convert([&]()
659
+ {
660
+ auto _gil = release_gil();
661
+ return self->obj.Caption();
662
+ }());
582
663
  }
583
664
  catch (...)
584
665
  {
@@ -589,7 +670,7 @@ namespace py::cpp::Windows::Security::Credentials::UI
589
670
 
590
671
  static int CredentialPickerOptions_put_Caption(py::wrapper::Windows::Security::Credentials::UI::CredentialPickerOptions* self, PyObject* arg, void* /*unused*/) noexcept
591
672
  {
592
- if (arg == nullptr)
673
+ if (!arg)
593
674
  {
594
675
  PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
595
676
  return -1;
@@ -612,7 +693,11 @@ namespace py::cpp::Windows::Security::Credentials::UI
612
693
 
613
694
  auto param0 = py::convert_to<winrt::hstring>(arg);
614
695
 
615
- self->obj.Caption(param0);
696
+ {
697
+ auto _gil = release_gil();
698
+ self->obj.Caption(param0);
699
+ }
700
+
616
701
  return 0;
617
702
  }
618
703
  catch (...)
@@ -639,7 +724,11 @@ namespace py::cpp::Windows::Security::Credentials::UI
639
724
  return nullptr;
640
725
  }
641
726
 
642
- return py::convert(self->obj.CallerSavesCredential());
727
+ return py::convert([&]()
728
+ {
729
+ auto _gil = release_gil();
730
+ return self->obj.CallerSavesCredential();
731
+ }());
643
732
  }
644
733
  catch (...)
645
734
  {
@@ -650,7 +739,7 @@ namespace py::cpp::Windows::Security::Credentials::UI
650
739
 
651
740
  static int CredentialPickerOptions_put_CallerSavesCredential(py::wrapper::Windows::Security::Credentials::UI::CredentialPickerOptions* self, PyObject* arg, void* /*unused*/) noexcept
652
741
  {
653
- if (arg == nullptr)
742
+ if (!arg)
654
743
  {
655
744
  PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
656
745
  return -1;
@@ -673,7 +762,11 @@ namespace py::cpp::Windows::Security::Credentials::UI
673
762
 
674
763
  auto param0 = py::convert_to<bool>(arg);
675
764
 
676
- self->obj.CallerSavesCredential(param0);
765
+ {
766
+ auto _gil = release_gil();
767
+ self->obj.CallerSavesCredential(param0);
768
+ }
769
+
677
770
  return 0;
678
771
  }
679
772
  catch (...)
@@ -700,7 +793,11 @@ namespace py::cpp::Windows::Security::Credentials::UI
700
793
  return nullptr;
701
794
  }
702
795
 
703
- return py::convert(self->obj.AuthenticationProtocol());
796
+ return py::convert([&]()
797
+ {
798
+ auto _gil = release_gil();
799
+ return self->obj.AuthenticationProtocol();
800
+ }());
704
801
  }
705
802
  catch (...)
706
803
  {
@@ -711,7 +808,7 @@ namespace py::cpp::Windows::Security::Credentials::UI
711
808
 
712
809
  static int CredentialPickerOptions_put_AuthenticationProtocol(py::wrapper::Windows::Security::Credentials::UI::CredentialPickerOptions* self, PyObject* arg, void* /*unused*/) noexcept
713
810
  {
714
- if (arg == nullptr)
811
+ if (!arg)
715
812
  {
716
813
  PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
717
814
  return -1;
@@ -734,7 +831,11 @@ namespace py::cpp::Windows::Security::Credentials::UI
734
831
 
735
832
  auto param0 = py::convert_to<winrt::Windows::Security::Credentials::UI::AuthenticationProtocol>(arg);
736
833
 
737
- self->obj.AuthenticationProtocol(param0);
834
+ {
835
+ auto _gil = release_gil();
836
+ self->obj.AuthenticationProtocol(param0);
837
+ }
838
+
738
839
  return 0;
739
840
  }
740
841
  catch (...)
@@ -761,7 +862,11 @@ namespace py::cpp::Windows::Security::Credentials::UI
761
862
  return nullptr;
762
863
  }
763
864
 
764
- return py::convert(self->obj.AlwaysDisplayDialog());
865
+ return py::convert([&]()
866
+ {
867
+ auto _gil = release_gil();
868
+ return self->obj.AlwaysDisplayDialog();
869
+ }());
765
870
  }
766
871
  catch (...)
767
872
  {
@@ -772,7 +877,7 @@ namespace py::cpp::Windows::Security::Credentials::UI
772
877
 
773
878
  static int CredentialPickerOptions_put_AlwaysDisplayDialog(py::wrapper::Windows::Security::Credentials::UI::CredentialPickerOptions* self, PyObject* arg, void* /*unused*/) noexcept
774
879
  {
775
- if (arg == nullptr)
880
+ if (!arg)
776
881
  {
777
882
  PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
778
883
  return -1;
@@ -795,7 +900,11 @@ namespace py::cpp::Windows::Security::Credentials::UI
795
900
 
796
901
  auto param0 = py::convert_to<bool>(arg);
797
902
 
798
- self->obj.AlwaysDisplayDialog(param0);
903
+ {
904
+ auto _gil = release_gil();
905
+ self->obj.AlwaysDisplayDialog(param0);
906
+ }
907
+
799
908
  return 0;
800
909
  }
801
910
  catch (...)
@@ -832,8 +941,7 @@ namespace py::cpp::Windows::Security::Credentials::UI
832
941
  static PyMethodDef _methods_CredentialPickerOptions[] = {
833
942
  { "_assign_array_", _assign_array_CredentialPickerOptions, METH_O | METH_STATIC, nullptr },
834
943
  { "_from", reinterpret_cast<PyCFunction>(_from_CredentialPickerOptions), METH_O | METH_STATIC, nullptr },
835
- { }
836
- };
944
+ { }};
837
945
 
838
946
  static PyGetSetDef _getset_CredentialPickerOptions[] = {
839
947
  { "target_name", reinterpret_cast<getter>(CredentialPickerOptions_get_TargetName), reinterpret_cast<setter>(CredentialPickerOptions_put_TargetName), nullptr, nullptr },
@@ -846,16 +954,14 @@ namespace py::cpp::Windows::Security::Credentials::UI
846
954
  { "caller_saves_credential", reinterpret_cast<getter>(CredentialPickerOptions_get_CallerSavesCredential), reinterpret_cast<setter>(CredentialPickerOptions_put_CallerSavesCredential), nullptr, nullptr },
847
955
  { "authentication_protocol", reinterpret_cast<getter>(CredentialPickerOptions_get_AuthenticationProtocol), reinterpret_cast<setter>(CredentialPickerOptions_put_AuthenticationProtocol), nullptr, nullptr },
848
956
  { "always_display_dialog", reinterpret_cast<getter>(CredentialPickerOptions_get_AlwaysDisplayDialog), reinterpret_cast<setter>(CredentialPickerOptions_put_AlwaysDisplayDialog), nullptr, nullptr },
849
- { }
850
- };
957
+ { }};
851
958
 
852
959
  static PyType_Slot _type_slots_CredentialPickerOptions[] = {
853
960
  { Py_tp_new, reinterpret_cast<void*>(_new_CredentialPickerOptions) },
854
961
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_CredentialPickerOptions) },
855
962
  { Py_tp_methods, reinterpret_cast<void*>(_methods_CredentialPickerOptions) },
856
963
  { Py_tp_getset, reinterpret_cast<void*>(_getset_CredentialPickerOptions) },
857
- { }
858
- };
964
+ { }};
859
965
 
860
966
  static PyType_Spec type_spec_CredentialPickerOptions = {
861
967
  "winrt._winrt_windows_security_credentials_ui.CredentialPickerOptions",
@@ -898,7 +1004,11 @@ namespace py::cpp::Windows::Security::Credentials::UI
898
1004
  return nullptr;
899
1005
  }
900
1006
 
901
- return py::convert(self->obj.Credential());
1007
+ return py::convert([&]()
1008
+ {
1009
+ auto _gil = release_gil();
1010
+ return self->obj.Credential();
1011
+ }());
902
1012
  }
903
1013
  catch (...)
904
1014
  {
@@ -924,7 +1034,11 @@ namespace py::cpp::Windows::Security::Credentials::UI
924
1034
  return nullptr;
925
1035
  }
926
1036
 
927
- return py::convert(self->obj.CredentialDomainName());
1037
+ return py::convert([&]()
1038
+ {
1039
+ auto _gil = release_gil();
1040
+ return self->obj.CredentialDomainName();
1041
+ }());
928
1042
  }
929
1043
  catch (...)
930
1044
  {
@@ -950,7 +1064,11 @@ namespace py::cpp::Windows::Security::Credentials::UI
950
1064
  return nullptr;
951
1065
  }
952
1066
 
953
- return py::convert(self->obj.CredentialPassword());
1067
+ return py::convert([&]()
1068
+ {
1069
+ auto _gil = release_gil();
1070
+ return self->obj.CredentialPassword();
1071
+ }());
954
1072
  }
955
1073
  catch (...)
956
1074
  {
@@ -976,7 +1094,11 @@ namespace py::cpp::Windows::Security::Credentials::UI
976
1094
  return nullptr;
977
1095
  }
978
1096
 
979
- return py::convert(self->obj.CredentialSaveOption());
1097
+ return py::convert([&]()
1098
+ {
1099
+ auto _gil = release_gil();
1100
+ return self->obj.CredentialSaveOption();
1101
+ }());
980
1102
  }
981
1103
  catch (...)
982
1104
  {
@@ -1002,7 +1124,11 @@ namespace py::cpp::Windows::Security::Credentials::UI
1002
1124
  return nullptr;
1003
1125
  }
1004
1126
 
1005
- return py::convert(self->obj.CredentialSaved());
1127
+ return py::convert([&]()
1128
+ {
1129
+ auto _gil = release_gil();
1130
+ return self->obj.CredentialSaved();
1131
+ }());
1006
1132
  }
1007
1133
  catch (...)
1008
1134
  {
@@ -1028,7 +1154,11 @@ namespace py::cpp::Windows::Security::Credentials::UI
1028
1154
  return nullptr;
1029
1155
  }
1030
1156
 
1031
- return py::convert(self->obj.CredentialUserName());
1157
+ return py::convert([&]()
1158
+ {
1159
+ auto _gil = release_gil();
1160
+ return self->obj.CredentialUserName();
1161
+ }());
1032
1162
  }
1033
1163
  catch (...)
1034
1164
  {
@@ -1054,7 +1184,11 @@ namespace py::cpp::Windows::Security::Credentials::UI
1054
1184
  return nullptr;
1055
1185
  }
1056
1186
 
1057
- return py::convert(self->obj.ErrorCode());
1187
+ return py::convert([&]()
1188
+ {
1189
+ auto _gil = release_gil();
1190
+ return self->obj.ErrorCode();
1191
+ }());
1058
1192
  }
1059
1193
  catch (...)
1060
1194
  {
@@ -1090,8 +1224,7 @@ namespace py::cpp::Windows::Security::Credentials::UI
1090
1224
  static PyMethodDef _methods_CredentialPickerResults[] = {
1091
1225
  { "_assign_array_", _assign_array_CredentialPickerResults, METH_O | METH_STATIC, nullptr },
1092
1226
  { "_from", reinterpret_cast<PyCFunction>(_from_CredentialPickerResults), METH_O | METH_STATIC, nullptr },
1093
- { }
1094
- };
1227
+ { }};
1095
1228
 
1096
1229
  static PyGetSetDef _getset_CredentialPickerResults[] = {
1097
1230
  { "credential", reinterpret_cast<getter>(CredentialPickerResults_get_Credential), nullptr, nullptr, nullptr },
@@ -1101,16 +1234,14 @@ namespace py::cpp::Windows::Security::Credentials::UI
1101
1234
  { "credential_saved", reinterpret_cast<getter>(CredentialPickerResults_get_CredentialSaved), nullptr, nullptr, nullptr },
1102
1235
  { "credential_user_name", reinterpret_cast<getter>(CredentialPickerResults_get_CredentialUserName), nullptr, nullptr, nullptr },
1103
1236
  { "error_code", reinterpret_cast<getter>(CredentialPickerResults_get_ErrorCode), nullptr, nullptr, nullptr },
1104
- { }
1105
- };
1237
+ { }};
1106
1238
 
1107
1239
  static PyType_Slot _type_slots_CredentialPickerResults[] = {
1108
1240
  { Py_tp_new, reinterpret_cast<void*>(_new_CredentialPickerResults) },
1109
1241
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_CredentialPickerResults) },
1110
1242
  { Py_tp_methods, reinterpret_cast<void*>(_methods_CredentialPickerResults) },
1111
1243
  { Py_tp_getset, reinterpret_cast<void*>(_getset_CredentialPickerResults) },
1112
- { }
1113
- };
1244
+ { }};
1114
1245
 
1115
1246
  static PyType_Spec type_spec_CredentialPickerResults = {
1116
1247
  "winrt._winrt_windows_security_credentials_ui.CredentialPickerResults",
@@ -1130,7 +1261,7 @@ namespace py::cpp::Windows::Security::Credentials::UI
1130
1261
 
1131
1262
  static PyObject* UserConsentVerifier_CheckAvailabilityAsync(PyObject* /*unused*/, PyObject* args) noexcept
1132
1263
  {
1133
- auto arg_count = PyTuple_Size(args);
1264
+ auto arg_count = PyTuple_GET_SIZE(args);
1134
1265
 
1135
1266
  if (arg_count == 0)
1136
1267
  {
@@ -1149,7 +1280,11 @@ namespace py::cpp::Windows::Security::Credentials::UI
1149
1280
  return nullptr;
1150
1281
  }
1151
1282
 
1152
- return py::convert(winrt::Windows::Security::Credentials::UI::UserConsentVerifier::CheckAvailabilityAsync());
1283
+ return py::convert([&]()
1284
+ {
1285
+ auto _gil = release_gil();
1286
+ return winrt::Windows::Security::Credentials::UI::UserConsentVerifier::CheckAvailabilityAsync();
1287
+ }());
1153
1288
  }
1154
1289
  catch (...)
1155
1290
  {
@@ -1166,7 +1301,7 @@ namespace py::cpp::Windows::Security::Credentials::UI
1166
1301
 
1167
1302
  static PyObject* UserConsentVerifier_RequestVerificationAsync(PyObject* /*unused*/, PyObject* args) noexcept
1168
1303
  {
1169
- auto arg_count = PyTuple_Size(args);
1304
+ auto arg_count = PyTuple_GET_SIZE(args);
1170
1305
 
1171
1306
  if (arg_count == 1)
1172
1307
  {
@@ -1187,7 +1322,11 @@ namespace py::cpp::Windows::Security::Credentials::UI
1187
1322
 
1188
1323
  auto param0 = py::convert_to<winrt::hstring>(args, 0);
1189
1324
 
1190
- return py::convert(winrt::Windows::Security::Credentials::UI::UserConsentVerifier::RequestVerificationAsync(param0));
1325
+ return py::convert([&]()
1326
+ {
1327
+ auto _gil = release_gil();
1328
+ return winrt::Windows::Security::Credentials::UI::UserConsentVerifier::RequestVerificationAsync(param0);
1329
+ }());
1191
1330
  }
1192
1331
  catch (...)
1193
1332
  {
@@ -1203,19 +1342,16 @@ namespace py::cpp::Windows::Security::Credentials::UI
1203
1342
  }
1204
1343
 
1205
1344
  static PyMethodDef _methods_UserConsentVerifier[] = {
1206
- { }
1207
- };
1345
+ { }};
1208
1346
 
1209
1347
  static PyGetSetDef _getset_UserConsentVerifier[] = {
1210
- { }
1211
- };
1348
+ { }};
1212
1349
 
1213
1350
  static PyType_Slot _type_slots_UserConsentVerifier[] = {
1214
1351
  { Py_tp_new, reinterpret_cast<void*>(_new_UserConsentVerifier) },
1215
1352
  { Py_tp_methods, reinterpret_cast<void*>(_methods_UserConsentVerifier) },
1216
1353
  { Py_tp_getset, reinterpret_cast<void*>(_getset_UserConsentVerifier) },
1217
- { }
1218
- };
1354
+ { }};
1219
1355
 
1220
1356
  static PyType_Spec type_spec_UserConsentVerifier = {
1221
1357
  "winrt._winrt_windows_security_credentials_ui.UserConsentVerifier",
@@ -1225,14 +1361,12 @@ namespace py::cpp::Windows::Security::Credentials::UI
1225
1361
  _type_slots_UserConsentVerifier};
1226
1362
 
1227
1363
  static PyGetSetDef getset_UserConsentVerifier_Static[] = {
1228
- { }
1229
- };
1364
+ { }};
1230
1365
 
1231
1366
  static PyMethodDef methods_UserConsentVerifier_Static[] = {
1232
1367
  { "check_availability_async", reinterpret_cast<PyCFunction>(UserConsentVerifier_CheckAvailabilityAsync), METH_VARARGS, nullptr },
1233
1368
  { "request_verification_async", reinterpret_cast<PyCFunction>(UserConsentVerifier_RequestVerificationAsync), METH_VARARGS, nullptr },
1234
- { }
1235
- };
1369
+ { }};
1236
1370
 
1237
1371
  static PyType_Slot type_slots_UserConsentVerifier_Static[] =
1238
1372
  {
@@ -1242,14 +1376,12 @@ namespace py::cpp::Windows::Security::Credentials::UI
1242
1376
  { }
1243
1377
  };
1244
1378
 
1245
- static PyType_Spec type_spec_UserConsentVerifier_Static =
1246
- {
1379
+ static PyType_Spec type_spec_UserConsentVerifier_Static = {
1247
1380
  "winrt._winrt_windows_security_credentials_ui.UserConsentVerifier_Static",
1248
1381
  static_cast<int>(PyType_Type.tp_basicsize),
1249
1382
  static_cast<int>(PyType_Type.tp_itemsize),
1250
1383
  Py_TPFLAGS_DEFAULT,
1251
- type_slots_UserConsentVerifier_Static
1252
- };
1384
+ type_slots_UserConsentVerifier_Static};
1253
1385
 
1254
1386
  // ----- Windows.Security.Credentials.UI Initialization --------------------
1255
1387
 
@@ -1283,6 +1415,12 @@ PyMODINIT_FUNC PyInit__winrt_windows_security_credentials_ui(void) noexcept
1283
1415
  return nullptr;
1284
1416
  }
1285
1417
 
1418
+ auto inspectable_meta_type = py::get_inspectable_meta_type();
1419
+ if (!inspectable_meta_type)
1420
+ {
1421
+ return nullptr;
1422
+ }
1423
+
1286
1424
  auto object_type = py::get_object_type();
1287
1425
  if (!object_type)
1288
1426
  {
@@ -1296,7 +1434,13 @@ PyMODINIT_FUNC PyInit__winrt_windows_security_credentials_ui(void) noexcept
1296
1434
  return nullptr;
1297
1435
  }
1298
1436
 
1299
- py::pyobj_handle type_CredentialPicker_Static{PyType_FromSpec(&type_spec_CredentialPicker_Static)};
1437
+ py::pyobj_handle CredentialPicker_Static_bases{PyTuple_Pack(1, reinterpret_cast<PyObject*>(inspectable_meta_type))};
1438
+ if (!CredentialPicker_Static_bases)
1439
+ {
1440
+ return nullptr;
1441
+ }
1442
+
1443
+ py::pyobj_handle type_CredentialPicker_Static{PyType_FromSpecWithBases(&type_spec_CredentialPicker_Static, CredentialPicker_Static_bases.get())};
1300
1444
  if (!type_CredentialPicker_Static)
1301
1445
  {
1302
1446
  return nullptr;
@@ -1308,19 +1452,25 @@ PyMODINIT_FUNC PyInit__winrt_windows_security_credentials_ui(void) noexcept
1308
1452
  return nullptr;
1309
1453
  }
1310
1454
 
1311
- py::pytype_handle CredentialPickerOptions_type{py::register_python_type(module.get(), &type_spec_CredentialPickerOptions, object_bases.get(), nullptr)};
1455
+ py::pytype_handle CredentialPickerOptions_type{py::register_python_type(module.get(), &type_spec_CredentialPickerOptions, object_bases.get(), inspectable_meta_type)};
1312
1456
  if (!CredentialPickerOptions_type)
1313
1457
  {
1314
1458
  return nullptr;
1315
1459
  }
1316
1460
 
1317
- py::pytype_handle CredentialPickerResults_type{py::register_python_type(module.get(), &type_spec_CredentialPickerResults, object_bases.get(), nullptr)};
1461
+ py::pytype_handle CredentialPickerResults_type{py::register_python_type(module.get(), &type_spec_CredentialPickerResults, object_bases.get(), inspectable_meta_type)};
1318
1462
  if (!CredentialPickerResults_type)
1319
1463
  {
1320
1464
  return nullptr;
1321
1465
  }
1322
1466
 
1323
- py::pyobj_handle type_UserConsentVerifier_Static{PyType_FromSpec(&type_spec_UserConsentVerifier_Static)};
1467
+ py::pyobj_handle UserConsentVerifier_Static_bases{PyTuple_Pack(1, reinterpret_cast<PyObject*>(inspectable_meta_type))};
1468
+ if (!UserConsentVerifier_Static_bases)
1469
+ {
1470
+ return nullptr;
1471
+ }
1472
+
1473
+ py::pyobj_handle type_UserConsentVerifier_Static{PyType_FromSpecWithBases(&type_spec_UserConsentVerifier_Static, UserConsentVerifier_Static_bases.get())};
1324
1474
  if (!type_UserConsentVerifier_Static)
1325
1475
  {
1326
1476
  return nullptr;
@@ -1,14 +1,14 @@
1
1
  # WARNING: Please don't edit this file. It was automatically generated.
2
2
 
3
3
  [build-system]
4
- requires = ["setuptools", "winrt-sdk"]
4
+ requires = ["setuptools>=78", "winrt-sdk"]
5
5
  build-backend = "setuptools.build_meta"
6
6
 
7
7
  [project]
8
8
  name = "winrt-Windows.Security.Credentials.UI"
9
9
  description = "Python projection of Windows Runtime (WinRT) APIs"
10
10
  readme = "README.md"
11
- license = { text = "MIT" }
11
+ license = "MIT"
12
12
  classifiers = [
13
13
  "Operating System :: Microsoft :: Windows",
14
14
  "Programming Language :: Python :: 3",
@@ -16,7 +16,7 @@ classifiers = [
16
16
  "Intended Audience :: Developers",
17
17
  ]
18
18
  dynamic = ["version", "dependencies", "optional-dependencies"]
19
- requires-python = ">=3.9,<3.14"
19
+ requires-python = ">=3.9"
20
20
 
21
21
  [project.urls]
22
22
  # Homepage = "https://github.com/pywinrt/pywinrt"
@@ -34,7 +34,7 @@ optional-dependencies.all = { file = "all-requirements.txt" }
34
34
 
35
35
  [tool.cibuildwheel]
36
36
  # use local winrt-sdk build dependency
37
- environment = { PYTHONPATH="../winrt-sdk/src" }
37
+ environment = { PYTHONPATH="../../winrt-sdk/src" }
38
38
  # don't install winrt-sdk from PyPI
39
39
  build-frontend = { name = "build[uv]", args = ["--skip-dependency-check", "--no-isolation"] }
40
40
  before-build = "uv pip install setuptools"
@@ -1,3 +1,3 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.1.0
2
2
 
3
- winrt-runtime==2.3.0
3
+ winrt-runtime==3.1.0
@@ -19,7 +19,7 @@ class build_ext_ex(build_ext):
19
19
 
20
20
 
21
21
  setup(
22
- cmdclass = {'build_ext': build_ext_ex},
22
+ cmdclass={"build_ext": build_ext_ex},
23
23
  ext_modules=[
24
24
  Extension(
25
25
  "winrt._winrt_windows_security_credentials_ui",
@@ -0,0 +1,130 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.1.0
2
+
3
+ import datetime
4
+ import sys
5
+ import types
6
+ import typing
7
+ import uuid as _uuid
8
+ from builtins import property as _property
9
+
10
+ import winrt._winrt
11
+ import winrt.system
12
+ import winrt.windows.foundation as windows_foundation
13
+ import winrt.windows.storage.streams as windows_storage_streams
14
+
15
+ from winrt.windows.security.credentials.ui import AuthenticationProtocol, CredentialSaveOption, UserConsentVerificationResult, UserConsentVerifierAvailability
16
+
17
+ Self = typing.TypeVar('Self')
18
+
19
+ @typing.final
20
+ class CredentialPicker_Static(winrt._winrt.IInspectable_Static):
21
+ # Windows.Foundation.IAsyncOperation`1<Windows.Security.Credentials.UI.CredentialPickerResults> Windows.Security.Credentials.UI.CredentialPicker::PickAsync(System.String,System.String,System.String)
22
+ def pick_with_caption_async(cls, target_name: str, message: str, caption: str, /) -> windows_foundation.IAsyncOperation[CredentialPickerResults]: ...
23
+ # Windows.Foundation.IAsyncOperation`1<Windows.Security.Credentials.UI.CredentialPickerResults> Windows.Security.Credentials.UI.CredentialPicker::PickAsync(System.String,System.String)
24
+ def pick_with_message_async(cls, target_name: str, message: str, /) -> windows_foundation.IAsyncOperation[CredentialPickerResults]: ...
25
+ # Windows.Foundation.IAsyncOperation`1<Windows.Security.Credentials.UI.CredentialPickerResults> Windows.Security.Credentials.UI.CredentialPicker::PickAsync(Windows.Security.Credentials.UI.CredentialPickerOptions)
26
+ def pick_with_options_async(cls, options: CredentialPickerOptions, /) -> windows_foundation.IAsyncOperation[CredentialPickerResults]: ...
27
+
28
+ @typing.final
29
+ class CredentialPicker(winrt.system.Object, metaclass=CredentialPicker_Static):
30
+ pass
31
+
32
+ @typing.final
33
+ class CredentialPickerOptions(winrt.system.Object):
34
+ def __new__(cls: typing.Type[Self]) -> Self: ...
35
+ # System.String Windows.Security.Credentials.UI.CredentialPickerOptions::get_TargetName()
36
+ @_property
37
+ def target_name(self) -> str: ...
38
+ # System.Void Windows.Security.Credentials.UI.CredentialPickerOptions::put_TargetName(System.String)
39
+ @target_name.setter
40
+ def target_name(self, value: str) -> None: ...
41
+ # Windows.Storage.Streams.IBuffer Windows.Security.Credentials.UI.CredentialPickerOptions::get_PreviousCredential()
42
+ @_property
43
+ def previous_credential(self) -> windows_storage_streams.IBuffer: ...
44
+ # System.Void Windows.Security.Credentials.UI.CredentialPickerOptions::put_PreviousCredential(Windows.Storage.Streams.IBuffer)
45
+ @previous_credential.setter
46
+ def previous_credential(self, value: windows_storage_streams.IBuffer) -> None: ...
47
+ # System.String Windows.Security.Credentials.UI.CredentialPickerOptions::get_Message()
48
+ @_property
49
+ def message(self) -> str: ...
50
+ # System.Void Windows.Security.Credentials.UI.CredentialPickerOptions::put_Message(System.String)
51
+ @message.setter
52
+ def message(self, value: str) -> None: ...
53
+ # System.UInt32 Windows.Security.Credentials.UI.CredentialPickerOptions::get_ErrorCode()
54
+ @_property
55
+ def error_code(self) -> winrt.system.UInt32: ...
56
+ # System.Void Windows.Security.Credentials.UI.CredentialPickerOptions::put_ErrorCode(System.UInt32)
57
+ @error_code.setter
58
+ def error_code(self, value: winrt.system.UInt32) -> None: ...
59
+ # System.String Windows.Security.Credentials.UI.CredentialPickerOptions::get_CustomAuthenticationProtocol()
60
+ @_property
61
+ def custom_authentication_protocol(self) -> str: ...
62
+ # System.Void Windows.Security.Credentials.UI.CredentialPickerOptions::put_CustomAuthenticationProtocol(System.String)
63
+ @custom_authentication_protocol.setter
64
+ def custom_authentication_protocol(self, value: str) -> None: ...
65
+ # Windows.Security.Credentials.UI.CredentialSaveOption Windows.Security.Credentials.UI.CredentialPickerOptions::get_CredentialSaveOption()
66
+ @_property
67
+ def credential_save_option(self) -> CredentialSaveOption: ...
68
+ # System.Void Windows.Security.Credentials.UI.CredentialPickerOptions::put_CredentialSaveOption(Windows.Security.Credentials.UI.CredentialSaveOption)
69
+ @credential_save_option.setter
70
+ def credential_save_option(self, value: CredentialSaveOption) -> None: ...
71
+ # System.String Windows.Security.Credentials.UI.CredentialPickerOptions::get_Caption()
72
+ @_property
73
+ def caption(self) -> str: ...
74
+ # System.Void Windows.Security.Credentials.UI.CredentialPickerOptions::put_Caption(System.String)
75
+ @caption.setter
76
+ def caption(self, value: str) -> None: ...
77
+ # System.Boolean Windows.Security.Credentials.UI.CredentialPickerOptions::get_CallerSavesCredential()
78
+ @_property
79
+ def caller_saves_credential(self) -> bool: ...
80
+ # System.Void Windows.Security.Credentials.UI.CredentialPickerOptions::put_CallerSavesCredential(System.Boolean)
81
+ @caller_saves_credential.setter
82
+ def caller_saves_credential(self, value: bool) -> None: ...
83
+ # Windows.Security.Credentials.UI.AuthenticationProtocol Windows.Security.Credentials.UI.CredentialPickerOptions::get_AuthenticationProtocol()
84
+ @_property
85
+ def authentication_protocol(self) -> AuthenticationProtocol: ...
86
+ # System.Void Windows.Security.Credentials.UI.CredentialPickerOptions::put_AuthenticationProtocol(Windows.Security.Credentials.UI.AuthenticationProtocol)
87
+ @authentication_protocol.setter
88
+ def authentication_protocol(self, value: AuthenticationProtocol) -> None: ...
89
+ # System.Boolean Windows.Security.Credentials.UI.CredentialPickerOptions::get_AlwaysDisplayDialog()
90
+ @_property
91
+ def always_display_dialog(self) -> bool: ...
92
+ # System.Void Windows.Security.Credentials.UI.CredentialPickerOptions::put_AlwaysDisplayDialog(System.Boolean)
93
+ @always_display_dialog.setter
94
+ def always_display_dialog(self, value: bool) -> None: ...
95
+
96
+ @typing.final
97
+ class CredentialPickerResults(winrt.system.Object):
98
+ # Windows.Storage.Streams.IBuffer Windows.Security.Credentials.UI.CredentialPickerResults::get_Credential()
99
+ @_property
100
+ def credential(self) -> windows_storage_streams.IBuffer: ...
101
+ # System.String Windows.Security.Credentials.UI.CredentialPickerResults::get_CredentialDomainName()
102
+ @_property
103
+ def credential_domain_name(self) -> str: ...
104
+ # System.String Windows.Security.Credentials.UI.CredentialPickerResults::get_CredentialPassword()
105
+ @_property
106
+ def credential_password(self) -> str: ...
107
+ # Windows.Security.Credentials.UI.CredentialSaveOption Windows.Security.Credentials.UI.CredentialPickerResults::get_CredentialSaveOption()
108
+ @_property
109
+ def credential_save_option(self) -> CredentialSaveOption: ...
110
+ # System.Boolean Windows.Security.Credentials.UI.CredentialPickerResults::get_CredentialSaved()
111
+ @_property
112
+ def credential_saved(self) -> bool: ...
113
+ # System.String Windows.Security.Credentials.UI.CredentialPickerResults::get_CredentialUserName()
114
+ @_property
115
+ def credential_user_name(self) -> str: ...
116
+ # System.UInt32 Windows.Security.Credentials.UI.CredentialPickerResults::get_ErrorCode()
117
+ @_property
118
+ def error_code(self) -> winrt.system.UInt32: ...
119
+
120
+ @typing.final
121
+ class UserConsentVerifier_Static(winrt._winrt.IInspectable_Static):
122
+ # Windows.Foundation.IAsyncOperation`1<Windows.Security.Credentials.UI.UserConsentVerifierAvailability> Windows.Security.Credentials.UI.UserConsentVerifier::CheckAvailabilityAsync()
123
+ def check_availability_async(cls) -> windows_foundation.IAsyncOperation[UserConsentVerifierAvailability]: ...
124
+ # Windows.Foundation.IAsyncOperation`1<Windows.Security.Credentials.UI.UserConsentVerificationResult> Windows.Security.Credentials.UI.UserConsentVerifier::RequestVerificationAsync(System.String)
125
+ def request_verification_async(cls, message: str, /) -> windows_foundation.IAsyncOperation[UserConsentVerificationResult]: ...
126
+
127
+ @typing.final
128
+ class UserConsentVerifier(winrt.system.Object, metaclass=UserConsentVerifier_Static):
129
+ pass
130
+
@@ -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.1.0
2
2
 
3
3
  import enum
4
4
 
5
5
  import winrt.system
6
- from winrt import _winrt_windows_security_credentials_ui
6
+ from winrt._winrt_windows_security_credentials_ui import (
7
+ CredentialPicker,
8
+ CredentialPickerOptions,
9
+ CredentialPickerResults,
10
+ UserConsentVerifier,
11
+ )
7
12
 
8
13
  __all__ = [
9
14
  "AuthenticationProtocol",
@@ -46,7 +51,3 @@ class UserConsentVerifierAvailability(enum.IntEnum):
46
51
  DISABLED_BY_POLICY = 3
47
52
  DEVICE_BUSY = 4
48
53
 
49
- CredentialPicker = _winrt_windows_security_credentials_ui.CredentialPicker
50
- CredentialPickerOptions = _winrt_windows_security_credentials_ui.CredentialPickerOptions
51
- CredentialPickerResults = _winrt_windows_security_credentials_ui.CredentialPickerResults
52
- UserConsentVerifier = _winrt_windows_security_credentials_ui.UserConsentVerifier
@@ -1,8 +1,8 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: winrt-Windows.Security.Credentials.UI
3
- Version: 2.3.0
3
+ Version: 3.1.0
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
- License: MIT
5
+ License-Expression: MIT
6
6
  Project-URL: Documentation, https://pywinrt.readthedocs.io
7
7
  Project-URL: Repository, https://github.com/pywinrt/pywinrt
8
8
  Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
@@ -10,12 +10,12 @@ Classifier: Operating System :: Microsoft :: Windows
10
10
  Classifier: Programming Language :: Python :: 3
11
11
  Classifier: Programming Language :: Python :: Implementation :: CPython
12
12
  Classifier: Intended Audience :: Developers
13
- Requires-Python: <3.14,>=3.9
13
+ Requires-Python: >=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==2.3.0
15
+ Requires-Dist: winrt-runtime==3.1.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.Foundation[all]==2.3.0; extra == "all"
18
- Requires-Dist: winrt-Windows.Storage.Streams[all]==2.3.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.Foundation[all]==3.1.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Storage.Streams[all]==3.1.0; extra == "all"
19
19
 
20
20
  <!-- warning: Please don't edit this file. It was automatically generated. -->
21
21
 
@@ -0,0 +1,5 @@
1
+ winrt-runtime==3.1.0
2
+
3
+ [all]
4
+ winrt-Windows.Foundation[all]==3.1.0
5
+ winrt-Windows.Storage.Streams[all]==3.1.0
@@ -1,4 +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.Streams[all]==2.3.0
@@ -1,105 +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.streams as windows_storage_streams
14
-
15
- from winrt.windows.security.credentials.ui import AuthenticationProtocol, CredentialSaveOption, UserConsentVerificationResult, UserConsentVerifierAvailability
16
-
17
- Self = typing.TypeVar('Self')
18
-
19
- @typing.final
20
- class CredentialPicker_Static(type):
21
- @typing.overload
22
- def pick_async(cls, options: typing.Optional[CredentialPickerOptions], /) -> windows_foundation.IAsyncOperation[CredentialPickerResults]: ...
23
- @typing.overload
24
- def pick_async(cls, target_name: str, message: str, /) -> windows_foundation.IAsyncOperation[CredentialPickerResults]: ...
25
- @typing.overload
26
- def pick_async(cls, target_name: str, message: str, caption: str, /) -> windows_foundation.IAsyncOperation[CredentialPickerResults]: ...
27
-
28
- @typing.final
29
- class CredentialPicker(winrt.system.Object, metaclass=CredentialPicker_Static):
30
- pass
31
-
32
- @typing.final
33
- class CredentialPickerOptions(winrt.system.Object):
34
- @staticmethod
35
- def _from(obj: winrt.system.Object, /) -> CredentialPickerOptions: ...
36
- def __new__(cls: typing.Type[CredentialPickerOptions]) -> CredentialPickerOptions: ...
37
- @_property
38
- def target_name(self) -> str: ...
39
- @target_name.setter
40
- def target_name(self, value: str) -> None: ...
41
- @_property
42
- def previous_credential(self) -> typing.Optional[windows_storage_streams.IBuffer]: ...
43
- @previous_credential.setter
44
- def previous_credential(self, value: typing.Optional[windows_storage_streams.IBuffer]) -> None: ...
45
- @_property
46
- def message(self) -> str: ...
47
- @message.setter
48
- def message(self, value: str) -> None: ...
49
- @_property
50
- def error_code(self) -> winrt.system.UInt32: ...
51
- @error_code.setter
52
- def error_code(self, value: winrt.system.UInt32) -> None: ...
53
- @_property
54
- def custom_authentication_protocol(self) -> str: ...
55
- @custom_authentication_protocol.setter
56
- def custom_authentication_protocol(self, value: str) -> None: ...
57
- @_property
58
- def credential_save_option(self) -> CredentialSaveOption: ...
59
- @credential_save_option.setter
60
- def credential_save_option(self, value: CredentialSaveOption) -> None: ...
61
- @_property
62
- def caption(self) -> str: ...
63
- @caption.setter
64
- def caption(self, value: str) -> None: ...
65
- @_property
66
- def caller_saves_credential(self) -> bool: ...
67
- @caller_saves_credential.setter
68
- def caller_saves_credential(self, value: bool) -> None: ...
69
- @_property
70
- def authentication_protocol(self) -> AuthenticationProtocol: ...
71
- @authentication_protocol.setter
72
- def authentication_protocol(self, value: AuthenticationProtocol) -> None: ...
73
- @_property
74
- def always_display_dialog(self) -> bool: ...
75
- @always_display_dialog.setter
76
- def always_display_dialog(self, value: bool) -> None: ...
77
-
78
- @typing.final
79
- class CredentialPickerResults(winrt.system.Object):
80
- @staticmethod
81
- def _from(obj: winrt.system.Object, /) -> CredentialPickerResults: ...
82
- @_property
83
- def credential(self) -> typing.Optional[windows_storage_streams.IBuffer]: ...
84
- @_property
85
- def credential_domain_name(self) -> str: ...
86
- @_property
87
- def credential_password(self) -> str: ...
88
- @_property
89
- def credential_save_option(self) -> CredentialSaveOption: ...
90
- @_property
91
- def credential_saved(self) -> bool: ...
92
- @_property
93
- def credential_user_name(self) -> str: ...
94
- @_property
95
- def error_code(self) -> winrt.system.UInt32: ...
96
-
97
- @typing.final
98
- class UserConsentVerifier_Static(type):
99
- def check_availability_async(cls) -> windows_foundation.IAsyncOperation[UserConsentVerifierAvailability]: ...
100
- def request_verification_async(cls, message: str, /) -> windows_foundation.IAsyncOperation[UserConsentVerificationResult]: ...
101
-
102
- @typing.final
103
- class UserConsentVerifier(winrt.system.Object, metaclass=UserConsentVerifier_Static):
104
- pass
105
-
@@ -1,5 +0,0 @@
1
- winrt-runtime==2.3.0
2
-
3
- [all]
4
- winrt-Windows.Foundation[all]==2.3.0
5
- winrt-Windows.Storage.Streams[all]==2.3.0