winrt-Windows.Services.Maps.LocalSearch 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_services_maps_localsearch-2.3.0 → winrt_windows_services_maps_localsearch-3.1.0}/PKG-INFO +10 -10
  2. winrt_windows_services_maps_localsearch-3.1.0/all-requirements.txt +7 -0
  3. {winrt_windows_services_maps_localsearch-2.3.0 → winrt_windows_services_maps_localsearch-3.1.0}/py.Windows.Services.Maps.LocalSearch.cpp +207 -104
  4. {winrt_windows_services_maps_localsearch-2.3.0 → winrt_windows_services_maps_localsearch-3.1.0}/pyproject.toml +4 -4
  5. winrt_windows_services_maps_localsearch-3.1.0/pywinrt-version.txt +1 -0
  6. {winrt_windows_services_maps_localsearch-2.3.0 → winrt_windows_services_maps_localsearch-3.1.0}/requirements.txt +2 -2
  7. {winrt_windows_services_maps_localsearch-2.3.0 → winrt_windows_services_maps_localsearch-3.1.0}/setup.py +1 -1
  8. winrt_windows_services_maps_localsearch-3.1.0/winrt/_winrt_windows_services_maps_localsearch.pyi +136 -0
  9. winrt_windows_services_maps_localsearch-3.1.0/winrt/windows/services/maps/localsearch/__init__.py +36 -0
  10. {winrt_windows_services_maps_localsearch-2.3.0 → winrt_windows_services_maps_localsearch-3.1.0}/winrt_Windows.Services.Maps.LocalSearch.egg-info/PKG-INFO +10 -10
  11. winrt_windows_services_maps_localsearch-3.1.0/winrt_Windows.Services.Maps.LocalSearch.egg-info/requires.txt +8 -0
  12. winrt_windows_services_maps_localsearch-2.3.0/all-requirements.txt +0 -7
  13. winrt_windows_services_maps_localsearch-2.3.0/pywinrt-version.txt +0 -1
  14. winrt_windows_services_maps_localsearch-2.3.0/winrt/_winrt_windows_services_maps_localsearch.pyi +0 -116
  15. winrt_windows_services_maps_localsearch-2.3.0/winrt/windows/services/maps/localsearch/__init__.py +0 -35
  16. winrt_windows_services_maps_localsearch-2.3.0/winrt_Windows.Services.Maps.LocalSearch.egg-info/requires.txt +0 -8
  17. {winrt_windows_services_maps_localsearch-2.3.0 → winrt_windows_services_maps_localsearch-3.1.0}/README.md +0 -0
  18. {winrt_windows_services_maps_localsearch-2.3.0 → winrt_windows_services_maps_localsearch-3.1.0}/setup.cfg +0 -0
  19. {winrt_windows_services_maps_localsearch-2.3.0 → winrt_windows_services_maps_localsearch-3.1.0}/winrt/windows/services/maps/localsearch/py.typed +0 -0
  20. {winrt_windows_services_maps_localsearch-2.3.0 → winrt_windows_services_maps_localsearch-3.1.0}/winrt_Windows.Services.Maps.LocalSearch.egg-info/SOURCES.txt +0 -0
  21. {winrt_windows_services_maps_localsearch-2.3.0 → winrt_windows_services_maps_localsearch-3.1.0}/winrt_Windows.Services.Maps.LocalSearch.egg-info/dependency_links.txt +0 -0
  22. {winrt_windows_services_maps_localsearch-2.3.0 → winrt_windows_services_maps_localsearch-3.1.0}/winrt_Windows.Services.Maps.LocalSearch.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.Services.Maps.LocalSearch
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.Devices.Geolocation[all]==2.3.0; extra == "all"
18
- Requires-Dist: winrt-Windows.Foundation[all]==2.3.0; extra == "all"
19
- Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.3.0; extra == "all"
20
- Requires-Dist: winrt-Windows.Globalization[all]==2.3.0; extra == "all"
21
- Requires-Dist: winrt-Windows.Services.Maps[all]==2.3.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.Devices.Geolocation[all]==3.1.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Foundation[all]==3.1.0; extra == "all"
19
+ Requires-Dist: winrt-Windows.Foundation.Collections[all]==3.1.0; extra == "all"
20
+ Requires-Dist: winrt-Windows.Globalization[all]==3.1.0; extra == "all"
21
+ Requires-Dist: winrt-Windows.Services.Maps[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.Devices.Geolocation[all]==3.1.0
4
+ winrt-Windows.Foundation[all]==3.1.0
5
+ winrt-Windows.Foundation.Collections[all]==3.1.0
6
+ winrt-Windows.Globalization[all]==3.1.0
7
+ winrt-Windows.Services.Maps[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.Services.Maps.LocalSearch.h"
4
4
 
@@ -30,7 +30,11 @@ namespace py::cpp::Windows::Services::Maps::LocalSearch
30
30
  return nullptr;
31
31
  }
32
32
 
33
- return py::convert(winrt::Windows::Services::Maps::LocalSearch::LocalCategories::All());
33
+ return py::convert([&]()
34
+ {
35
+ auto _gil = release_gil();
36
+ return winrt::Windows::Services::Maps::LocalSearch::LocalCategories::All();
37
+ }());
34
38
  }
35
39
  catch (...)
36
40
  {
@@ -56,7 +60,11 @@ namespace py::cpp::Windows::Services::Maps::LocalSearch
56
60
  return nullptr;
57
61
  }
58
62
 
59
- return py::convert(winrt::Windows::Services::Maps::LocalSearch::LocalCategories::BankAndCreditUnions());
63
+ return py::convert([&]()
64
+ {
65
+ auto _gil = release_gil();
66
+ return winrt::Windows::Services::Maps::LocalSearch::LocalCategories::BankAndCreditUnions();
67
+ }());
60
68
  }
61
69
  catch (...)
62
70
  {
@@ -82,7 +90,11 @@ namespace py::cpp::Windows::Services::Maps::LocalSearch
82
90
  return nullptr;
83
91
  }
84
92
 
85
- return py::convert(winrt::Windows::Services::Maps::LocalSearch::LocalCategories::EatDrink());
93
+ return py::convert([&]()
94
+ {
95
+ auto _gil = release_gil();
96
+ return winrt::Windows::Services::Maps::LocalSearch::LocalCategories::EatDrink();
97
+ }());
86
98
  }
87
99
  catch (...)
88
100
  {
@@ -108,7 +120,11 @@ namespace py::cpp::Windows::Services::Maps::LocalSearch
108
120
  return nullptr;
109
121
  }
110
122
 
111
- return py::convert(winrt::Windows::Services::Maps::LocalSearch::LocalCategories::Hospitals());
123
+ return py::convert([&]()
124
+ {
125
+ auto _gil = release_gil();
126
+ return winrt::Windows::Services::Maps::LocalSearch::LocalCategories::Hospitals();
127
+ }());
112
128
  }
113
129
  catch (...)
114
130
  {
@@ -134,7 +150,11 @@ namespace py::cpp::Windows::Services::Maps::LocalSearch
134
150
  return nullptr;
135
151
  }
136
152
 
137
- return py::convert(winrt::Windows::Services::Maps::LocalSearch::LocalCategories::HotelsAndMotels());
153
+ return py::convert([&]()
154
+ {
155
+ auto _gil = release_gil();
156
+ return winrt::Windows::Services::Maps::LocalSearch::LocalCategories::HotelsAndMotels();
157
+ }());
138
158
  }
