winrt-Windows.Networking.PushNotifications 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 (22) hide show
  1. {winrt_windows_networking_pushnotifications-2.3.0 → winrt_windows_networking_pushnotifications-3.1.0}/PKG-INFO +10 -10
  2. winrt_windows_networking_pushnotifications-3.1.0/all-requirements.txt +7 -0
  3. {winrt_windows_networking_pushnotifications-2.3.0 → winrt_windows_networking_pushnotifications-3.1.0}/py.Windows.Networking.PushNotifications.cpp +234 -92
  4. {winrt_windows_networking_pushnotifications-2.3.0 → winrt_windows_networking_pushnotifications-3.1.0}/pyproject.toml +4 -4
  5. winrt_windows_networking_pushnotifications-3.1.0/pywinrt-version.txt +1 -0
  6. {winrt_windows_networking_pushnotifications-2.3.0 → winrt_windows_networking_pushnotifications-3.1.0}/requirements.txt +2 -2
  7. {winrt_windows_networking_pushnotifications-2.3.0 → winrt_windows_networking_pushnotifications-3.1.0}/setup.py +1 -1
  8. winrt_windows_networking_pushnotifications-3.1.0/winrt/_winrt_windows_networking_pushnotifications.pyi +116 -0
  9. winrt_windows_networking_pushnotifications-3.1.0/winrt/windows/networking/pushnotifications/__init__.py +31 -0
  10. {winrt_windows_networking_pushnotifications-2.3.0 → winrt_windows_networking_pushnotifications-3.1.0}/winrt_Windows.Networking.PushNotifications.egg-info/PKG-INFO +10 -10
  11. winrt_windows_networking_pushnotifications-3.1.0/winrt_Windows.Networking.PushNotifications.egg-info/requires.txt +8 -0
  12. winrt_windows_networking_pushnotifications-2.3.0/all-requirements.txt +0 -7
  13. winrt_windows_networking_pushnotifications-2.3.0/pywinrt-version.txt +0 -1
  14. winrt_windows_networking_pushnotifications-2.3.0/winrt/_winrt_windows_networking_pushnotifications.pyi +0 -102
  15. winrt_windows_networking_pushnotifications-2.3.0/winrt/windows/networking/pushnotifications/__init__.py +0 -30
  16. winrt_windows_networking_pushnotifications-2.3.0/winrt_Windows.Networking.PushNotifications.egg-info/requires.txt +0 -8
  17. {winrt_windows_networking_pushnotifications-2.3.0 → winrt_windows_networking_pushnotifications-3.1.0}/README.md +0 -0
  18. {winrt_windows_networking_pushnotifications-2.3.0 → winrt_windows_networking_pushnotifications-3.1.0}/setup.cfg +0 -0
  19. {winrt_windows_networking_pushnotifications-2.3.0 → winrt_windows_networking_pushnotifications-3.1.0}/winrt/windows/networking/pushnotifications/py.typed +0 -0
  20. {winrt_windows_networking_pushnotifications-2.3.0 → winrt_windows_networking_pushnotifications-3.1.0}/winrt_Windows.Networking.PushNotifications.egg-info/SOURCES.txt +0 -0
  21. {winrt_windows_networking_pushnotifications-2.3.0 → winrt_windows_networking_pushnotifications-3.1.0}/winrt_Windows.Networking.PushNotifications.egg-info/dependency_links.txt +0 -0
  22. {winrt_windows_networking_pushnotifications-2.3.0 → winrt_windows_networking_pushnotifications-3.1.0}/winrt_Windows.Networking.PushNotifications.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.Networking.PushNotifications
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,15 +10,15 @@ Classifier: Operating System :: Microsoft :: Windows
10
10
  Classifier: Programming Language :: Python :: 3
11
11
  Classifier: Programming Language :: Python :: Implementation :: CPython
12
12
  Classifier: Intended Audience :: Developers
13
- Requires-Python: <3.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.Foundation.Collections[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"
21
- Requires-Dist: winrt-Windows.UI.Notifications[all]==2.3.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.Foundation[all]==3.1.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Foundation.Collections[all]==3.1.0; extra == "all"
19
+ Requires-Dist: winrt-Windows.Storage.Streams[all]==3.1.0; extra == "all"
20
+ Requires-Dist: winrt-Windows.System[all]==3.1.0; extra == "all"
21
+ Requires-Dist: winrt-Windows.UI.Notifications[all]==3.1.0; extra == "all"
22
22
 
23
23
  <!-- warning: Please don't edit this file. It was automatically generated. -->
24
24
 
@@ -0,0 +1,7 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.1.0
2
+
3
+ winrt-Windows.Foundation[all]==3.1.0
4
+ winrt-Windows.Foundation.Collections[all]==3.1.0
5
+ winrt-Windows.Storage.Streams[all]==3.1.0
6
+ winrt-Windows.System[all]==3.1.0
7
+ winrt-Windows.UI.Notifications[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.Networking.PushNotifications.h"
4
4
 
@@ -23,7 +23,7 @@ namespace py::cpp::Windows::Networking::PushNotifications
23
23
 
24
24
  static PyObject* PushNotificationChannel_Close(py::wrapper::Windows::Networking::PushNotifications::PushNotificationChannel* 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::Networking::PushNotifications
42
42
  return nullptr;
43
43
  }
44
44
 
45
- self->obj.Close();
45
+ {
46
+ auto _gil = release_gil();
47
+ self->obj.Close();
48
+ }
49
+
46
50
  Py_RETURN_NONE;
47
51
  }
48
52
  catch (...)
@@ -75,7 +79,11 @@ namespace py::cpp::Windows::Networking::PushNotifications
75
79
  return nullptr;
76
80
  }
77
81
 
78
- return py::convert(self->obj.ExpirationTime());
82
+ return py::convert([&]()
83
+ {
84
+ auto _gil = release_gil();
85
+ return self->obj.ExpirationTime();
86
+ }());
79
87
  }
80
88
  catch (...)
81
89
  {
@@ -101,7 +109,11 @@ namespace py::cpp::Windows::Networking::PushNotifications
101
109
  return nullptr;
102
110
  }
103
111
 
104
- return py::convert(self->obj.Uri());
112
+ return py::convert([&]()
113
+ {
114
+ auto _gil = release_gil();
115
+ return self->obj.Uri();
116
+ }());
105
117
  }
106
118
  catch (...)
107
119
  {
@@ -129,7 +141,11 @@ namespace py::cpp::Windows::Networking::PushNotifications
129
141
 
130
142
  auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Networking::PushNotifications::PushNotificationChannel, winrt::Windows::Networking::PushNotifications::PushNotificationReceivedEventArgs>>(arg);
131
143
 
132
- return py::convert(self->obj.PushNotificationReceived(param0));
144
+ return py::convert([&]()
145
+ {
146
+ auto _gil = release_gil();
147
+ return self->obj.PushNotificationReceived(param0);
148
+ }());
133
149
  }
134
150
  catch (...)
135
151
  {
@@ -157,7 +173,11 @@ namespace py::cpp::Windows::Networking::PushNotifications
157
173
 
158
174
  auto param0 = py::convert_to<winrt::event_token>(arg);
159
175
 
160
- self->obj.PushNotificationReceived(param0);
176
+ {
177
+ auto _gil = release_gil();
178
+ self->obj.PushNotificationReceived(param0);
179
+ }
180
+
161
181
  Py_RETURN_NONE;
162
182
  }
163
183
  catch (...)
@@ -197,22 +217,19 @@ namespace py::cpp::Windows::Networking::PushNotifications
197
217
  { "remove_push_notification_received", reinterpret_cast<PyCFunction>(PushNotificationChannel_remove_PushNotificationReceived), METH_O, nullptr },
198
218
  { "_assign_array_", _assign_array_PushNotificationChannel, METH_O | METH_STATIC, nullptr },
199
219
  { "_from", reinterpret_cast<PyCFunction>(_from_PushNotificationChannel), METH_O | METH_STATIC, nullptr },
200
- { }
201
- };
220
+ { }};
202
221
 
203
222
  static PyGetSetDef _getset_PushNotificationChannel[] = {
204
223
  { "expiration_time", reinterpret_cast<getter>(PushNotificationChannel_get_ExpirationTime), nullptr, nullptr, nullptr },
205
224
  { "uri", reinterpret_cast<getter>(PushNotificationChannel_get_Uri), nullptr, nullptr, nullptr },
206
- { }
207
- };
225
+ { }};
208
226
 
209
227
  static PyType_Slot _type_slots_PushNotificationChannel[] = {
210
228
  { Py_tp_new, reinterpret_cast<void*>(_new_PushNotificationChannel) },
211
229
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_PushNotificationChannel) },
212
230
  { Py_tp_methods, reinterpret_cast<void*>(_methods_PushNotificationChannel) },
213
231
  { Py_tp_getset, reinterpret_cast<void*>(_getset_PushNotificationChannel) },
214
- { }
215
- };
232
+ { }};
216
233
 
217
234
  static PyType_Spec type_spec_PushNotificationChannel = {
218
235
  "winrt._winrt_windows_networking_pushnotifications.PushNotificationChannel",
@@ -232,7 +249,7 @@ namespace py::cpp::Windows::Networking::PushNotifications
232
249
 
233
250
  static PyObject* PushNotificationChannelManager_CreatePushNotificationChannelForApplicationAsync(PyObject* /*unused*/, PyObject* args) noexcept
234
251
  {
235
- auto arg_count = PyTuple_Size(args);
252
+ auto arg_count = PyTuple_GET_SIZE(args);
236
253
 
237
254
  if (arg_count == 0)
238
255
  {
@@ -251,7 +268,11 @@ namespace py::cpp::Windows::Networking::PushNotifications
251
268
  return nullptr;
252
269
  }
253
270
 
254
- return py::convert(winrt::Windows::Networking::PushNotifications::PushNotificationChannelManager::CreatePushNotificationChannelForApplicationAsync());
271
+ return py::convert([&]()
272
+ {
273
+ auto _gil = release_gil();
274
+ return winrt::Windows::Networking::PushNotifications::PushNotificationChannelManager::CreatePushNotificationChannelForApplicationAsync();
275
+ }());
255
276
  }
256
277
  catch (...)
257
278
  {
@@ -259,7 +280,18 @@ namespace py::cpp::Windows::Networking::PushNotifications
259
280
  return nullptr;
260
281
  }
261
282
  }
262
- else if (arg_count == 1)
283
+ else
284
+ {
285
+ py::set_invalid_arg_count_error(arg_count);
286
+ return nullptr;
287
+ }
288
+ }
289
+
290
+ static PyObject* PushNotificationChannelManager_CreatePushNotificationChannelForApplicationAsyncWithId(PyObject* /*unused*/, PyObject* args) noexcept
291
+ {
292
+ auto arg_count = PyTuple_GET_SIZE(args);
293
+
294
+ if (arg_count == 1)
263
295
  {
264
296
  try
265
297
  {
@@ -278,7 +310,11 @@ namespace py::cpp::Windows::Networking::PushNotifications
278
310
 
279
311
  auto param0 = py::convert_to<winrt::hstring>(args, 0);
280
312
 
281
- return py::convert(winrt::Windows::Networking::PushNotifications::PushNotificationChannelManager::CreatePushNotificationChannelForApplicationAsync(param0));
313
+ return py::convert([&]()
314
+ {
315
+ auto _gil = release_gil();
316
+ return winrt::Windows::Networking::PushNotifications::PushNotificationChannelManager::CreatePushNotificationChannelForApplicationAsync(param0);
317
+ }());
282
318
  }
283
319
  catch (...)
284
320
  {
@@ -295,7 +331,7 @@ namespace py::cpp::Windows::Networking::PushNotifications
295
331
 
296
332
  static PyObject* PushNotificationChannelManager_CreatePushNotificationChannelForSecondaryTileAsync(PyObject* /*unused*/, PyObject* args) noexcept
297
333
  {
298
- auto arg_count = PyTuple_Size(args);
334
+ auto arg_count = PyTuple_GET_SIZE(args);
299
335
 
300
336
  if (arg_count == 1)
301
337
  {
@@ -316,7 +352,11 @@ namespace py::cpp::Windows::Networking::PushNotifications
316
352
 
317
353
  auto param0 = py::convert_to<winrt::hstring>(args, 0);
318
354
 
319
- return py::convert(winrt::Windows::Networking::PushNotifications::PushNotificationChannelManager::CreatePushNotificationChannelForSecondaryTileAsync(param0));
355
+ return py::convert([&]()
356
+ {
357
+ auto _gil = release_gil();
358
+ return winrt::Windows::Networking::PushNotifications::PushNotificationChannelManager::CreatePushNotificationChannelForSecondaryTileAsync(param0);
359
+ }());
320
360
  }
321
361
  catch (...)
322
362
  {
@@ -333,7 +373,7 @@ namespace py::cpp::Windows::Networking::PushNotifications
333
373
 
334
374
  static PyObject* PushNotificationChannelManager_GetDefault(PyObject* /*unused*/, PyObject* args) noexcept
335
375
  {
336
- auto arg_count = PyTuple_Size(args);
376
+ auto arg_count = PyTuple_GET_SIZE(args);
337
377
 
338
378
  if (arg_count == 0)
339
379
  {
@@ -352,7 +392,11 @@ namespace py::cpp::Windows::Networking::PushNotifications
352
392
  return nullptr;
353
393
  }
354
394
 
355
- return py::convert(winrt::Windows::Networking::PushNotifications::PushNotificationChannelManager::GetDefault());
395
+ return py::convert([&]()
396
+ {
397
+ auto _gil = release_gil();
398
+ return winrt::Windows::Networking::PushNotifications::PushNotificationChannelManager::GetDefault();
399
+ }());
356
400
  }
357
401
  catch (...)
358
402
  {
@@ -369,7 +413,7 @@ namespace py::cpp::Windows::Networking::PushNotifications
369
413
 
370
414
  static PyObject* PushNotificationChannelManager_GetForUser(PyObject* /*unused*/, PyObject* args) noexcept
371
415
  {
372
- auto arg_count = PyTuple_Size(args);
416
+ auto arg_count = PyTuple_GET_SIZE(args);
373
417
 
374
418
  if (arg_count == 1)
375
419
  {
@@ -390,7 +434,11 @@ namespace py::cpp::Windows::Networking::PushNotifications
390
434
 
391
435
  auto param0 = py::convert_to<winrt::Windows::System::User>(args, 0);
392
436
 
393
- return py::convert(winrt::Windows::Networking::PushNotifications::PushNotificationChannelManager::GetForUser(param0));
437
+ return py::convert([&]()
438
+ {
439
+ auto _gil = release_gil();
440
+ return winrt::Windows::Networking::PushNotifications::PushNotificationChannelManager::GetForUser(param0);
441
+ }());
394
442
  }
395
443
  catch (...)
396
444
  {
@@ -424,7 +472,11 @@ namespace py::cpp::Windows::Networking::PushNotifications
424
472
 
425
473
  auto param0 = py::convert_to<winrt::Windows::Foundation::EventHandler<winrt::Windows::Networking::PushNotifications::PushNotificationChannelsRevokedEventArgs>>(arg);
426
474
 
427
- return py::convert(winrt::Windows::Networking::PushNotifications::PushNotificationChannelManager::ChannelsRevoked(param0));
475
+ return py::convert([&]()
476
+ {
477
+ auto _gil = release_gil();
478
+ return winrt::Windows::Networking::PushNotifications::PushNotificationChannelManager::ChannelsRevoked(param0);
479
+ }());
428
480
  }
429
481
  catch (...)
430
482
  {
@@ -452,7 +504,11 @@ namespace py::cpp::Windows::Networking::PushNotifications
452
504
 
453
505
  auto param0 = py::convert_to<winrt::event_token>(arg);
454
506
 
455
- winrt::Windows::Networking::PushNotifications::PushNotificationChannelManager::ChannelsRevoked(param0);
507
+ {
508
+ auto _gil = release_gil();
509
+ winrt::Windows::Networking::PushNotifications::PushNotificationChannelManager::ChannelsRevoked(param0);
510
+ }
511
+
456
512
  Py_RETURN_NONE;
457
513
  }
458
514
  catch (...)
@@ -463,19 +519,16 @@ namespace py::cpp::Windows::Networking::PushNotifications
463
519
  }
464
520
 
465
521
  static PyMethodDef _methods_PushNotificationChannelManager[] = {
466
- { }
467
- };
522
+ { }};
468
523
 
469
524
  static PyGetSetDef _getset_PushNotificationChannelManager[] = {
470
- { }
471
- };
525
+ { }};
472
526
 
473
527
  static PyType_Slot _type_slots_PushNotificationChannelManager[] = {
474
528
  { Py_tp_new, reinterpret_cast<void*>(_new_PushNotificationChannelManager) },
475
529
  { Py_tp_methods, reinterpret_cast<void*>(_methods_PushNotificationChannelManager) },
476
530
  { Py_tp_getset, reinterpret_cast<void*>(_getset_PushNotificationChannelManager) },
477
- { }
478
- };
531
+ { }};
479
532
 
480
533
  static PyType_Spec type_spec_PushNotificationChannelManager = {
481
534
  "winrt._winrt_windows_networking_pushnotifications.PushNotificationChannelManager",
@@ -485,18 +538,17 @@ namespace py::cpp::Windows::Networking::PushNotifications
485
538
  _type_slots_PushNotificationChannelManager};
486
539
 
487
540
  static PyGetSetDef getset_PushNotificationChannelManager_Static[] = {
488
- { }
489
- };
541
+ { }};
490
542
 
491
543
  static PyMethodDef methods_PushNotificationChannelManager_Static[] = {
492
544
  { "create_push_notification_channel_for_application_async", reinterpret_cast<PyCFunction>(PushNotificationChannelManager_CreatePushNotificationChannelForApplicationAsync), METH_VARARGS, nullptr },
545
+ { "create_push_notification_channel_for_application_async_with_id", reinterpret_cast<PyCFunction>(PushNotificationChannelManager_CreatePushNotificationChannelForApplicationAsyncWithId), METH_VARARGS, nullptr },
493
546
  { "create_push_notification_channel_for_secondary_tile_async", reinterpret_cast<PyCFunction>(PushNotificationChannelManager_CreatePushNotificationChannelForSecondaryTileAsync), METH_VARARGS, nullptr },
494
547
  { "get_default", reinterpret_cast<PyCFunction>(PushNotificationChannelManager_GetDefault), METH_VARARGS, nullptr },
495
548
  { "get_for_user", reinterpret_cast<PyCFunction>(PushNotificationChannelManager_GetForUser), METH_VARARGS, nullptr },
496
549
  { "add_channels_revoked", reinterpret_cast<PyCFunction>(PushNotificationChannelManager_add_ChannelsRevoked), METH_O, nullptr },
497
550
  { "remove_channels_revoked", reinterpret_cast<PyCFunction>(PushNotificationChannelManager_remove_ChannelsRevoked), METH_O, nullptr },
498
- { }
499
- };
551
+ { }};
500
552
 
501
553
  static PyType_Slot type_slots_PushNotificationChannelManager_Static[] =
502
554
  {
@@ -506,14 +558,12 @@ namespace py::cpp::Windows::Networking::PushNotifications
506
558
  { }
507
559
  };
508
560
 
509
- static PyType_Spec type_spec_PushNotificationChannelManager_Static =
510
- {
561
+ static PyType_Spec type_spec_PushNotificationChannelManager_Static = {
511
562
  "winrt._winrt_windows_networking_pushnotifications.PushNotificationChannelManager_Static",
512
563
  static_cast<int>(PyType_Type.tp_basicsize),
513
564
  static_cast<int>(PyType_Type.tp_itemsize),
514
565
  Py_TPFLAGS_DEFAULT,
515
- type_slots_PushNotificationChannelManager_Static
516
- };
566
+ type_slots_PushNotificationChannelManager_Static};
517
567
 
518
568
  // ----- PushNotificationChannelManagerForUser class --------------------
519
569
 
@@ -534,7 +584,7 @@ namespace py::cpp::Windows::Networking::PushNotifications
534
584
 
535
585
  static PyObject* PushNotificationChannelManagerForUser_CreatePushNotificationChannelForApplicationAsync(py::wrapper::Windows::Networking::PushNotifications::PushNotificationChannelManagerForUser* self, PyObject* args) noexcept
536
586
  {
537
- auto arg_count = PyTuple_Size(args);
587
+ auto arg_count = PyTuple_GET_SIZE(args);
538
588
 
539
589
  if (arg_count == 0)
540
590
  {
@@ -553,7 +603,11 @@ namespace py::cpp::Windows::Networking::PushNotifications
553
603
  return nullptr;
554
604
  }
555
605
 
556
- return py::convert(self->obj.CreatePushNotificationChannelForApplicationAsync());
606
+ return py::convert([&]()
607
+ {
608
+ auto _gil = release_gil();
609
+ return self->obj.CreatePushNotificationChannelForApplicationAsync();
610
+ }());
557
611
  }
558
612
  catch (...)
559
613
  {
@@ -561,7 +615,18 @@ namespace py::cpp::Windows::Networking::PushNotifications
561
615
  return nullptr;
562
616
  }
563
617
  }