139
159
  catch (...)
140
160
  {
@@ -160,7 +180,11 @@ namespace py::cpp::Windows::Services::Maps::LocalSearch
160
180
  return nullptr;
161
181
  }
162
182
 
163
- return py::convert(winrt::Windows::Services::Maps::LocalSearch::LocalCategories::Parking());
183
+ return py::convert([&]()
184
+ {
185
+ auto _gil = release_gil();
186
+ return winrt::Windows::Services::Maps::LocalSearch::LocalCategories::Parking();
187
+ }());
164
188
  }
165
189
  catch (...)
166
190
  {
@@ -186,7 +210,11 @@ namespace py::cpp::Windows::Services::Maps::LocalSearch
186
210
  return nullptr;
187
211
  }
188
212
 
189
- return py::convert(winrt::Windows::Services::Maps::LocalSearch::LocalCategories::SeeDo());
213
+ return py::convert([&]()
214
+ {
215
+ auto _gil = release_gil();
216
+ return winrt::Windows::Services::Maps::LocalSearch::LocalCategories::SeeDo();
217
+ }());
190
218
  }
191
219
  catch (...)
192
220
  {
@@ -212,7 +240,11 @@ namespace py::cpp::Windows::Services::Maps::LocalSearch
212
240
  return nullptr;
213
241
  }
214
242
 
215
- return py::convert(winrt::Windows::Services::Maps::LocalSearch::LocalCategories::Shop());
243
+ return py::convert([&]()
244
+ {
245
+ auto _gil = release_gil();
246
+ return winrt::Windows::Services::Maps::LocalSearch::LocalCategories::Shop();
247
+ }());
216
248
  }
217
249
  catch (...)
218
250
  {
@@ -222,19 +254,16 @@ namespace py::cpp::Windows::Services::Maps::LocalSearch
222
254
  }
223
255
 
224
256
  static PyMethodDef _methods_LocalCategories[] = {
225
- { }
226
- };
257
+ { }};
227
258
 
228
259
  static PyGetSetDef _getset_LocalCategories[] = {
229
- { }
230
- };
260
+ { }};
231
261
 
232
262
  static PyType_Slot _type_slots_LocalCategories[] = {
233
263
  { Py_tp_new, reinterpret_cast<void*>(_new_LocalCategories) },
234
264
  { Py_tp_methods, reinterpret_cast<void*>(_methods_LocalCategories) },
235
265
  { Py_tp_getset, reinterpret_cast<void*>(_getset_LocalCategories) },
236
- { }
237
- };
266
+ { }};
238
267
 
239
268
  static PyType_Spec type_spec_LocalCategories = {
240
269
  "winrt._winrt_windows_services_maps_localsearch.LocalCategories",
@@ -252,12 +281,10 @@ namespace py::cpp::Windows::Services::Maps::LocalSearch
252
281
  { "parking", reinterpret_cast<getter>(LocalCategories_get_Parking), nullptr, nullptr, nullptr },
253
282
  { "see_do", reinterpret_cast<getter>(LocalCategories_get_SeeDo), nullptr, nullptr, nullptr },
254
283
  { "shop", reinterpret_cast<getter>(LocalCategories_get_Shop), nullptr, nullptr, nullptr },
255
- { }
256
- };
284
+ { }};
257
285
 
258
286
  static PyMethodDef methods_LocalCategories_Static[] = {
259
- { }
260
- };
287
+ { }};
261
288
 
262
289
  static PyType_Slot type_slots_LocalCategories_Static[] =
263
290
  {
@@ -267,14 +294,12 @@ namespace py::cpp::Windows::Services::Maps::LocalSearch
267
294
  { }
268
295
  };
269
296
 
270
- static PyType_Spec type_spec_LocalCategories_Static =
271
- {
297
+ static PyType_Spec type_spec_LocalCategories_Static = {
272
298
  "winrt._winrt_windows_services_maps_localsearch.LocalCategories_Static",
273
299
  static_cast<int>(PyType_Type.tp_basicsize),
274
300
  static_cast<int>(PyType_Type.tp_itemsize),
275
301
  Py_TPFLAGS_DEFAULT,
276
- type_slots_LocalCategories_Static
277
- };
302
+ type_slots_LocalCategories_Static};
278
303
 
279
304
  // ----- LocalLocation class --------------------
280
305
 
@@ -310,7 +335,11 @@ namespace py::cpp::Windows::Services::Maps::LocalSearch
310
335
  return nullptr;
311
336
  }
312
337
 
313
- return py::convert(self->obj.Address());
338
+ return py::convert([&]()
339
+ {
340
+ auto _gil = release_gil();
341
+ return self->obj.Address();
342
+ }());
314
343
  }
315
344
  catch (...)
316
345
  {
@@ -336,7 +365,11 @@ namespace py::cpp::Windows::Services::Maps::LocalSearch
336
365
  return nullptr;
337
366
  }
338
367
 
339
- return py::convert(self->obj.DataAttribution());
368
+ return py::convert([&]()
369
+ {
370
+ auto _gil = release_gil();
371
+ return self->obj.DataAttribution();
372
+ }());
340
373
  }
341
374
  catch (...)
342
375
  {
@@ -362,7 +395,11 @@ namespace py::cpp::Windows::Services::Maps::LocalSearch
362
395
  return nullptr;
363
396
  }
364
397
 
365
- return py::convert(self->obj.Description());
398
+ return py::convert([&]()
399
+ {
400
+ auto _gil = release_gil();
401
+ return self->obj.Description();
402
+ }());
366
403
  }
367
404
  catch (...)
368
405
  {
@@ -388,7 +425,11 @@ namespace py::cpp::Windows::Services::Maps::LocalSearch
388
425
  return nullptr;
389
426
  }
390
427
 
391
- return py::convert(self->obj.DisplayName());
428
+ return py::convert([&]()
429
+ {
430
+ auto _gil = release_gil();
431
+ return self->obj.DisplayName();
432
+ }());
392
433
  }
393
434
  catch (...)
394
435
  {
@@ -414,7 +455,11 @@ namespace py::cpp::Windows::Services::Maps::LocalSearch
414
455
  return nullptr;
415
456
  }
416
457
 
417
- return py::convert(self->obj.Identifier());
458
+ return py::convert([&]()
459
+ {
460
+ auto _gil = release_gil();
461
+ return self->obj.Identifier();
462
+ }());
418
463
  }
419
464
  catch (...)
420
465
  {
@@ -440,7 +485,11 @@ namespace py::cpp::Windows::Services::Maps::LocalSearch
440
485
  return nullptr;
441
486
  }
442
487
 
443
- return py::convert(self->obj.PhoneNumber());
488
+ return py::convert([&]()
489
+ {
490
+ auto _gil = release_gil();
491
+ return self->obj.PhoneNumber();
492
+ }());
444
493
  }
445
494
  catch (...)
446
495
  {
@@ -466,7 +515,11 @@ namespace py::cpp::Windows::Services::Maps::LocalSearch
466
515
  return nullptr;
467
516
  }
468
517
 
469
- return py::convert(self->obj.Point());
518
+ return py::convert([&]()
519
+ {
520
+ auto _gil = release_gil();
521
+ return self->obj.Point();
522
+ }());
470
523
  }