564
- else if (arg_count == 1)
618
+ else
619
+ {
620
+ py::set_invalid_arg_count_error(arg_count);
621
+ return nullptr;
622
+ }
623
+ }
624
+
625
+ static PyObject* PushNotificationChannelManagerForUser_CreatePushNotificationChannelForApplicationAsyncWithId(py::wrapper::Windows::Networking::PushNotifications::PushNotificationChannelManagerForUser* self, PyObject* args) noexcept
626
+ {
627
+ auto arg_count = PyTuple_GET_SIZE(args);
628
+
629
+ if (arg_count == 1)
565
630
  {
566
631
  try
567
632
  {
@@ -580,7 +645,11 @@ namespace py::cpp::Windows::Networking::PushNotifications
580
645
 
581
646
  auto param0 = py::convert_to<winrt::hstring>(args, 0);
582
647
 
583
- return py::convert(self->obj.CreatePushNotificationChannelForApplicationAsync(param0));
648
+ return py::convert([&]()
649
+ {
650
+ auto _gil = release_gil();
651
+ return self->obj.CreatePushNotificationChannelForApplicationAsync(param0);
652
+ }());
584
653
  }
585
654
  catch (...)
586
655
  {
@@ -597,7 +666,7 @@ namespace py::cpp::Windows::Networking::PushNotifications
597
666
 
598
667
  static PyObject* PushNotificationChannelManagerForUser_CreatePushNotificationChannelForSecondaryTileAsync(py::wrapper::Windows::Networking::PushNotifications::PushNotificationChannelManagerForUser* self, PyObject* args) noexcept
599
668
  {
600
- auto arg_count = PyTuple_Size(args);
669
+ auto arg_count = PyTuple_GET_SIZE(args);
601
670
 
602
671
  if (arg_count == 1)
603
672
  {
@@ -618,7 +687,11 @@ namespace py::cpp::Windows::Networking::PushNotifications
618
687
 
619
688
  auto param0 = py::convert_to<winrt::hstring>(args, 0);
620
689
 
621
- return py::convert(self->obj.CreatePushNotificationChannelForSecondaryTileAsync(param0));
690
+ return py::convert([&]()
691
+ {
692
+ auto _gil = release_gil();
693
+ return self->obj.CreatePushNotificationChannelForSecondaryTileAsync(param0);
694
+ }());
622
695
  }
623
696
  catch (...)
624
697
  {
@@ -635,7 +708,7 @@ namespace py::cpp::Windows::Networking::PushNotifications
635
708
 
636
709
  static PyObject* PushNotificationChannelManagerForUser_CreateRawPushNotificationChannelWithAlternateKeyForApplicationAsync(py::wrapper::Windows::Networking::PushNotifications::PushNotificationChannelManagerForUser* self, PyObject* args) noexcept
637
710
  {
638
- auto arg_count = PyTuple_Size(args);
711
+ auto arg_count = PyTuple_GET_SIZE(args);
639
712
 
640
713
  if (arg_count == 2)
641
714
  {
@@ -657,7 +730,11 @@ namespace py::cpp::Windows::Networking::PushNotifications
657
730
  auto param0 = py::convert_to<winrt::Windows::Storage::Streams::IBuffer>(args, 0);
658
731
  auto param1 = py::convert_to<winrt::hstring>(args, 1);
659
732
 
660
- return py::convert(self->obj.CreateRawPushNotificationChannelWithAlternateKeyForApplicationAsync(param0, param1));
733
+ return py::convert([&]()
734
+ {
735
+ auto _gil = release_gil();
736
+ return self->obj.CreateRawPushNotificationChannelWithAlternateKeyForApplicationAsync(param0, param1);
737
+ }());
661
738
  }
662
739
  catch (...)
663
740
  {
@@ -665,7 +742,18 @@ namespace py::cpp::Windows::Networking::PushNotifications
665
742
  return nullptr;
666
743
  }
667
744
  }
668
- else if (arg_count == 3)
745
+ else
746
+ {
747
+ py::set_invalid_arg_count_error(arg_count);
748
+ return nullptr;
749
+ }
750
+ }
751
+
752
+ static PyObject* PushNotificationChannelManagerForUser_CreateRawPushNotificationChannelWithAlternateKeyForApplicationAsyncWithId(py::wrapper::Windows::Networking::PushNotifications::PushNotificationChannelManagerForUser* self, PyObject* args) noexcept
753
+ {
754
+ auto arg_count = PyTuple_GET_SIZE(args);
755
+
756
+ if (arg_count == 3)
669
757
  {
670
758
  try
671
759
  {
@@ -686,7 +774,11 @@ namespace py::cpp::Windows::Networking::PushNotifications
686
774
  auto param1 = py::convert_to<winrt::hstring>(args, 1);
687
775
  auto param2 = py::convert_to<winrt::hstring>(args, 2);
688
776
 
689
- return py::convert(self->obj.CreateRawPushNotificationChannelWithAlternateKeyForApplicationAsync(param0, param1, param2));
777
+ return py::convert([&]()
778
+ {
779
+ auto _gil = release_gil();
780
+ return self->obj.CreateRawPushNotificationChannelWithAlternateKeyForApplicationAsync(param0, param1, param2);
781
+ }());
690
782
  }
691
783
  catch (...)
692
784
  {
@@ -718,7 +810,11 @@ namespace py::cpp::Windows::Networking::PushNotifications
718
810
  return nullptr;
719
811
  }
720
812
 
721
- return py::convert(self->obj.User());
813
+ return py::convert([&]()
814
+ {
815
+ auto _gil = release_gil();
816
+ return self->obj.User();
817
+ }());
722
818
  }
723
819
  catch (...)
724
820
  {
@@ -753,25 +849,24 @@ namespace py::cpp::Windows::Networking::PushNotifications
753
849
 
754
850
  static PyMethodDef _methods_PushNotificationChannelManagerForUser[] = {
755
851
  { "create_push_notification_channel_for_application_async", reinterpret_cast<PyCFunction>(PushNotificationChannelManagerForUser_CreatePushNotificationChannelForApplicationAsync), METH_VARARGS, nullptr },
852
+ { "create_push_notification_channel_for_application_async_with_id", reinterpret_cast<PyCFunction>(PushNotificationChannelManagerForUser_CreatePushNotificationChannelForApplicationAsyncWithId), METH_VARARGS, nullptr },
756
853
  { "create_push_notification_channel_for_secondary_tile_async", reinterpret_cast<PyCFunction>(PushNotificationChannelManagerForUser_CreatePushNotificationChannelForSecondaryTileAsync), METH_VARARGS, nullptr },
757
854
  { "create_raw_push_notification_channel_with_alternate_key_for_application_async", reinterpret_cast<PyCFunction>(PushNotificationChannelManagerForUser_CreateRawPushNotificationChannelWithAlternateKeyForApplicationAsync), METH_VARARGS, nullptr },
855
+ { "create_raw_push_notification_channel_with_alternate_key_for_application_async_with_id", reinterpret_cast<PyCFunction>(PushNotificationChannelManagerForUser_CreateRawPushNotificationChannelWithAlternateKeyForApplicationAsyncWithId), METH_VARARGS, nullptr },
758
856
  { "_assign_array_", _assign_array_PushNotificationChannelManagerForUser, METH_O | METH_STATIC, nullptr },
759
857
  { "_from", reinterpret_cast<PyCFunction>(_from_PushNotificationChannelManagerForUser), METH_O | METH_STATIC, nullptr },
760
- { }
761
- };
858
+ { }};
762
859
 
763
860
  static PyGetSetDef _getset_PushNotificationChannelManagerForUser[] = {
764
861
  { "user", reinterpret_cast<getter>(PushNotificationChannelManagerForUser_get_User), nullptr, nullptr, nullptr },
765
- { }
766
- };
862
+ { }};
767
863
 
768
864
  static PyType_Slot _type_slots_PushNotificationChannelManagerForUser[] = {
769
865
  { Py_tp_new, reinterpret_cast<void*>(_new_PushNotificationChannelManagerForUser) },
770
866
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_PushNotificationChannelManagerForUser) },
771
867
  { Py_tp_methods, reinterpret_cast<void*>(_methods_PushNotificationChannelManagerForUser) },
772
868
  { Py_tp_getset, reinterpret_cast<void*>(_getset_PushNotificationChannelManagerForUser) },
773
- { }
774
- };
869
+ { }};
775
870
 
776
871
  static PyType_Spec type_spec_PushNotificationChannelManagerForUser = {
777
872
  "winrt._winrt_windows_networking_pushnotifications.PushNotificationChannelManagerForUser",
@@ -824,20 +919,17 @@ namespace py::cpp::Windows::Networking::PushNotifications
824
919
  static PyMethodDef _methods_PushNotificationChannelsRevokedEventArgs[] = {
825
920
  { "_assign_array_", _assign_array_PushNotificationChannelsRevokedEventArgs, METH_O | METH_STATIC, nullptr },
826
921
  { "_from", reinterpret_cast<PyCFunction>(_from_PushNotificationChannelsRevokedEventArgs), METH_O | METH_STATIC, nullptr },
827
- { }
828
- };
922
+ { }};
829
923
 
830
924
  static PyGetSetDef _getset_PushNotificationChannelsRevokedEventArgs[] = {
831
- { }
832
- };
925
+ { }};
833
926
 
834
927
  static PyType_Slot _type_slots_PushNotificationChannelsRevokedEventArgs[] = {
835
928
  { Py_tp_new, reinterpret_cast<void*>(_new_PushNotificationChannelsRevokedEventArgs) },
836
929
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_PushNotificationChannelsRevokedEventArgs) },
837
930
  { Py_tp_methods, reinterpret_cast<void*>(_methods_PushNotificationChannelsRevokedEventArgs) },
838
931
  { Py_tp_getset, reinterpret_cast<void*>(_getset_PushNotificationChannelsRevokedEventArgs) },
839
- { }
840
- };
932
+ { }};
841
933
 
842
934
  static PyType_Spec type_spec_PushNotificationChannelsRevokedEventArgs = {
843
935
  "winrt._winrt_windows_networking_pushnotifications.PushNotificationChannelsRevokedEventArgs",
@@ -880,7 +972,11 @@ namespace py::cpp::Windows::Networking::PushNotifications
880
972
  return nullptr;
881
973
  }
882
974
 
883
- return py::convert(self->obj.Cancel());
975
+ return py::convert([&]()
976
+ {
977
+ auto _gil = release_gil();
978
+ return self->obj.Cancel();
979
+ }());
884
980
  }
885
981
  catch (...)
886
982
  {
@@ -891,7 +987,7 @@ namespace py::cpp::Windows::Networking::PushNotifications
891
987
 
892
988
  static int PushNotificationReceivedEventArgs_put_Cancel(py::wrapper::Windows::Networking::PushNotifications::PushNotificationReceivedEventArgs* self, PyObject* arg, void* /*unused*/) noexcept
893
989
  {
894
- if (arg == nullptr)
990
+ if (!arg)
895
991
  {
896
992
  PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
897
993
  return -1;
@@ -914,7 +1010,11 @@ namespace py::cpp::Windows::Networking::PushNotifications
914
1010
 
915
1011
  auto param0 = py::convert_to<bool>(arg);
916
1012
 
917
- self->obj.Cancel(param0);
1013
+ {
1014
+ auto _gil = release_gil();
1015
+ self->obj.Cancel(param0);
1016
+ }
1017
+
918
1018
  return 0;
919
1019
  }
920
1020
  catch (...)
@@ -941,7 +1041,11 @@ namespace py::cpp::Windows::Networking::PushNotifications
941
1041
  return nullptr;
942
1042
  }
943
1043
 
944
- return py::convert(self->obj.BadgeNotification());
1044
+ return py::convert([&]()
1045
+ {
1046
+ auto _gil = release_gil();
1047
+ return self->obj.BadgeNotification();
1048
+ }());
945
1049
  }