471
524
  catch (...)
472
525
  {
@@ -492,7 +545,11 @@ namespace py::cpp::Windows::Services::Maps::LocalSearch
492
545
  return nullptr;
493
546
  }
494
547
 
495
- return py::convert(self->obj.Category());
548
+ return py::convert([&]()
549
+ {
550
+ auto _gil = release_gil();
551
+ return self->obj.Category();
552
+ }());
496
553
  }
497
554
  catch (...)
498
555
  {
@@ -518,7 +575,11 @@ namespace py::cpp::Windows::Services::Maps::LocalSearch
518
575
  return nullptr;
519
576
  }
520
577
 
521
- return py::convert(self->obj.HoursOfOperation());
578
+ return py::convert([&]()
579
+ {
580
+ auto _gil = release_gil();
581
+ return self->obj.HoursOfOperation();
582
+ }());
522
583
  }
523
584
  catch (...)
524
585
  {
@@ -544,7 +605,11 @@ namespace py::cpp::Windows::Services::Maps::LocalSearch
544
605
  return nullptr;
545
606
  }
546
607
 
547
- return py::convert(self->obj.RatingInfo());
608
+ return py::convert([&]()
609
+ {
610
+ auto _gil = release_gil();
611
+ return self->obj.RatingInfo();
612
+ }());
548
613
  }
549
614
  catch (...)
550
615
  {
@@ -580,8 +645,7 @@ namespace py::cpp::Windows::Services::Maps::LocalSearch
580
645
  static PyMethodDef _methods_LocalLocation[] = {
581
646
  { "_assign_array_", _assign_array_LocalLocation, METH_O | METH_STATIC, nullptr },
582
647
  { "_from", reinterpret_cast<PyCFunction>(_from_LocalLocation), METH_O | METH_STATIC, nullptr },
583
- { }
584
- };
648
+ { }};
585
649
 
586
650
  static PyGetSetDef _getset_LocalLocation[] = {
587
651
  { "address", reinterpret_cast<getter>(LocalLocation_get_Address), nullptr, nullptr, nullptr },
@@ -594,16 +658,14 @@ namespace py::cpp::Windows::Services::Maps::LocalSearch
594
658
  { "category", reinterpret_cast<getter>(LocalLocation_get_Category), nullptr, nullptr, nullptr },
595
659
  { "hours_of_operation", reinterpret_cast<getter>(LocalLocation_get_HoursOfOperation), nullptr, nullptr, nullptr },
596
660
  { "rating_info", reinterpret_cast<getter>(LocalLocation_get_RatingInfo), nullptr, nullptr, nullptr },
597
- { }
598
- };
661
+ { }};
599
662
 
600
663
  static PyType_Slot _type_slots_LocalLocation[] = {
601
664
  { Py_tp_new, reinterpret_cast<void*>(_new_LocalLocation) },
602
665
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_LocalLocation) },
603
666
  { Py_tp_methods, reinterpret_cast<void*>(_methods_LocalLocation) },
604
667
  { Py_tp_getset, reinterpret_cast<void*>(_getset_LocalLocation) },
605
- { }
606
- };
668
+ { }};
607
669
 
608
670
  static PyType_Spec type_spec_LocalLocation = {
609
671
  "winrt._winrt_windows_services_maps_localsearch.LocalLocation",
@@ -623,7 +685,7 @@ namespace py::cpp::Windows::Services::Maps::LocalSearch
623
685
 
624
686
  static PyObject* LocalLocationFinder_FindLocalLocationsAsync(PyObject* /*unused*/, PyObject* args) noexcept
625
687
  {
626
- auto arg_count = PyTuple_Size(args);
688
+ auto arg_count = PyTuple_GET_SIZE(args);
627
689
 
628
690
  if (arg_count == 4)
629
691
  {
@@ -647,7 +709,11 @@ namespace py::cpp::Windows::Services::Maps::LocalSearch
647
709
  auto param2 = py::convert_to<winrt::hstring>(args, 2);
648
710
  auto param3 = py::convert_to<uint32_t>(args, 3);
649
711
 
650
- return py::convert(winrt::Windows::Services::Maps::LocalSearch::LocalLocationFinder::FindLocalLocationsAsync(param0, param1, param2, param3));
712
+ return py::convert([&]()
713
+ {
714
+ auto _gil = release_gil();
715
+ return winrt::Windows::Services::Maps::LocalSearch::LocalLocationFinder::FindLocalLocationsAsync(param0, param1, param2, param3);
716
+ }());
651
717
  }
652
718
  catch (...)
653
719
  {
@@ -663,19 +729,16 @@ namespace py::cpp::Windows::Services::Maps::LocalSearch
663
729
  }
664
730
 
665
731
  static PyMethodDef _methods_LocalLocationFinder[] = {
666
- { }
667
- };
732
+ { }};
668
733
 
669
734
  static PyGetSetDef _getset_LocalLocationFinder[] = {
670
- { }
671
- };
735
+ { }};
672
736
 
673
737
  static PyType_Slot _type_slots_LocalLocationFinder[] = {
674
738
  { Py_tp_new, reinterpret_cast<void*>(_new_LocalLocationFinder) },
675
739
  { Py_tp_methods, reinterpret_cast<void*>(_methods_LocalLocationFinder) },
676
740
  { Py_tp_getset, reinterpret_cast<void*>(_getset_LocalLocationFinder) },
677
- { }
678
- };
741
+ { }};
679
742
 
680
743
  static PyType_Spec type_spec_LocalLocationFinder = {
681
744
  "winrt._winrt_windows_services_maps_localsearch.LocalLocationFinder",
@@ -685,13 +748,11 @@ namespace py::cpp::Windows::Services::Maps::LocalSearch
685
748
  _type_slots_LocalLocationFinder};
686
749
 
687
750
  static PyGetSetDef getset_LocalLocationFinder_Static[] = {
688
- { }
689
- };
751
+ { }};
690
752
 
691
753
  static PyMethodDef methods_LocalLocationFinder_Static[] = {
692
754
  { "find_local_locations_async", reinterpret_cast<PyCFunction>(LocalLocationFinder_FindLocalLocationsAsync), METH_VARARGS, nullptr },
693
- { }
694
- };
755
+ { }};
695
756
 
696
757
  static PyType_Slot type_slots_LocalLocationFinder_Static[] =
697
758
  {
@@ -701,14 +762,12 @@ namespace py::cpp::Windows::Services::Maps::LocalSearch
701
762
  { }
702
763
  };
703
764
 
704
- static PyType_Spec type_spec_LocalLocationFinder_Static =
705
- {
765
+ static PyType_Spec type_spec_LocalLocationFinder_Static = {
706
766
  "winrt._winrt_windows_services_maps_localsearch.LocalLocationFinder_Static",
707
767
  static_cast<int>(PyType_Type.tp_basicsize),
708
768
  static_cast<int>(PyType_Type.tp_itemsize),
709
769
  Py_TPFLAGS_DEFAULT,
710
- type_slots_LocalLocationFinder_Static
711
- };
770
+ type_slots_LocalLocationFinder_Static};
712
771
 
713
772
  // ----- LocalLocationFinderResult class --------------------
714
773
 
@@ -744,7 +803,11 @@ namespace py::cpp::Windows::Services::Maps::LocalSearch
744
803
  return nullptr;
745
804
  }
746
805
 
747
- return py::convert(self->obj.LocalLocations());
806
+ return py::convert([&]()
807
+ {
808
+ auto _gil = release_gil();
809
+ return self->obj.LocalLocations();
810
+ }());
748
811
  }
749
812
  catch (...)
750
813
  {
@@ -770,7 +833,11 @@ namespace py::cpp::Windows::Services::Maps::LocalSearch
770
833
  return nullptr;
771
834
  }
772
835
 
773
- return py::convert(self->obj.Status());
836
+ return py::convert([&]()
837
+ {
838
+ auto _gil = release_gil();
839
+ return self->obj.Status();
840
+ }());
774
841
  }
775
842
  catch (...)
776
843
  {
@@ -806,22 +873,19 @@ namespace py::cpp::Windows::Services::Maps::LocalSearch
806
873
  static PyMethodDef _methods_LocalLocationFinderResult[] = {
807
874
  { "_assign_array_", _assign_array_LocalLocationFinderResult, METH_O | METH_STATIC, nullptr },
808
875
  { "_from", reinterpret_cast<PyCFunction>(_from_LocalLocationFinderResult), METH_O | METH_STATIC, nullptr },
809
- { }
810
- };
876
+ { }};
811
877
 
812
878
  static PyGetSetDef _getset_LocalLocationFinderResult[] = {
813
879
  { "local_locations", reinterpret_cast<getter>(LocalLocationFinderResult_get_LocalLocations), nullptr, nullptr, nullptr },
814
880
  { "status", reinterpret_cast<getter>(LocalLocationFinderResult_get_Status), nullptr, nullptr, nullptr },
815
- { }
816
- };
881
+ { }};
817
882
 
818
883
  static PyType_Slot _type_slots_LocalLocationFinderResult[] = {
819
884
  { Py_tp_new, reinterpret_cast<void*>(_new_LocalLocationFinderResult) },
820
885
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_LocalLocationFinderResult) },
821
886
  { Py_tp_methods, reinterpret_cast<void*>(_methods_LocalLocationFinderResult) },
822
887
  { Py_tp_getset, reinterpret_cast<void*>(_getset_LocalLocationFinderResult) },
823
- { }
824
- };
888
+ { }};
825
889
 
826
890
  static PyType_Spec type_spec_LocalLocationFinderResult = {
827
891
  "winrt._winrt_windows_services_maps_localsearch.LocalLocationFinderResult",
@@ -864,7 +928,11 @@ namespace py::cpp::Windows::Services::Maps::LocalSearch
864
928
  return nullptr;
865
929
  }
866
930
 
867
- return py::convert(self->obj.Day());
931
+ return py::convert([&]()
932
+ {
933
+ auto _gil = release_gil();
934
+ return self->obj.Day();
935
+ }());
868
936
  }
869
937
  catch (...)
870
938
  {
@@ -890,7 +958,11 @@ namespace py::cpp::Windows::Services::Maps::LocalSearch
890
958
  return nullptr;
891
959
  }
892
960
 
893
- return py::convert(self->obj.Span());
961
+ return py::convert([&]()
962
+ {
963
+ auto _gil = release_gil();
964
+ return self->obj.Span();
965
+ }());
894
966
  }
895
967
  catch (...)
896
968
  {
@@ -916,7 +988,11 @@ namespace py::cpp::Windows::Services::Maps::LocalSearch
916
988
  return nullptr;
917
989
  }
918
990
 
919
- return py::convert(self->obj.Start());
991
+ return py::convert([&]()
992
+ {
993
+ auto _gil = release_gil();
994
+ return self->obj.Start();
995
+ }());
920
996
  }
921
997
  catch (...)
922
998
  {
@@ -952,23 +1028,20 @@ namespace py::cpp::Windows::Services::Maps::LocalSearch
952
1028
  static PyMethodDef _methods_LocalLocationHoursOfOperationItem[] = {
953
1029
  { "_assign_array_", _assign_array_LocalLocationHoursOfOperationItem, METH_O | METH_STATIC, nullptr },
954
1030
  { "_from", reinterpret_cast<PyCFunction>(_from_LocalLocationHoursOfOperationItem), METH_O | METH_STATIC, nullptr },
955
- { }
956
- };
1031
+ { }};
957
1032
 
958
1033
  static PyGetSetDef _getset_LocalLocationHoursOfOperationItem[] = {
959
1034
  { "day", reinterpret_cast<getter>(LocalLocationHoursOfOperationItem_get_Day), nullptr, nullptr, nullptr },
960
1035
  { "span", reinterpret_cast<getter>(LocalLocationHoursOfOperationItem_get_Span), nullptr, nullptr, nullptr },
961
1036
  { "start", reinterpret_cast<getter>(LocalLocationHoursOfOperationItem_get_Start), nullptr, nullptr, nullptr },
962
- { }
963
- };
1037
+ { }};
964
1038
 
965
1039
  static PyType_Slot _type_slots_LocalLocationHoursOfOperationItem[] = {
966
1040
  { Py_tp_new, reinterpret_cast<void*>(_new_LocalLocationHoursOfOperationItem) },
967
1041
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_LocalLocationHoursOfOperationItem) },
968
1042
  { Py_tp_methods, reinterpret_cast<void*>(_methods_LocalLocationHoursOfOperationItem) },
969
1043
  { Py_tp_getset, reinterpret_cast<void*>(_getset_LocalLocationHoursOfOperationItem) },
970
- { }
971
- };
1044
+ { }};
972
1045
 
973
1046
  static PyType_Spec type_spec_LocalLocationHoursOfOperationItem = {
974
1047
  "winrt._winrt_windows_services_maps_localsearch.LocalLocationHoursOfOperationItem",
@@ -1011,7 +1084,11 @@ namespace py::cpp::Windows::Services::Maps::LocalSearch
1011
1084
  return nullptr;
1012
1085
  }
1013
1086
 
1014
- return py::convert(self->obj.AggregateRating());
1087
+ return py::convert([&]()
1088
+ {
1089
+ auto _gil = release_gil();
1090
+ return self->obj.AggregateRating();
1091
+ }());
1015
1092
  }
1016
1093
  catch (...)
1017
1094
  {
@@ -1037,7 +1114,11 @@ namespace py::cpp::Windows::Services::Maps::LocalSearch
1037
1114
  return nullptr;
1038
1115
  }
1039
1116
 
1040
- return py::convert(self->obj.ProviderIdentifier());
1117
+ return py::convert([&]()
1118
+ {
1119
+ auto _gil = release_gil();
1120
+ return self->obj.ProviderIdentifier();
1121
+ }());
1041
1122
  }
1042
1123
  catch (...)
1043
1124
  {
@@ -1063,7 +1144,11 @@ namespace py::cpp::Windows::Services::Maps::LocalSearch
1063
1144
  return nullptr;
1064
1145
  }
1065
1146
 
1066
- return py::convert(self->obj.RatingCount());
1147
+ return py::convert([&]()
1148
+ {
1149
+ auto _gil = release_gil();
1150
+ return self->obj.RatingCount();
1151
+ }());
1067
1152
  }
1068
1153
  catch (...)