946
1050
  catch (...)
947
1051
  {
@@ -967,7 +1071,11 @@ namespace py::cpp::Windows::Networking::PushNotifications
967
1071
  return nullptr;
968
1072
  }
969
1073
 
970
- return py::convert(self->obj.NotificationType());
1074
+ return py::convert([&]()
1075
+ {
1076
+ auto _gil = release_gil();
1077
+ return self->obj.NotificationType();
1078
+ }());
971
1079
  }
972
1080
  catch (...)
973
1081
  {
@@ -993,7 +1101,11 @@ namespace py::cpp::Windows::Networking::PushNotifications
993
1101
  return nullptr;
994
1102
  }
995
1103
 
996
- return py::convert(self->obj.RawNotification());
1104
+ return py::convert([&]()
1105
+ {
1106
+ auto _gil = release_gil();
1107
+ return self->obj.RawNotification();
1108
+ }());
997
1109
  }
998
1110
  catch (...)
999
1111
  {
@@ -1019,7 +1131,11 @@ namespace py::cpp::Windows::Networking::PushNotifications
1019
1131
  return nullptr;
1020
1132
  }
1021
1133
 
1022
- return py::convert(self->obj.TileNotification());
1134
+ return py::convert([&]()
1135
+ {
1136
+ auto _gil = release_gil();
1137
+ return self->obj.TileNotification();
1138
+ }());
1023
1139
  }
1024
1140
  catch (...)
1025
1141
  {
@@ -1045,7 +1161,11 @@ namespace py::cpp::Windows::Networking::PushNotifications
1045
1161
  return nullptr;
1046
1162
  }
1047
1163
 
1048
- return py::convert(self->obj.ToastNotification());
1164
+ return py::convert([&]()
1165
+ {
1166
+ auto _gil = release_gil();
1167
+ return self->obj.ToastNotification();
1168
+ }());
1049
1169
  }
1050
1170
  catch (...)
1051
1171
  {
@@ -1081,8 +1201,7 @@ namespace py::cpp::Windows::Networking::PushNotifications
1081
1201
  static PyMethodDef _methods_PushNotificationReceivedEventArgs[] = {
1082
1202
  { "_assign_array_", _assign_array_PushNotificationReceivedEventArgs, METH_O | METH_STATIC, nullptr },
1083
1203
  { "_from", reinterpret_cast<PyCFunction>(_from_PushNotificationReceivedEventArgs), METH_O | METH_STATIC, nullptr },
1084
- { }
1085
- };
1204
+ { }};
1086
1205
 
1087
1206
  static PyGetSetDef _getset_PushNotificationReceivedEventArgs[] = {
1088
1207
  { "cancel", reinterpret_cast<getter>(PushNotificationReceivedEventArgs_get_Cancel), reinterpret_cast<setter>(PushNotificationReceivedEventArgs_put_Cancel), nullptr, nullptr },
@@ -1091,16 +1210,14 @@ namespace py::cpp::Windows::Networking::PushNotifications
1091
1210
  { "raw_notification", reinterpret_cast<getter>(PushNotificationReceivedEventArgs_get_RawNotification), nullptr, nullptr, nullptr },
1092
1211
  { "tile_notification", reinterpret_cast<getter>(PushNotificationReceivedEventArgs_get_TileNotification), nullptr, nullptr, nullptr },
1093
1212
  { "toast_notification", reinterpret_cast<getter>(PushNotificationReceivedEventArgs_get_ToastNotification), nullptr, nullptr, nullptr },
1094
- { }
1095
- };
1213
+ { }};
1096
1214
 
1097
1215
  static PyType_Slot _type_slots_PushNotificationReceivedEventArgs[] = {
1098
1216
  { Py_tp_new, reinterpret_cast<void*>(_new_PushNotificationReceivedEventArgs) },
1099
1217
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_PushNotificationReceivedEventArgs) },
1100
1218
  { Py_tp_methods, reinterpret_cast<void*>(_methods_PushNotificationReceivedEventArgs) },
1101
1219
  { Py_tp_getset, reinterpret_cast<void*>(_getset_PushNotificationReceivedEventArgs) },
1102
- { }
1103
- };
1220
+ { }};
1104
1221
 
1105
1222
  static PyType_Spec type_spec_PushNotificationReceivedEventArgs = {
1106
1223
  "winrt._winrt_windows_networking_pushnotifications.PushNotificationReceivedEventArgs",
@@ -1143,7 +1260,11 @@ namespace py::cpp::Windows::Networking::PushNotifications
1143
1260
  return nullptr;
1144
1261
  }
1145
1262
 
1146
- return py::convert(self->obj.Content());
1263
+ return py::convert([&]()
1264
+ {
1265
+ auto _gil = release_gil();
1266
+ return self->obj.Content();
1267
+ }());
1147
1268
  }
1148
1269
  catch (...)
1149
1270
  {
@@ -1169,7 +1290,11 @@ namespace py::cpp::Windows::Networking::PushNotifications
1169
1290
  return nullptr;
1170
1291
  }
1171
1292
 
1172
- return py::convert(self->obj.ChannelId());
1293
+ return py::convert([&]()
1294
+ {
1295
+ auto _gil = release_gil();
1296
+ return self->obj.ChannelId();
1297
+ }());
1173
1298
  }
1174
1299
  catch (...)
1175
1300
  {
@@ -1195,7 +1320,11 @@ namespace py::cpp::Windows::Networking::PushNotifications
1195
1320
  return nullptr;
1196
1321
  }
1197
1322
 
1198
- return py::convert(self->obj.Headers());
1323
+ return py::convert([&]()
1324
+ {
1325
+ auto _gil = release_gil();
1326
+ return self->obj.Headers();
1327
+ }());
1199
1328
  }
1200
1329
  catch (...)
1201
1330
  {
@@ -1221,7 +1350,11 @@ namespace py::cpp::Windows::Networking::PushNotifications
1221
1350
  return nullptr;
1222
1351
  }
1223
1352
 
1224
- return py::convert(self->obj.ContentBytes());
1353
+ return py::convert([&]()
1354
+ {
1355
+ auto _gil = release_gil();
1356
+ return self->obj.ContentBytes();
1357
+ }());
1225
1358
  }
1226
1359
  catch (...)
1227
1360
  {
@@ -1257,24 +1390,21 @@ namespace py::cpp::Windows::Networking::PushNotifications
1257
1390
  static PyMethodDef _methods_RawNotification[] = {
1258
1391
  { "_assign_array_", _assign_array_RawNotification, METH_O | METH_STATIC, nullptr },
1259
1392
  { "_from", reinterpret_cast<PyCFunction>(_from_RawNotification), METH_O | METH_STATIC, nullptr },
1260
- { }
1261
- };
1393
+ { }};
1262
1394
 
1263
1395
  static PyGetSetDef _getset_RawNotification[] = {
1264
1396
  { "content", reinterpret_cast<getter>(RawNotification_get_Content), nullptr, nullptr, nullptr },
1265
1397
  { "channel_id", reinterpret_cast<getter>(RawNotification_get_ChannelId), nullptr, nullptr, nullptr },
1266
1398
  { "headers", reinterpret_cast<getter>(RawNotification_get_Headers), nullptr, nullptr, nullptr },
1267
1399
  { "content_bytes", reinterpret_cast<getter>(RawNotification_get_ContentBytes), nullptr, nullptr, nullptr },
1268
- { }
1269
- };
1400
+ { }};
1270
1401
 
1271
1402
  static PyType_Slot _type_slots_RawNotification[] = {
1272
1403
  { Py_tp_new, reinterpret_cast<void*>(_new_RawNotification) },
1273
1404
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_RawNotification) },
1274
1405
  { Py_tp_methods, reinterpret_cast<void*>(_methods_RawNotification) },
1275
1406
  { Py_tp_getset, reinterpret_cast<void*>(_getset_RawNotification) },
1276
- { }
1277
- };
1407
+ { }};
1278
1408
 