1069
1154
  {
@@ -1099,23 +1184,20 @@ namespace py::cpp::Windows::Services::Maps::LocalSearch
1099
1184
  static PyMethodDef _methods_LocalLocationRatingInfo[] = {
1100
1185
  { "_assign_array_", _assign_array_LocalLocationRatingInfo, METH_O | METH_STATIC, nullptr },
1101
1186
  { "_from", reinterpret_cast<PyCFunction>(_from_LocalLocationRatingInfo), METH_O | METH_STATIC, nullptr },
1102
- { }
1103
- };
1187
+ { }};
1104
1188
 
1105
1189
  static PyGetSetDef _getset_LocalLocationRatingInfo[] = {
1106
1190
  { "aggregate_rating", reinterpret_cast<getter>(LocalLocationRatingInfo_get_AggregateRating), nullptr, nullptr, nullptr },
1107
1191
  { "provider_identifier", reinterpret_cast<getter>(LocalLocationRatingInfo_get_ProviderIdentifier), nullptr, nullptr, nullptr },
1108
1192
  { "rating_count", reinterpret_cast<getter>(LocalLocationRatingInfo_get_RatingCount), nullptr, nullptr, nullptr },
1109
- { }
1110
- };
1193
+ { }};
1111
1194
 
1112
1195
  static PyType_Slot _type_slots_LocalLocationRatingInfo[] = {
1113
1196
  { Py_tp_new, reinterpret_cast<void*>(_new_LocalLocationRatingInfo) },
1114
1197
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_LocalLocationRatingInfo) },
1115
1198
  { Py_tp_methods, reinterpret_cast<void*>(_methods_LocalLocationRatingInfo) },
1116
1199
  { Py_tp_getset, reinterpret_cast<void*>(_getset_LocalLocationRatingInfo) },
1117
- { }
1118
- };
1200
+ { }};
1119
1201
 
1120
1202
  static PyType_Spec type_spec_LocalLocationRatingInfo = {
1121
1203
  "winrt._winrt_windows_services_maps_localsearch.LocalLocationRatingInfo",
@@ -1135,7 +1217,7 @@ namespace py::cpp::Windows::Services::Maps::LocalSearch
1135
1217
 
1136
1218
  static PyObject* PlaceInfoHelper_CreateFromLocalLocation(PyObject* /*unused*/, PyObject* args) noexcept
1137
1219
  {
1138
- auto arg_count = PyTuple_Size(args);
1220
+ auto arg_count = PyTuple_GET_SIZE(args);
1139
1221
 
1140
1222
  if (arg_count == 1)
1141
1223
  {
@@ -1156,7 +1238,11 @@ namespace py::cpp::Windows::Services::Maps::LocalSearch
1156
1238
 
1157
1239
  auto param0 = py::convert_to<winrt::Windows::Services::Maps::LocalSearch::LocalLocation>(args, 0);
1158
1240
 
1159
- return py::convert(winrt::Windows::Services::Maps::LocalSearch::PlaceInfoHelper::CreateFromLocalLocation(param0));
1241
+ return py::convert([&]()
1242
+ {
1243
+ auto _gil = release_gil();
1244
+ return winrt::Windows::Services::Maps::LocalSearch::PlaceInfoHelper::CreateFromLocalLocation(param0);
1245
+ }());
1160
1246
  }
1161
1247
  catch (...)
1162
1248
  {
@@ -1172,19 +1258,16 @@ namespace py::cpp::Windows::Services::Maps::LocalSearch
1172
1258
  }
1173
1259
 
1174
1260
  static PyMethodDef _methods_PlaceInfoHelper[] = {
1175
- { }
1176
- };
1261
+ { }};
1177
1262
 
1178
1263
  static PyGetSetDef _getset_PlaceInfoHelper[] = {
1179
- { }
1180
- };
1264
+ { }};
1181
1265
 
1182
1266
  static PyType_Slot _type_slots_PlaceInfoHelper[] = {
1183
1267
  { Py_tp_new, reinterpret_cast<void*>(_new_PlaceInfoHelper) },
1184
1268
  { Py_tp_methods, reinterpret_cast<void*>(_methods_PlaceInfoHelper) },
1185
1269
  { Py_tp_getset, reinterpret_cast<void*>(_getset_PlaceInfoHelper) },
1186
- { }
1187
- };
1270
+ { }};
1188
1271
 
1189
1272
  static PyType_Spec type_spec_PlaceInfoHelper = {
1190
1273
  "winrt._winrt_windows_services_maps_localsearch.PlaceInfoHelper",
@@ -1194,13 +1277,11 @@ namespace py::cpp::Windows::Services::Maps::LocalSearch
1194
1277
  _type_slots_PlaceInfoHelper};
1195
1278
 
1196
1279
  static PyGetSetDef getset_PlaceInfoHelper_Static[] = {
1197
- { }
1198
- };
1280
+ { }};
1199
1281
 
1200
1282
  static PyMethodDef methods_PlaceInfoHelper_Static[] = {
1201
1283
  { "create_from_local_location", reinterpret_cast<PyCFunction>(PlaceInfoHelper_CreateFromLocalLocation), METH_VARARGS, nullptr },
1202
- { }
1203
- };
1284
+ { }};
1204
1285
 
1205
1286
  static PyType_Slot type_slots_PlaceInfoHelper_Static[] =
1206
1287
  {
@@ -1210,14 +1291,12 @@ namespace py::cpp::Windows::Services::Maps::LocalSearch
1210
1291
  { }
1211
1292
  };
1212
1293
 
1213
- static PyType_Spec type_spec_PlaceInfoHelper_Static =
1214
- {
1294
+ static PyType_Spec type_spec_PlaceInfoHelper_Static = {
1215
1295
  "winrt._winrt_windows_services_maps_localsearch.PlaceInfoHelper_Static",
1216
1296
  static_cast<int>(PyType_Type.tp_basicsize),
1217
1297
  static_cast<int>(PyType_Type.tp_itemsize),
1218
1298
  Py_TPFLAGS_DEFAULT,
1219
- type_slots_PlaceInfoHelper_Static
1220
- };
1299
+ type_slots_PlaceInfoHelper_Static};
1221
1300
 
1222
1301
  // ----- Windows.Services.Maps.LocalSearch Initialization --------------------
1223
1302
 
@@ -1251,6 +1330,12 @@ PyMODINIT_FUNC PyInit__winrt_windows_services_maps_localsearch(void) noexcept
1251
1330
  return nullptr;
1252
1331
  }
1253
1332
 
1333
+ auto inspectable_meta_type = py::get_inspectable_meta_type();
1334
+ if (!inspectable_meta_type)
1335
+ {
1336
+ return nullptr;
1337
+ }
1338
+
1254
1339
  auto object_type = py::get_object_type();
1255
1340
  if (!object_type)
1256
1341
  {
@@ -1264,7 +1349,13 @@ PyMODINIT_FUNC PyInit__winrt_windows_services_maps_localsearch(void) noexcept
1264
1349
  return nullptr;
1265
1350
  }
1266
1351
 
1267
- py::pyobj_handle type_LocalCategories_Static{PyType_FromSpec(&type_spec_LocalCategories_Static)};
1352
+ py::pyobj_handle LocalCategories_Static_bases{PyTuple_Pack(1, reinterpret_cast<PyObject*>(inspectable_meta_type))};
1353
+ if (!LocalCategories_Static_bases)
1354
+ {
1355
+ return nullptr;
1356
+ }
1357
+
1358
+ py::pyobj_handle type_LocalCategories_Static{PyType_FromSpecWithBases(&type_spec_LocalCategories_Static, LocalCategories_Static_bases.get())};
1268
1359
  if (!type_LocalCategories_Static)