1279
1409
  static PyType_Spec type_spec_RawNotification = {
1280
1410
  "winrt._winrt_windows_networking_pushnotifications.RawNotification",
@@ -1315,6 +1445,12 @@ PyMODINIT_FUNC PyInit__winrt_windows_networking_pushnotifications(void) noexcept
1315
1445
  return nullptr;
1316
1446
  }
1317
1447
 
1448
+ auto inspectable_meta_type = py::get_inspectable_meta_type();
1449
+ if (!inspectable_meta_type)
1450
+ {
1451
+ return nullptr;
1452
+ }
1453
+
1318
1454
  auto object_type = py::get_object_type();
1319
1455
  if (!object_type)
1320
1456
  {
@@ -1328,13 +1464,19 @@ PyMODINIT_FUNC PyInit__winrt_windows_networking_pushnotifications(void) noexcept
1328
1464
  return nullptr;
1329
1465
  }
1330
1466
 
1331
- py::pytype_handle PushNotificationChannel_type{py::register_python_type(module.get(), &type_spec_PushNotificationChannel, object_bases.get(), nullptr)};
1467
+ py::pytype_handle PushNotificationChannel_type{py::register_python_type(module.get(), &type_spec_PushNotificationChannel, object_bases.get(), inspectable_meta_type)};
1332
1468
  if (!PushNotificationChannel_type)
1333
1469
  {
1334
1470
  return nullptr;
1335
1471
  }
1336
1472
 
1337
- py::pyobj_handle type_PushNotificationChannelManager_Static{PyType_FromSpec(&type_spec_PushNotificationChannelManager_Static)};
1473
+ py::pyobj_handle PushNotificationChannelManager_Static_bases{PyTuple_Pack(1, reinterpret_cast<PyObject*>(inspectable_meta_type))};
1474
+ if (!PushNotificationChannelManager_Static_bases)
1475
+ {
1476
+ return nullptr;
1477
+ }
1478
+
1479
+ py::pyobj_handle type_PushNotificationChannelManager_Static{PyType_FromSpecWithBases(&type_spec_PushNotificationChannelManager_Static, PushNotificationChannelManager_Static_bases.get())};
1338
1480
  if (!type_PushNotificationChannelManager_Static)
1339
1481
  {
1340
1482
  return nullptr;
@@ -1346,25 +1488,25 @@ PyMODINIT_FUNC PyInit__winrt_windows_networking_pushnotifications(void) noexcept
1346
1488
  return nullptr;
1347
1489
  }
1348
1490
 
1349
- py::pytype_handle PushNotificationChannelManagerForUser_type{py::register_python_type(module.get(), &type_spec_PushNotificationChannelManagerForUser, object_bases.get(), nullptr)};
1491
+ py::pytype_handle PushNotificationChannelManagerForUser_type{py::register_python_type(module.get(), &type_spec_PushNotificationChannelManagerForUser, object_bases.get(), inspectable_meta_type)};
1350
1492
  if (!PushNotificationChannelManagerForUser_type)
1351
1493
  {
1352
1494
  return nullptr;
1353
1495
  }
1354
1496
 
1355
- py::pytype_handle PushNotificationChannelsRevokedEventArgs_type{py::register_python_type(module.get(), &type_spec_PushNotificationChannelsRevokedEventArgs, object_bases.get(), nullptr)};
1497
+ py::pytype_handle PushNotificationChannelsRevokedEventArgs_type{py::register_python_type(module.get(), &type_spec_PushNotificationChannelsRevokedEventArgs, object_bases.get(), inspectable_meta_type)};
1356
1498
  if (!PushNotificationChannelsRevokedEventArgs_type)
1357
1499
  {
1358
1500
  return nullptr;
1359
1501
  }
1360
1502
 
1361
- py::pytype_handle PushNotificationReceivedEventArgs_type{py::register_python_type(module.get(), &type_spec_PushNotificationReceivedEventArgs, object_bases.get(), nullptr)};
1503
+ py::pytype_handle PushNotificationReceivedEventArgs_type{py::register_python_type(module.get(), &type_spec_PushNotificationReceivedEventArgs, object_bases.get(), inspectable_meta_type)};
1362
1504
  if (!PushNotificationReceivedEventArgs_type)
1363
1505
  {
1364
1506
  return nullptr;
1365
1507
  }
1366
1508
 
1367
- py::pytype_handle RawNotification_type{py::register_python_type(module.get(), &type_spec_RawNotification, object_bases.get(), nullptr)};
1509
+ py::pytype_handle RawNotification_type{py::register_python_type(module.get(), &type_spec_RawNotification, object_bases.get(), inspectable_meta_type)};
1368
1510
  if (!RawNotification_type)
1369
1511
  {
1370
1512
  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.Networking.PushNotifications"
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_networking_pushnotifications",
@@ -0,0 +1,116 @@
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.foundation.collections as windows_foundation_collections
14
+ import winrt.windows.storage.streams as windows_storage_streams
15
+ import winrt.windows.system as windows_system
16
+ import winrt.windows.ui.notifications as windows_ui_notifications
17
+
18
+ from winrt.windows.networking.pushnotifications import PushNotificationType
19
+
20
+ Self = typing.TypeVar('Self')
21
+
22
+ @typing.final
23
+ class PushNotificationChannel(winrt.system.Object):
24
+ # System.Void Windows.Networking.PushNotifications.PushNotificationChannel::Close()
25
+ def close(self) -> None: ...
26
+ # Windows.Foundation.EventRegistrationToken Windows.Networking.PushNotifications.PushNotificationChannel::add_PushNotificationReceived(Windows.Foundation.TypedEventHandler`2<Windows.Networking.PushNotifications.PushNotificationChannel,Windows.Networking.PushNotifications.PushNotificationReceivedEventArgs>)
27
+ def add_push_notification_received(self, handler: windows_foundation.TypedEventHandler[PushNotificationChannel, PushNotificationReceivedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
28
+ # System.Void Windows.Networking.PushNotifications.PushNotificationChannel::remove_PushNotificationReceived(Windows.Foundation.EventRegistrationToken)
29
+ def remove_push_notification_received(self, token: typing.Union[windows_foundation.EventRegistrationToken, typing.Tuple[winrt.system.Int64]], /) -> None: ...
30
+ # Windows.Foundation.DateTime Windows.Networking.PushNotifications.PushNotificationChannel::get_ExpirationTime()
31
+ @_property
32
+ def expiration_time(self) -> datetime.datetime: ...
33
+ # System.String Windows.Networking.PushNotifications.PushNotificationChannel::get_Uri()
34
+ @_property
35
+ def uri(self) -> str: ...
36
+
37
+ @typing.final
38
+ class PushNotificationChannelManager_Static(winrt._winrt.IInspectable_Static):
39
+ # Windows.Foundation.IAsyncOperation`1<Windows.Networking.PushNotifications.PushNotificationChannel> Windows.Networking.PushNotifications.PushNotificationChannelManager::CreatePushNotificationChannelForApplicationAsync()
40
+ def create_push_notification_channel_for_application_async(cls) -> windows_foundation.IAsyncOperation[PushNotificationChannel]: ...
41
+ # Windows.Foundation.IAsyncOperation`1<Windows.Networking.PushNotifications.PushNotificationChannel> Windows.Networking.PushNotifications.PushNotificationChannelManager::CreatePushNotificationChannelForApplicationAsync(System.String)
42
+ def create_push_notification_channel_for_application_async_with_id(cls, application_id: str, /) -> windows_foundation.IAsyncOperation[PushNotificationChannel]: ...
43
+ # Windows.Foundation.IAsyncOperation`1<Windows.Networking.PushNotifications.PushNotificationChannel> Windows.Networking.PushNotifications.PushNotificationChannelManager::CreatePushNotificationChannelForSecondaryTileAsync(System.String)
44
+ def create_push_notification_channel_for_secondary_tile_async(cls, tile_id: str, /) -> windows_foundation.IAsyncOperation[PushNotificationChannel]: ...
45
+ # Windows.Networking.PushNotifications.PushNotificationChannelManagerForUser Windows.Networking.PushNotifications.PushNotificationChannelManager::GetDefault()
46
+ def get_default(cls) -> PushNotificationChannelManagerForUser: ...
47
+ # Windows.Networking.PushNotifications.PushNotificationChannelManagerForUser Windows.Networking.PushNotifications.PushNotificationChannelManager::GetForUser(Windows.System.User)
48
+ def get_for_user(cls, user: windows_system.User, /) -> PushNotificationChannelManagerForUser: ...
49
+ # Windows.Foundation.EventRegistrationToken Windows.Networking.PushNotifications.PushNotificationChannelManager::add_ChannelsRevoked(Windows.Foundation.EventHandler`1<Windows.Networking.PushNotifications.PushNotificationChannelsRevokedEventArgs>)
50
+ def add_channels_revoked(cls, handler: windows_foundation.EventHandler[PushNotificationChannelsRevokedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
51
+ # System.Void Windows.Networking.PushNotifications.PushNotificationChannelManager::remove_ChannelsRevoked(Windows.Foundation.EventRegistrationToken)
52
+ def remove_channels_revoked(cls, token: typing.Union[windows_foundation.EventRegistrationToken, typing.Tuple[winrt.system.Int64]], /) -> None: ...
53
+
54
+ @typing.final
55
+ class PushNotificationChannelManager(winrt.system.Object, metaclass=PushNotificationChannelManager_Static):
56
+ pass
57
+
58
+ @typing.final
59
+ class PushNotificationChannelManagerForUser(winrt.system.Object):
60
+ # Windows.Foundation.IAsyncOperation`1<Windows.Networking.PushNotifications.PushNotificationChannel> Windows.Networking.PushNotifications.PushNotificationChannelManagerForUser::CreatePushNotificationChannelForApplicationAsync()
61
+ def create_push_notification_channel_for_application_async(self) -> windows_foundation.IAsyncOperation[PushNotificationChannel]: ...
62
+ # Windows.Foundation.IAsyncOperation`1<Windows.Networking.PushNotifications.PushNotificationChannel> Windows.Networking.PushNotifications.PushNotificationChannelManagerForUser::CreatePushNotificationChannelForApplicationAsync(System.String)
63
+ def create_push_notification_channel_for_application_async_with_id(self, application_id: str, /) -> windows_foundation.IAsyncOperation[PushNotificationChannel]: ...
64
+ # Windows.Foundation.IAsyncOperation`1<Windows.Networking.PushNotifications.PushNotificationChannel> Windows.Networking.PushNotifications.PushNotificationChannelManagerForUser::CreatePushNotificationChannelForSecondaryTileAsync(System.String)
65
+ def create_push_notification_channel_for_secondary_tile_async(self, tile_id: str, /) -> windows_foundation.IAsyncOperation[PushNotificationChannel]: ...
66
+ # Windows.Foundation.IAsyncOperation`1<Windows.Networking.PushNotifications.PushNotificationChannel> Windows.Networking.PushNotifications.PushNotificationChannelManagerForUser::CreateRawPushNotificationChannelWithAlternateKeyForApplicationAsync(Windows.Storage.Streams.IBuffer,System.String)
67
+ def create_raw_push_notification_channel_with_alternate_key_for_application_async(self, app_server_key: windows_storage_streams.IBuffer, channel_id: str, /) -> windows_foundation.IAsyncOperation[PushNotificationChannel]: ...
68
+ # Windows.Foundation.IAsyncOperation`1<Windows.Networking.PushNotifications.PushNotificationChannel> Windows.Networking.PushNotifications.PushNotificationChannelManagerForUser::CreateRawPushNotificationChannelWithAlternateKeyForApplicationAsync(Windows.Storage.Streams.IBuffer,System.String,System.String)
69
+ def create_raw_push_notification_channel_with_alternate_key_for_application_async_with_id(self, app_server_key: windows_storage_streams.IBuffer, channel_id: str, app_id: str, /) -> windows_foundation.IAsyncOperation[PushNotificationChannel]: ...
70
+ # Windows.System.User Windows.Networking.PushNotifications.PushNotificationChannelManagerForUser::get_User()
71
+ @_property
72
+ def user(self) -> windows_system.User: ...
73
+
74
+ @typing.final
75
+ class PushNotificationChannelsRevokedEventArgs(winrt.system.Object):
76
+ pass
77
+
78
+ @typing.final
79
+ class PushNotificationReceivedEventArgs(winrt.system.Object):
80
+ # System.Boolean Windows.Networking.PushNotifications.PushNotificationReceivedEventArgs::get_Cancel()
81
+ @_property
82
+ def cancel(self) -> bool: ...
83
+ # System.Void Windows.Networking.PushNotifications.PushNotificationReceivedEventArgs::put_Cancel(System.Boolean)
84
+ @cancel.setter
85
+ def cancel(self, value: bool) -> None: ...
86
+ # Windows.UI.Notifications.BadgeNotification Windows.Networking.PushNotifications.PushNotificationReceivedEventArgs::get_BadgeNotification()
87
+ @_property
88
+ def badge_notification(self) -> windows_ui_notifications.BadgeNotification: ...
89
+ # Windows.Networking.PushNotifications.PushNotificationType Windows.Networking.PushNotifications.PushNotificationReceivedEventArgs::get_NotificationType()
90
+ @_property
91
+ def notification_type(self) -> PushNotificationType: ...
92
+ # Windows.Networking.PushNotifications.RawNotification Windows.Networking.PushNotifications.PushNotificationReceivedEventArgs::get_RawNotification()
93
+ @_property
94
+ def raw_notification(self) -> RawNotification: ...
95
+ # Windows.UI.Notifications.TileNotification Windows.Networking.PushNotifications.PushNotificationReceivedEventArgs::get_TileNotification()
96
+ @_property
97
+ def tile_notification(self) -> windows_ui_notifications.TileNotification: ...
98
+ # Windows.UI.Notifications.ToastNotification Windows.Networking.PushNotifications.PushNotificationReceivedEventArgs::get_ToastNotification()
99
+ @_property
100
+ def toast_notification(self) -> windows_ui_notifications.ToastNotification: ...
101
+
102
+ @typing.final
103
+ class RawNotification(winrt.system.Object):
104
+ # System.String Windows.Networking.PushNotifications.RawNotification::get_Content()
105
+ @_property
106
+ def content(self) -> str: ...
107
+ # System.String Windows.Networking.PushNotifications.RawNotification::get_ChannelId()
108
+ @_property
109
+ def channel_id(self) -> str: ...
110
+ # Windows.Foundation.Collections.IMapView`2<System.String,System.String> Windows.Networking.PushNotifications.RawNotification::get_Headers()
111
+ @_property
112
+ def headers(self) -> typing.Mapping[str, str]: ...
113
+ # Windows.Storage.Streams.IBuffer Windows.Networking.PushNotifications.RawNotification::get_ContentBytes()
114
+ @_property
115
+ def content_bytes(self) -> windows_storage_streams.IBuffer: ...
116
+
@@ -0,0 +1,31 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.1.0
2
+
3
+ import enum
4
+
5
+ import winrt.system
6
+ from winrt._winrt_windows_networking_pushnotifications import (
7
+ PushNotificationChannel,
8
+ PushNotificationChannelManager,
9
+ PushNotificationChannelManagerForUser,
10
+ PushNotificationChannelsRevokedEventArgs,
11
+ PushNotificationReceivedEventArgs,
12
+ RawNotification,
13
+ )
14
+
15
+ __all__ = [
16
+ "PushNotificationType",
17
+ "PushNotificationChannel",
18
+ "PushNotificationChannelManager",
19
+ "PushNotificationChannelManagerForUser",
20
+ "PushNotificationChannelsRevokedEventArgs",
21
+ "PushNotificationReceivedEventArgs",
22
+ "RawNotification",
23
+ ]
24
+
25
+ class PushNotificationType(enum.IntEnum):
26
+ TOAST = 0
27
+ TILE = 1
28
+ BADGE = 2
29
+ RAW = 3
30
+ TILE_FLYOUT = 4
31
+
@@ -1,8 +1,8 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: winrt-Windows.Networking.PushNotifications
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,15 +10,15 @@ Classifier: Operating System :: Microsoft :: Windows
10
10
  Classifier: Programming Language :: Python :: 3
11
11
  Classifier: Programming Language :: Python :: Implementation :: CPython
12
12
  Classifier: Intended Audience :: Developers
13
- Requires-Python: <3.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.Foundation.Collections[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"
21
- Requires-Dist: winrt-Windows.UI.Notifications[all]==2.3.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.Foundation[all]==3.1.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Foundation.Collections[all]==3.1.0; extra == "all"
19
+ Requires-Dist: winrt-Windows.Storage.Streams[all]==3.1.0; extra == "all"
20
+ Requires-Dist: winrt-Windows.System[all]==3.1.0; extra == "all"
21
+ Requires-Dist: winrt-Windows.UI.Notifications[all]==3.1.0; extra == "all"
22
22
 
23
23
  <!-- warning: Please don't edit this file. It was automatically generated. -->
24
24
 
@@ -0,0 +1,8 @@
1
+ winrt-runtime==3.1.0
2
+
3
+ [all]
4
+ winrt-Windows.Foundation[all]==3.1.0
5
+ winrt-Windows.Foundation.Collections[all]==3.1.0
6
+ winrt-Windows.Storage.Streams[all]==3.1.0
7
+ winrt-Windows.System[all]==3.1.0
8
+ winrt-Windows.UI.Notifications[all]==3.1.0
@@ -1,7 +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.Foundation.Collections[all]==2.3.0
5
- winrt-Windows.Storage.Streams[all]==2.3.0
6
- winrt-Windows.System[all]==2.3.0
7
- winrt-Windows.UI.Notifications[all]==2.3.0
@@ -1,102 +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.foundation.collections as windows_foundation_collections
14
- import winrt.windows.storage.streams as windows_storage_streams
15
- import winrt.windows.system as windows_system
16
- import winrt.windows.ui.notifications as windows_ui_notifications
17
-
18
- from winrt.windows.networking.pushnotifications import PushNotificationType
19
-
20
- Self = typing.TypeVar('Self')
21
-
22
- @typing.final
23
- class PushNotificationChannel(winrt.system.Object):
24
- @staticmethod
25
- def _from(obj: winrt.system.Object, /) -> PushNotificationChannel: ...
26
- def close(self) -> None: ...
27
- def add_push_notification_received(self, handler: windows_foundation.TypedEventHandler[PushNotificationChannel, PushNotificationReceivedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
28
- def remove_push_notification_received(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
29
- @_property
30
- def expiration_time(self) -> datetime.datetime: ...
31
- @_property
32
- def uri(self) -> str: ...
33
-
34
- @typing.final
35
- class PushNotificationChannelManager_Static(type):
36
- @typing.overload
37
- def create_push_notification_channel_for_application_async(cls) -> windows_foundation.IAsyncOperation[PushNotificationChannel]: ...
38
- @typing.overload
39
- def create_push_notification_channel_for_application_async(cls, application_id: str, /) -> windows_foundation.IAsyncOperation[PushNotificationChannel]: ...
40
- def create_push_notification_channel_for_secondary_tile_async(cls, tile_id: str, /) -> windows_foundation.IAsyncOperation[PushNotificationChannel]: ...
41
- def get_default(cls) -> typing.Optional[PushNotificationChannelManagerForUser]: ...
42
- def get_for_user(cls, user: typing.Optional[windows_system.User], /) -> typing.Optional[PushNotificationChannelManagerForUser]: ...
43
- def add_channels_revoked(cls, handler: windows_foundation.EventHandler[PushNotificationChannelsRevokedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
44
- def remove_channels_revoked(cls, token: windows_foundation.EventRegistrationToken, /) -> None: ...
45
-
46
- @typing.final
47
- class PushNotificationChannelManager(winrt.system.Object, metaclass=PushNotificationChannelManager_Static):
48
- pass
49
-
50
- @typing.final
51
- class PushNotificationChannelManagerForUser(winrt.system.Object):
52
- @staticmethod
53
- def _from(obj: winrt.system.Object, /) -> PushNotificationChannelManagerForUser: ...
54
- @typing.overload
55
- def create_push_notification_channel_for_application_async(self) -> windows_foundation.IAsyncOperation[PushNotificationChannel]: ...
56
- @typing.overload
57
- def create_push_notification_channel_for_application_async(self, application_id: str, /) -> windows_foundation.IAsyncOperation[PushNotificationChannel]: ...
58
- def create_push_notification_channel_for_secondary_tile_async(self, tile_id: str, /) -> windows_foundation.IAsyncOperation[PushNotificationChannel]: ...
59
- @typing.overload
60
- def create_raw_push_notification_channel_with_alternate_key_for_application_async(self, app_server_key: typing.Optional[windows_storage_streams.IBuffer], channel_id: str, /) -> windows_foundation.IAsyncOperation[PushNotificationChannel]: ...
61
- @typing.overload
62
- def create_raw_push_notification_channel_with_alternate_key_for_application_async(self, app_server_key: typing.Optional[windows_storage_streams.IBuffer], channel_id: str, app_id: str, /) -> windows_foundation.IAsyncOperation[PushNotificationChannel]: ...
63
- @_property
64
- def user(self) -> typing.Optional[windows_system.User]: ...
65
-
66
- @typing.final
67
- class PushNotificationChannelsRevokedEventArgs(winrt.system.Object):
68
- @staticmethod
69
- def _from(obj: winrt.system.Object, /) -> PushNotificationChannelsRevokedEventArgs: ...
70
-
71
- @typing.final
72
- class PushNotificationReceivedEventArgs(winrt.system.Object):
73
- @staticmethod
74
- def _from(obj: winrt.system.Object, /) -> PushNotificationReceivedEventArgs: ...
75
- @_property
76
- def cancel(self) -> bool: ...
77
- @cancel.setter
78
- def cancel(self, value: bool) -> None: ...
79
- @_property
80
- def badge_notification(self) -> typing.Optional[windows_ui_notifications.BadgeNotification]: ...
81
- @_property
82
- def notification_type(self) -> PushNotificationType: ...
83
- @_property
84
- def raw_notification(self) -> typing.Optional[RawNotification]: ...
85
- @_property
86
- def tile_notification(self) -> typing.Optional[windows_ui_notifications.TileNotification]: ...
87
- @_property
88
- def toast_notification(self) -> typing.Optional[windows_ui_notifications.ToastNotification]: ...
89
-
90
- @typing.final
91
- class RawNotification(winrt.system.Object):
92
- @staticmethod
93
- def _from(obj: winrt.system.Object, /) -> RawNotification: ...
94
- @_property
95
- def content(self) -> str: ...
96
- @_property
97
- def channel_id(self) -> str: ...
98
- @_property
99
- def headers(self) -> typing.Optional[windows_foundation_collections.IMapView[str, str]]: ...
100
- @_property
101
- def content_bytes(self) -> typing.Optional[windows_storage_streams.IBuffer]: ...
102
-
@@ -1,30 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
2
-
3
- import enum
4
-
5
- import winrt.system
6
- from winrt import _winrt_windows_networking_pushnotifications
7
-
8
- __all__ = [
9
- "PushNotificationType",
10
- "PushNotificationChannel",
11
- "PushNotificationChannelManager",
12
- "PushNotificationChannelManagerForUser",
13
- "PushNotificationChannelsRevokedEventArgs",
14
- "PushNotificationReceivedEventArgs",
15
- "RawNotification",
16
- ]
17
-
18
- class PushNotificationType(enum.IntEnum):
19
- TOAST = 0
20
- TILE = 1
21
- BADGE = 2
22
- RAW = 3
23
- TILE_FLYOUT = 4
24
-
25
- PushNotificationChannel = _winrt_windows_networking_pushnotifications.PushNotificationChannel
26
- PushNotificationChannelManager = _winrt_windows_networking_pushnotifications.PushNotificationChannelManager
27
- PushNotificationChannelManagerForUser = _winrt_windows_networking_pushnotifications.PushNotificationChannelManagerForUser
28
- PushNotificationChannelsRevokedEventArgs = _winrt_windows_networking_pushnotifications.PushNotificationChannelsRevokedEventArgs
29
- PushNotificationReceivedEventArgs = _winrt_windows_networking_pushnotifications.PushNotificationReceivedEventArgs
30
- RawNotification = _winrt_windows_networking_pushnotifications.RawNotification
@@ -1,8 +0,0 @@
1
- winrt-runtime==2.3.0
2
-
3
- [all]
4
- winrt-Windows.Foundation[all]==2.3.0
5
- winrt-Windows.Foundation.Collections[all]==2.3.0
6
- winrt-Windows.Storage.Streams[all]==2.3.0
7
- winrt-Windows.System[all]==2.3.0
8
- winrt-Windows.UI.Notifications[all]==2.3.0