1269
1360
  {
1270
1361
  return nullptr;
@@ -1276,13 +1367,19 @@ PyMODINIT_FUNC PyInit__winrt_windows_services_maps_localsearch(void) noexcept
1276
1367
  return nullptr;
1277
1368
  }
1278
1369
 
1279
- py::pytype_handle LocalLocation_type{py::register_python_type(module.get(), &type_spec_LocalLocation, object_bases.get(), nullptr)};
1370
+ py::pytype_handle LocalLocation_type{py::register_python_type(module.get(), &type_spec_LocalLocation, object_bases.get(), inspectable_meta_type)};
1280
1371
  if (!LocalLocation_type)
1281
1372
  {
1282
1373
  return nullptr;
1283
1374
  }
1284
1375
 
1285
- py::pyobj_handle type_LocalLocationFinder_Static{PyType_FromSpec(&type_spec_LocalLocationFinder_Static)};
1376
+ py::pyobj_handle LocalLocationFinder_Static_bases{PyTuple_Pack(1, reinterpret_cast<PyObject*>(inspectable_meta_type))};
1377
+ if (!LocalLocationFinder_Static_bases)
1378
+ {
1379
+ return nullptr;
1380
+ }
1381
+
1382
+ py::pyobj_handle type_LocalLocationFinder_Static{PyType_FromSpecWithBases(&type_spec_LocalLocationFinder_Static, LocalLocationFinder_Static_bases.get())};
1286
1383
  if (!type_LocalLocationFinder_Static)
1287
1384
  {
1288
1385
  return nullptr;
@@ -1294,25 +1391,31 @@ PyMODINIT_FUNC PyInit__winrt_windows_services_maps_localsearch(void) noexcept
1294
1391
  return nullptr;
1295
1392
  }
1296
1393
 
1297
- py::pytype_handle LocalLocationFinderResult_type{py::register_python_type(module.get(), &type_spec_LocalLocationFinderResult, object_bases.get(), nullptr)};
1394
+ py::pytype_handle LocalLocationFinderResult_type{py::register_python_type(module.get(), &type_spec_LocalLocationFinderResult, object_bases.get(), inspectable_meta_type)};
1298
1395
  if (!LocalLocationFinderResult_type)
1299
1396
  {
1300
1397
  return nullptr;
1301
1398
  }
1302
1399
 
1303
- py::pytype_handle LocalLocationHoursOfOperationItem_type{py::register_python_type(module.get(), &type_spec_LocalLocationHoursOfOperationItem, object_bases.get(), nullptr)};
1400
+ py::pytype_handle LocalLocationHoursOfOperationItem_type{py::register_python_type(module.get(), &type_spec_LocalLocationHoursOfOperationItem, object_bases.get(), inspectable_meta_type)};
1304
1401
  if (!LocalLocationHoursOfOperationItem_type)
1305
1402
  {
1306
1403
  return nullptr;
1307
1404
  }
1308
1405
 
1309
- py::pytype_handle LocalLocationRatingInfo_type{py::register_python_type(module.get(), &type_spec_LocalLocationRatingInfo, object_bases.get(), nullptr)};
1406
+ py::pytype_handle LocalLocationRatingInfo_type{py::register_python_type(module.get(), &type_spec_LocalLocationRatingInfo, object_bases.get(), inspectable_meta_type)};
1310
1407
  if (!LocalLocationRatingInfo_type)
1311
1408
  {
1312
1409
  return nullptr;
1313
1410
  }
1314
1411
 
1315
- py::pyobj_handle type_PlaceInfoHelper_Static{PyType_FromSpec(&type_spec_PlaceInfoHelper_Static)};
1412
+ py::pyobj_handle PlaceInfoHelper_Static_bases{PyTuple_Pack(1, reinterpret_cast<PyObject*>(inspectable_meta_type))};
1413
+ if (!PlaceInfoHelper_Static_bases)
1414
+ {
1415
+ return nullptr;
1416
+ }
1417
+
1418
+ py::pyobj_handle type_PlaceInfoHelper_Static{PyType_FromSpecWithBases(&type_spec_PlaceInfoHelper_Static, PlaceInfoHelper_Static_bases.get())};
1316
1419
  if (!type_PlaceInfoHelper_Static)
1317
1420
  {
1318
1421
  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.Services.Maps.LocalSearch"
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_services_maps_localsearch",
@@ -0,0 +1,136 @@
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.devices.geolocation as windows_devices_geolocation
13
+ import winrt.windows.foundation as windows_foundation
14
+ import winrt.windows.foundation.collections as windows_foundation_collections
15
+ import winrt.windows.globalization as windows_globalization
16
+ import winrt.windows.services.maps as windows_services_maps
17
+
18
+ from winrt.windows.services.maps.localsearch import LocalLocationFinderStatus
19
+
20
+ Self = typing.TypeVar('Self')
21
+
22
+ @typing.final
23
+ class LocalCategories_Static(winrt._winrt.IInspectable_Static):
24
+ # System.String Windows.Services.Maps.LocalSearch.LocalCategories::get_All()
25
+ @_property
26
+ def all(cls) -> str: ...
27
+ # System.String Windows.Services.Maps.LocalSearch.LocalCategories::get_BankAndCreditUnions()
28
+ @_property
29
+ def bank_and_credit_unions(cls) -> str: ...
30
+ # System.String Windows.Services.Maps.LocalSearch.LocalCategories::get_EatDrink()
31
+ @_property
32
+ def eat_drink(cls) -> str: ...
33
+ # System.String Windows.Services.Maps.LocalSearch.LocalCategories::get_Hospitals()
34
+ @_property
35
+ def hospitals(cls) -> str: ...
36
+ # System.String Windows.Services.Maps.LocalSearch.LocalCategories::get_HotelsAndMotels()
37
+ @_property
38
+ def hotels_and_motels(cls) -> str: ...
39
+ # System.String Windows.Services.Maps.LocalSearch.LocalCategories::get_Parking()
40
+ @_property
41
+ def parking(cls) -> str: ...
42
+ # System.String Windows.Services.Maps.LocalSearch.LocalCategories::get_SeeDo()
43
+ @_property
44
+ def see_do(cls) -> str: ...
45
+ # System.String Windows.Services.Maps.LocalSearch.LocalCategories::get_Shop()
46
+ @_property
47
+ def shop(cls) -> str: ...
48
+
49
+ @typing.final
50
+ class LocalCategories(winrt.system.Object, metaclass=LocalCategories_Static):
51
+ pass
52
+
53
+ @typing.final
54
+ class LocalLocation(winrt.system.Object):
55
+ # Windows.Services.Maps.MapAddress Windows.Services.Maps.LocalSearch.LocalLocation::get_Address()
56
+ @_property
57
+ def address(self) -> windows_services_maps.MapAddress: ...
58
+ # System.String Windows.Services.Maps.LocalSearch.LocalLocation::get_DataAttribution()
59
+ @_property
60
+ def data_attribution(self) -> str: ...
61
+ # System.String Windows.Services.Maps.LocalSearch.LocalLocation::get_Description()
62
+ @_property
63
+ def description(self) -> str: ...
64
+ # System.String Windows.Services.Maps.LocalSearch.LocalLocation::get_DisplayName()
65
+ @_property
66
+ def display_name(self) -> str: ...
67
+ # System.String Windows.Services.Maps.LocalSearch.LocalLocation::get_Identifier()
68
+ @_property
69
+ def identifier(self) -> str: ...
70
+ # System.String Windows.Services.Maps.LocalSearch.LocalLocation::get_PhoneNumber()
71
+ @_property
72
+ def phone_number(self) -> str: ...
73
+ # Windows.Devices.Geolocation.Geopoint Windows.Services.Maps.LocalSearch.LocalLocation::get_Point()
74
+ @_property
75
+ def point(self) -> windows_devices_geolocation.Geopoint: ...
76
+ # System.String Windows.Services.Maps.LocalSearch.LocalLocation::get_Category()
77
+ @_property
78
+ def category(self) -> str: ...
79
+ # Windows.Foundation.Collections.IVectorView`1<Windows.Services.Maps.LocalSearch.LocalLocationHoursOfOperationItem> Windows.Services.Maps.LocalSearch.LocalLocation::get_HoursOfOperation()
80
+ @_property
81
+ def hours_of_operation(self) -> typing.Sequence[LocalLocationHoursOfOperationItem]: ...
82
+ # Windows.Services.Maps.LocalSearch.LocalLocationRatingInfo Windows.Services.Maps.LocalSearch.LocalLocation::get_RatingInfo()
83
+ @_property
84
+ def rating_info(self) -> LocalLocationRatingInfo: ...
85
+
86
+ @typing.final
87
+ class LocalLocationFinder_Static(winrt._winrt.IInspectable_Static):
88
+ # Windows.Foundation.IAsyncOperation`1<Windows.Services.Maps.LocalSearch.LocalLocationFinderResult> Windows.Services.Maps.LocalSearch.LocalLocationFinder::FindLocalLocationsAsync(System.String,Windows.Devices.Geolocation.Geocircle,System.String,System.UInt32)
89
+ def find_local_locations_async(cls, search_term: str, search_area: windows_devices_geolocation.Geocircle, local_category: str, max_results: winrt.system.UInt32, /) -> windows_foundation.IAsyncOperation[LocalLocationFinderResult]: ...
90
+
91
+ @typing.final
92
+ class LocalLocationFinder(winrt.system.Object, metaclass=LocalLocationFinder_Static):
93
+ pass
94
+
95
+ @typing.final
96
+ class LocalLocationFinderResult(winrt.system.Object):
97
+ # Windows.Foundation.Collections.IVectorView`1<Windows.Services.Maps.LocalSearch.LocalLocation> Windows.Services.Maps.LocalSearch.LocalLocationFinderResult::get_LocalLocations()
98
+ @_property
99
+ def local_locations(self) -> typing.Sequence[LocalLocation]: ...
100
+ # Windows.Services.Maps.LocalSearch.LocalLocationFinderStatus Windows.Services.Maps.LocalSearch.LocalLocationFinderResult::get_Status()
101
+ @_property
102
+ def status(self) -> LocalLocationFinderStatus: ...
103
+
104
+ @typing.final
105
+ class LocalLocationHoursOfOperationItem(winrt.system.Object):
106
+ # Windows.Globalization.DayOfWeek Windows.Services.Maps.LocalSearch.LocalLocationHoursOfOperationItem::get_Day()
107
+ @_property
108
+ def day(self) -> windows_globalization.DayOfWeek: ...
109
+ # Windows.Foundation.TimeSpan Windows.Services.Maps.LocalSearch.LocalLocationHoursOfOperationItem::get_Span()
110
+ @_property
111
+ def span(self) -> datetime.timedelta: ...
112
+ # Windows.Foundation.TimeSpan Windows.Services.Maps.LocalSearch.LocalLocationHoursOfOperationItem::get_Start()
113
+ @_property
114
+ def start(self) -> datetime.timedelta: ...
115
+
116
+ @typing.final
117
+ class LocalLocationRatingInfo(winrt.system.Object):
118
+ # Windows.Foundation.IReference`1<System.Double> Windows.Services.Maps.LocalSearch.LocalLocationRatingInfo::get_AggregateRating()
119
+ @_property
120
+ def aggregate_rating(self) -> typing.Optional[winrt.system.Double]: ...
121
+ # System.String Windows.Services.Maps.LocalSearch.LocalLocationRatingInfo::get_ProviderIdentifier()
122
+ @_property
123
+ def provider_identifier(self) -> str: ...
124
+ # Windows.Foundation.IReference`1<System.Int32> Windows.Services.Maps.LocalSearch.LocalLocationRatingInfo::get_RatingCount()
125
+ @_property
126
+ def rating_count(self) -> typing.Optional[winrt.system.Int32]: ...
127
+
128
+ @typing.final
129
+ class PlaceInfoHelper_Static(winrt._winrt.IInspectable_Static):
130
+ # Windows.Services.Maps.PlaceInfo Windows.Services.Maps.LocalSearch.PlaceInfoHelper::CreateFromLocalLocation(Windows.Services.Maps.LocalSearch.LocalLocation)
131
+ def create_from_local_location(cls, location: LocalLocation, /) -> windows_services_maps.PlaceInfo: ...
132
+
133
+ @typing.final
134
+ class PlaceInfoHelper(winrt.system.Object, metaclass=PlaceInfoHelper_Static):
135
+ pass
136
+
@@ -0,0 +1,36 @@
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_services_maps_localsearch import (
7
+ LocalCategories,
8
+ LocalLocation,
9
+ LocalLocationFinder,
10
+ LocalLocationFinderResult,
11
+ LocalLocationHoursOfOperationItem,
12
+ LocalLocationRatingInfo,
13
+ PlaceInfoHelper,
14
+ )
15
+
16
+ __all__ = [
17
+ "LocalLocationFinderStatus",
18
+ "LocalCategories",
19
+ "LocalLocation",
20
+ "LocalLocationFinder",
21
+ "LocalLocationFinderResult",
22
+ "LocalLocationHoursOfOperationItem",
23
+ "LocalLocationRatingInfo",
24
+ "PlaceInfoHelper",
25
+ ]
26
+
27
+ class LocalLocationFinderStatus(enum.IntEnum):
28
+ SUCCESS = 0
29
+ UNKNOWN_ERROR = 1
30
+ INVALID_CREDENTIALS = 2
31
+ INVALID_CATEGORY = 3
32
+ INVALID_SEARCH_TERM = 4
33
+ INVALID_SEARCH_AREA = 5
34
+ NETWORK_FAILURE = 6
35
+ NOT_SUPPORTED = 7
36
+
@@ -1,8 +1,8 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: winrt-Windows.Services.Maps.LocalSearch
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.Devices.Geolocation[all]==2.3.0; extra == "all"
18
- Requires-Dist: winrt-Windows.Foundation[all]==2.3.0; extra == "all"
19
- Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.3.0; extra == "all"
20
- Requires-Dist: winrt-Windows.Globalization[all]==2.3.0; extra == "all"
21
- Requires-Dist: winrt-Windows.Services.Maps[all]==2.3.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.Devices.Geolocation[all]==3.1.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Foundation[all]==3.1.0; extra == "all"
19
+ Requires-Dist: winrt-Windows.Foundation.Collections[all]==3.1.0; extra == "all"
20
+ Requires-Dist: winrt-Windows.Globalization[all]==3.1.0; extra == "all"
21
+ Requires-Dist: winrt-Windows.Services.Maps[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.Devices.Geolocation[all]==3.1.0
5
+ winrt-Windows.Foundation[all]==3.1.0
6
+ winrt-Windows.Foundation.Collections[all]==3.1.0
7
+ winrt-Windows.Globalization[all]==3.1.0
8
+ winrt-Windows.Services.Maps[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.Devices.Geolocation[all]==2.3.0
4
- winrt-Windows.Foundation[all]==2.3.0
5
- winrt-Windows.Foundation.Collections[all]==2.3.0
6
- winrt-Windows.Globalization[all]==2.3.0
7
- winrt-Windows.Services.Maps[all]==2.3.0
@@ -1,116 +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.devices.geolocation as windows_devices_geolocation
13
- import winrt.windows.foundation as windows_foundation
14
- import winrt.windows.foundation.collections as windows_foundation_collections
15
- import winrt.windows.globalization as windows_globalization
16
- import winrt.windows.services.maps as windows_services_maps
17
-
18
- from winrt.windows.services.maps.localsearch import LocalLocationFinderStatus
19
-
20
- Self = typing.TypeVar('Self')
21
-
22
- @typing.final
23
- class LocalCategories_Static(type):
24
- @_property
25
- def all(cls) -> str: ...
26
- @_property
27
- def bank_and_credit_unions(cls) -> str: ...
28
- @_property
29
- def eat_drink(cls) -> str: ...
30
- @_property
31
- def hospitals(cls) -> str: ...
32
- @_property
33
- def hotels_and_motels(cls) -> str: ...
34
- @_property
35
- def parking(cls) -> str: ...
36
- @_property
37
- def see_do(cls) -> str: ...
38
- @_property
39
- def shop(cls) -> str: ...
40
-
41
- @typing.final
42
- class LocalCategories(winrt.system.Object, metaclass=LocalCategories_Static):
43
- pass
44
-
45
- @typing.final
46
- class LocalLocation(winrt.system.Object):
47
- @staticmethod
48
- def _from(obj: winrt.system.Object, /) -> LocalLocation: ...
49
- @_property
50
- def address(self) -> typing.Optional[windows_services_maps.MapAddress]: ...
51
- @_property
52
- def data_attribution(self) -> str: ...
53
- @_property
54
- def description(self) -> str: ...
55
- @_property
56
- def display_name(self) -> str: ...
57
- @_property
58
- def identifier(self) -> str: ...
59
- @_property
60
- def phone_number(self) -> str: ...
61
- @_property
62
- def point(self) -> typing.Optional[windows_devices_geolocation.Geopoint]: ...
63
- @_property
64
- def category(self) -> str: ...
65
- @_property
66
- def hours_of_operation(self) -> typing.Optional[windows_foundation_collections.IVectorView[LocalLocationHoursOfOperationItem]]: ...
67
- @_property
68
- def rating_info(self) -> typing.Optional[LocalLocationRatingInfo]: ...
69
-
70
- @typing.final
71
- class LocalLocationFinder_Static(type):
72
- def find_local_locations_async(cls, search_term: str, search_area: typing.Optional[windows_devices_geolocation.Geocircle], local_category: str, max_results: winrt.system.UInt32, /) -> windows_foundation.IAsyncOperation[LocalLocationFinderResult]: ...
73
-
74
- @typing.final
75
- class LocalLocationFinder(winrt.system.Object, metaclass=LocalLocationFinder_Static):
76
- pass
77
-
78
- @typing.final
79
- class LocalLocationFinderResult(winrt.system.Object):
80
- @staticmethod
81
- def _from(obj: winrt.system.Object, /) -> LocalLocationFinderResult: ...
82
- @_property
83
- def local_locations(self) -> typing.Optional[windows_foundation_collections.IVectorView[LocalLocation]]: ...
84
- @_property
85
- def status(self) -> LocalLocationFinderStatus: ...
86
-
87
- @typing.final
88
- class LocalLocationHoursOfOperationItem(winrt.system.Object):
89
- @staticmethod
90
- def _from(obj: winrt.system.Object, /) -> LocalLocationHoursOfOperationItem: ...
91
- @_property
92
- def day(self) -> windows_globalization.DayOfWeek: ...
93
- @_property
94
- def span(self) -> datetime.timedelta: ...
95
- @_property
96
- def start(self) -> datetime.timedelta: ...
97
-
98
- @typing.final
99
- class LocalLocationRatingInfo(winrt.system.Object):
100
- @staticmethod
101
- def _from(obj: winrt.system.Object, /) -> LocalLocationRatingInfo: ...
102
- @_property
103
- def aggregate_rating(self) -> typing.Optional[typing.Optional[winrt.system.Double]]: ...
104
- @_property
105
- def provider_identifier(self) -> str: ...
106
- @_property
107
- def rating_count(self) -> typing.Optional[typing.Optional[winrt.system.Int32]]: ...
108
-
109
- @typing.final
110
- class PlaceInfoHelper_Static(type):
111
- def create_from_local_location(cls, location: typing.Optional[LocalLocation], /) -> typing.Optional[windows_services_maps.PlaceInfo]: ...
112
-
113
- @typing.final
114
- class PlaceInfoHelper(winrt.system.Object, metaclass=PlaceInfoHelper_Static):
115
- pass
116
-
@@ -1,35 +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_services_maps_localsearch
7
-
8
- __all__ = [
9
- "LocalLocationFinderStatus",
10
- "LocalCategories",
11
- "LocalLocation",
12
- "LocalLocationFinder",
13
- "LocalLocationFinderResult",
14
- "LocalLocationHoursOfOperationItem",
15
- "LocalLocationRatingInfo",
16
- "PlaceInfoHelper",
17
- ]
18
-
19
- class LocalLocationFinderStatus(enum.IntEnum):
20
- SUCCESS = 0
21
- UNKNOWN_ERROR = 1
22
- INVALID_CREDENTIALS = 2
23
- INVALID_CATEGORY = 3
24
- INVALID_SEARCH_TERM = 4
25
- INVALID_SEARCH_AREA = 5
26
- NETWORK_FAILURE = 6
27
- NOT_SUPPORTED = 7
28
-
29
- LocalCategories = _winrt_windows_services_maps_localsearch.LocalCategories
30
- LocalLocation = _winrt_windows_services_maps_localsearch.LocalLocation
31
- LocalLocationFinder = _winrt_windows_services_maps_localsearch.LocalLocationFinder
32
- LocalLocationFinderResult = _winrt_windows_services_maps_localsearch.LocalLocationFinderResult
33
- LocalLocationHoursOfOperationItem = _winrt_windows_services_maps_localsearch.LocalLocationHoursOfOperationItem
34
- LocalLocationRatingInfo = _winrt_windows_services_maps_localsearch.LocalLocationRatingInfo
35
- PlaceInfoHelper = _winrt_windows_services_maps_localsearch.PlaceInfoHelper
@@ -1,8 +0,0 @@
1
- winrt-runtime==2.3.0
2
-
3
- [all]
4
- winrt-Windows.Devices.Geolocation[all]==2.3.0
5
- winrt-Windows.Foundation[all]==2.3.0
6
- winrt-Windows.Foundation.Collections[all]==2.3.0
7
- winrt-Windows.Globalization[all]==2.3.0
8
- winrt-Windows.Services.Maps[all]==2.3.0