winrt-Windows.Services.Maps.OfflineMaps 2.2.0__tar.gz → 3.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {winrt_windows_services_maps_offlinemaps-2.2.0 → winrt_windows_services_maps_offlinemaps-3.0.0}/PKG-INFO +6 -6
- winrt_windows_services_maps_offlinemaps-3.0.0/all-requirements.txt +5 -0
- {winrt_windows_services_maps_offlinemaps-2.2.0 → winrt_windows_services_maps_offlinemaps-3.0.0}/py.Windows.Services.Maps.OfflineMaps.cpp +98 -47
- {winrt_windows_services_maps_offlinemaps-2.2.0 → winrt_windows_services_maps_offlinemaps-3.0.0}/pyproject.toml +2 -2
- winrt_windows_services_maps_offlinemaps-3.0.0/pywinrt-version.txt +1 -0
- {winrt_windows_services_maps_offlinemaps-2.2.0 → winrt_windows_services_maps_offlinemaps-3.0.0}/requirements.txt +2 -2
- {winrt_windows_services_maps_offlinemaps-2.2.0 → winrt_windows_services_maps_offlinemaps-3.0.0}/setup.py +1 -1
- winrt_windows_services_maps_offlinemaps-3.0.0/winrt/_winrt_windows_services_maps_offlinemaps.pyi +64 -0
- {winrt_windows_services_maps_offlinemaps-2.2.0 → winrt_windows_services_maps_offlinemaps-3.0.0}/winrt/windows/services/maps/offlinemaps/__init__.py +6 -5
- {winrt_windows_services_maps_offlinemaps-2.2.0 → winrt_windows_services_maps_offlinemaps-3.0.0}/winrt_Windows.Services.Maps.OfflineMaps.egg-info/PKG-INFO +6 -6
- winrt_windows_services_maps_offlinemaps-3.0.0/winrt_Windows.Services.Maps.OfflineMaps.egg-info/requires.txt +6 -0
- winrt_windows_services_maps_offlinemaps-2.2.0/all-requirements.txt +0 -5
- winrt_windows_services_maps_offlinemaps-2.2.0/pywinrt-version.txt +0 -1
- winrt_windows_services_maps_offlinemaps-2.2.0/winrt/_winrt_windows_services_maps_offlinemaps.pyi +0 -57
- winrt_windows_services_maps_offlinemaps-2.2.0/winrt_Windows.Services.Maps.OfflineMaps.egg-info/requires.txt +0 -6
- {winrt_windows_services_maps_offlinemaps-2.2.0 → winrt_windows_services_maps_offlinemaps-3.0.0}/README.md +0 -0
- {winrt_windows_services_maps_offlinemaps-2.2.0 → winrt_windows_services_maps_offlinemaps-3.0.0}/setup.cfg +0 -0
- {winrt_windows_services_maps_offlinemaps-2.2.0 → winrt_windows_services_maps_offlinemaps-3.0.0}/winrt/windows/services/maps/offlinemaps/py.typed +0 -0
- {winrt_windows_services_maps_offlinemaps-2.2.0 → winrt_windows_services_maps_offlinemaps-3.0.0}/winrt_Windows.Services.Maps.OfflineMaps.egg-info/SOURCES.txt +0 -0
- {winrt_windows_services_maps_offlinemaps-2.2.0 → winrt_windows_services_maps_offlinemaps-3.0.0}/winrt_Windows.Services.Maps.OfflineMaps.egg-info/dependency_links.txt +0 -0
- {winrt_windows_services_maps_offlinemaps-2.2.0 → winrt_windows_services_maps_offlinemaps-3.0.0}/winrt_Windows.Services.Maps.OfflineMaps.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.Services.Maps.OfflineMaps
|
|
3
|
-
Version:
|
|
3
|
+
Version: 3.0.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
@@ -10,13 +10,13 @@ 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:
|
|
13
|
+
Requires-Python: >=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==
|
|
15
|
+
Requires-Dist: winrt-runtime==3.0.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Devices.Geolocation[all]==
|
|
18
|
-
Requires-Dist: winrt-Windows.Foundation[all]==
|
|
19
|
-
Requires-Dist: winrt-Windows.Foundation.Collections[all]==
|
|
17
|
+
Requires-Dist: winrt-Windows.Devices.Geolocation[all]==3.0.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation[all]==3.0.0; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==3.0.0; extra == "all"
|
|
20
20
|
|
|
21
21
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
22
22
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// WARNING: Please don't edit this file. It was generated by Python/WinRT
|
|
1
|
+
// WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
|
|
2
2
|
|
|
3
3
|
#include "py.Windows.Services.Maps.OfflineMaps.h"
|
|
4
4
|
|
|
@@ -23,7 +23,7 @@ namespace py::cpp::Windows::Services::Maps::OfflineMaps
|
|
|
23
23
|
|
|
24
24
|
static PyObject* OfflineMapPackage_FindPackagesAsync(PyObject* /*unused*/, PyObject* args) noexcept
|
|
25
25
|
{
|
|
26
|
-
auto arg_count =
|
|
26
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
27
27
|
|
|
28
28
|
if (arg_count == 1)
|
|
29
29
|
{
|
|
@@ -44,7 +44,11 @@ namespace py::cpp::Windows::Services::Maps::OfflineMaps
|
|
|
44
44
|
|
|
45
45
|
auto param0 = py::convert_to<winrt::Windows::Devices::Geolocation::Geopoint>(args, 0);
|
|
46
46
|
|
|
47
|
-
return py::convert(
|
|
47
|
+
return py::convert([&]()
|
|
48
|
+
{
|
|
49
|
+
auto _gil = release_gil();
|
|
50
|
+
return winrt::Windows::Services::Maps::OfflineMaps::OfflineMapPackage::FindPackagesAsync(param0);
|
|
51
|
+
}());
|
|
48
52
|
}
|
|
49
53
|
catch (...)
|
|
50
54
|
{
|
|
@@ -61,7 +65,7 @@ namespace py::cpp::Windows::Services::Maps::OfflineMaps
|
|
|
61
65
|
|
|
62
66
|
static PyObject* OfflineMapPackage_FindPackagesInBoundingBoxAsync(PyObject* /*unused*/, PyObject* args) noexcept
|
|
63
67
|
{
|
|
64
|
-
auto arg_count =
|
|
68
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
65
69
|
|
|
66
70
|
if (arg_count == 1)
|
|
67
71
|
{
|
|
@@ -82,7 +86,11 @@ namespace py::cpp::Windows::Services::Maps::OfflineMaps
|
|
|
82
86
|
|
|
83
87
|
auto param0 = py::convert_to<winrt::Windows::Devices::Geolocation::GeoboundingBox>(args, 0);
|
|
84
88
|
|
|
85
|
-
return py::convert(
|
|
89
|
+
return py::convert([&]()
|
|
90
|
+
{
|
|
91
|
+
auto _gil = release_gil();
|
|
92
|
+
return winrt::Windows::Services::Maps::OfflineMaps::OfflineMapPackage::FindPackagesInBoundingBoxAsync(param0);
|
|
93
|
+
}());
|
|
86
94
|
}
|
|
87
95
|
catch (...)
|
|
88
96
|
{
|
|
@@ -99,7 +107,7 @@ namespace py::cpp::Windows::Services::Maps::OfflineMaps
|
|
|
99
107
|
|
|
100
108
|
static PyObject* OfflineMapPackage_FindPackagesInGeocircleAsync(PyObject* /*unused*/, PyObject* args) noexcept
|
|
101
109
|
{
|
|
102
|
-
auto arg_count =
|
|
110
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
103
111
|
|
|
104
112
|
if (arg_count == 1)
|
|
105
113
|
{
|
|
@@ -120,7 +128,11 @@ namespace py::cpp::Windows::Services::Maps::OfflineMaps
|
|
|
120
128
|
|
|
121
129
|
auto param0 = py::convert_to<winrt::Windows::Devices::Geolocation::Geocircle>(args, 0);
|
|
122
130
|
|
|
123
|
-
return py::convert(
|
|
131
|
+
return py::convert([&]()
|
|
132
|
+
{
|
|
133
|
+
auto _gil = release_gil();
|
|
134
|
+
return winrt::Windows::Services::Maps::OfflineMaps::OfflineMapPackage::FindPackagesInGeocircleAsync(param0);
|
|
135
|
+
}());
|
|
124
136
|
}
|
|
125
137
|
catch (...)
|
|
126
138
|
{
|
|
@@ -137,7 +149,7 @@ namespace py::cpp::Windows::Services::Maps::OfflineMaps
|
|
|
137
149
|
|
|
138
150
|
static PyObject* OfflineMapPackage_RequestStartDownloadAsync(py::wrapper::Windows::Services::Maps::OfflineMaps::OfflineMapPackage* self, PyObject* args) noexcept
|
|
139
151
|
{
|
|
140
|
-
auto arg_count =
|
|
152
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
141
153
|
|
|
142
154
|
if (arg_count == 0)
|
|
143
155
|
{
|
|
@@ -156,7 +168,11 @@ namespace py::cpp::Windows::Services::Maps::OfflineMaps
|
|
|
156
168
|
return nullptr;
|
|
157
169
|
}
|
|
158
170
|
|
|
159
|
-
return py::convert(
|
|
171
|
+
return py::convert([&]()
|
|
172
|
+
{
|
|
173
|
+
auto _gil = release_gil();
|
|
174
|
+
return self->obj.RequestStartDownloadAsync();
|
|
175
|
+
}());
|
|
160
176
|
}
|
|
161
177
|
catch (...)
|
|
162
178
|
{
|
|
@@ -188,7 +204,11 @@ namespace py::cpp::Windows::Services::Maps::OfflineMaps
|
|
|
188
204
|
return nullptr;
|
|
189
205
|
}
|
|
190
206
|
|
|
191
|
-
return py::convert(
|
|
207
|
+
return py::convert([&]()
|
|
208
|
+
{
|
|
209
|
+
auto _gil = release_gil();
|
|
210
|
+
return self->obj.DisplayName();
|
|
211
|
+
}());
|
|
192
212
|
}
|
|
193
213
|
catch (...)
|
|
194
214
|
{
|
|
@@ -214,7 +234,11 @@ namespace py::cpp::Windows::Services::Maps::OfflineMaps
|
|
|
214
234
|
return nullptr;
|
|
215
235
|
}
|
|
216
236
|
|
|
217
|
-
return py::convert(
|
|
237
|
+
return py::convert([&]()
|
|
238
|
+
{
|
|
239
|
+
auto _gil = release_gil();
|
|
240
|
+
return self->obj.EnclosingRegionName();
|
|
241
|
+
}());
|
|
218
242
|
}
|
|
219
243
|
catch (...)
|
|
220
244
|
{
|
|
@@ -240,7 +264,11 @@ namespace py::cpp::Windows::Services::Maps::OfflineMaps
|
|
|
240
264
|
return nullptr;
|
|
241
265
|
}
|
|
242
266
|
|
|
243
|
-
return py::convert(
|
|
267
|
+
return py::convert([&]()
|
|
268
|
+
{
|
|
269
|
+
auto _gil = release_gil();
|
|
270
|
+
return self->obj.EstimatedSizeInBytes();
|
|
271
|
+
}());
|
|
244
272
|
}
|
|
245
273
|
catch (...)
|
|
246
274
|
{
|
|
@@ -266,7 +294,11 @@ namespace py::cpp::Windows::Services::Maps::OfflineMaps
|
|
|
266
294
|
return nullptr;
|
|
267
295
|
}
|
|
268
296
|
|
|
269
|
-
return py::convert(
|
|
297
|
+
return py::convert([&]()
|
|
298
|
+
{
|
|
299
|
+
auto _gil = release_gil();
|
|
300
|
+
return self->obj.Status();
|
|
301
|
+
}());
|
|
270
302
|
}
|
|
271
303
|
catch (...)
|
|
272
304
|
{
|
|
@@ -294,7 +326,11 @@ namespace py::cpp::Windows::Services::Maps::OfflineMaps
|
|
|
294
326
|
|
|
295
327
|
auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Services::Maps::OfflineMaps::OfflineMapPackage, winrt::Windows::Foundation::IInspectable>>(arg);
|
|
296
328
|
|
|
297
|
-
return py::convert(
|
|
329
|
+
return py::convert([&]()
|
|
330
|
+
{
|
|
331
|
+
auto _gil = release_gil();
|
|
332
|
+
return self->obj.StatusChanged(param0);
|
|
333
|
+
}());
|
|
298
334
|
}
|
|
299
335
|
catch (...)
|
|
300
336
|
{
|
|
@@ -322,7 +358,11 @@ namespace py::cpp::Windows::Services::Maps::OfflineMaps
|
|
|
322
358
|
|
|
323
359
|
auto param0 = py::convert_to<winrt::event_token>(arg);
|
|
324
360
|
|
|
325
|
-
|
|
361
|
+
{
|
|
362
|
+
auto _gil = release_gil();
|
|
363
|
+
self->obj.StatusChanged(param0);
|
|
364
|
+
}
|
|
365
|
+
|
|
326
366
|
Py_RETURN_NONE;
|
|
327
367
|
}
|
|
328
368
|
catch (...)
|
|
@@ -362,24 +402,21 @@ namespace py::cpp::Windows::Services::Maps::OfflineMaps
|
|
|
362
402
|
{ "remove_status_changed", reinterpret_cast<PyCFunction>(OfflineMapPackage_remove_StatusChanged), METH_O, nullptr },
|
|
363
403
|
{ "_assign_array_", _assign_array_OfflineMapPackage, METH_O | METH_STATIC, nullptr },
|
|
364
404
|
{ "_from", reinterpret_cast<PyCFunction>(_from_OfflineMapPackage), METH_O | METH_STATIC, nullptr },
|
|
365
|
-
{ }
|
|
366
|
-
};
|
|
405
|
+
{ }};
|
|
367
406
|
|
|
368
407
|
static PyGetSetDef _getset_OfflineMapPackage[] = {
|
|
369
408
|
{ "display_name", reinterpret_cast<getter>(OfflineMapPackage_get_DisplayName), nullptr, nullptr, nullptr },
|
|
370
409
|
{ "enclosing_region_name", reinterpret_cast<getter>(OfflineMapPackage_get_EnclosingRegionName), nullptr, nullptr, nullptr },
|
|
371
410
|
{ "estimated_size_in_bytes", reinterpret_cast<getter>(OfflineMapPackage_get_EstimatedSizeInBytes), nullptr, nullptr, nullptr },
|
|
372
411
|
{ "status", reinterpret_cast<getter>(OfflineMapPackage_get_Status), nullptr, nullptr, nullptr },
|
|
373
|
-
{ }
|
|
374
|
-
};
|
|
412
|
+
{ }};
|
|
375
413
|
|
|
376
414
|
static PyType_Slot _type_slots_OfflineMapPackage[] = {
|
|
377
415
|
{ Py_tp_new, reinterpret_cast<void*>(_new_OfflineMapPackage) },
|
|
378
416
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_OfflineMapPackage) },
|
|
379
417
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_OfflineMapPackage) },
|
|
380
418
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_OfflineMapPackage) },
|
|
381
|
-
{ }
|
|
382
|
-
};
|
|
419
|
+
{ }};
|
|
383
420
|
|
|
384
421
|
static PyType_Spec type_spec_OfflineMapPackage = {
|
|
385
422
|
"winrt._winrt_windows_services_maps_offlinemaps.OfflineMapPackage",
|
|
@@ -389,15 +426,13 @@ namespace py::cpp::Windows::Services::Maps::OfflineMaps
|
|
|
389
426
|
_type_slots_OfflineMapPackage};
|
|
390
427
|
|
|
391
428
|
static PyGetSetDef getset_OfflineMapPackage_Static[] = {
|
|
392
|
-
{ }
|
|
393
|
-
};
|
|
429
|
+
{ }};
|
|
394
430
|
|
|
395
431
|
static PyMethodDef methods_OfflineMapPackage_Static[] = {
|
|
396
432
|
{ "find_packages_async", reinterpret_cast<PyCFunction>(OfflineMapPackage_FindPackagesAsync), METH_VARARGS, nullptr },
|
|
397
433
|
{ "find_packages_in_bounding_box_async", reinterpret_cast<PyCFunction>(OfflineMapPackage_FindPackagesInBoundingBoxAsync), METH_VARARGS, nullptr },
|
|
398
434
|
{ "find_packages_in_geocircle_async", reinterpret_cast<PyCFunction>(OfflineMapPackage_FindPackagesInGeocircleAsync), METH_VARARGS, nullptr },
|
|
399
|
-
{ }
|
|
400
|
-
};
|
|
435
|
+
{ }};
|
|
401
436
|
|
|
402
437
|
static PyType_Slot type_slots_OfflineMapPackage_Static[] =
|
|
403
438
|
{
|
|
@@ -407,14 +442,12 @@ namespace py::cpp::Windows::Services::Maps::OfflineMaps
|
|
|
407
442
|
{ }
|
|
408
443
|
};
|
|
409
444
|
|
|
410
|
-
static PyType_Spec type_spec_OfflineMapPackage_Static =
|
|
411
|
-
{
|
|
445
|
+
static PyType_Spec type_spec_OfflineMapPackage_Static = {
|
|
412
446
|
"winrt._winrt_windows_services_maps_offlinemaps.OfflineMapPackage_Static",
|
|
413
447
|
static_cast<int>(PyType_Type.tp_basicsize),
|
|
414
448
|
static_cast<int>(PyType_Type.tp_itemsize),
|
|
415
449
|
Py_TPFLAGS_DEFAULT,
|
|
416
|
-
type_slots_OfflineMapPackage_Static
|
|
417
|
-
};
|
|
450
|
+
type_slots_OfflineMapPackage_Static};
|
|
418
451
|
|
|
419
452
|
// ----- OfflineMapPackageQueryResult class --------------------
|
|
420
453
|
|
|
@@ -450,7 +483,11 @@ namespace py::cpp::Windows::Services::Maps::OfflineMaps
|
|
|
450
483
|
return nullptr;
|
|
451
484
|
}
|
|
452
485
|
|
|
453
|
-
return py::convert(
|
|
486
|
+
return py::convert([&]()
|
|
487
|
+
{
|
|
488
|
+
auto _gil = release_gil();
|
|
489
|
+
return self->obj.Packages();
|
|
490
|
+
}());
|
|
454
491
|
}
|
|
455
492
|
catch (...)
|
|
456
493
|
{
|
|
@@ -476,7 +513,11 @@ namespace py::cpp::Windows::Services::Maps::OfflineMaps
|
|
|
476
513
|
return nullptr;
|
|
477
514
|
}
|
|
478
515
|
|
|
479
|
-
return py::convert(
|
|
516
|
+
return py::convert([&]()
|
|
517
|
+
{
|
|
518
|
+
auto _gil = release_gil();
|
|
519
|
+
return self->obj.Status();
|
|
520
|
+
}());
|
|
480
521
|
}
|
|
481
522
|
catch (...)
|
|
482
523
|
{
|
|
@@ -512,22 +553,19 @@ namespace py::cpp::Windows::Services::Maps::OfflineMaps
|
|
|
512
553
|
static PyMethodDef _methods_OfflineMapPackageQueryResult[] = {
|
|
513
554
|
{ "_assign_array_", _assign_array_OfflineMapPackageQueryResult, METH_O | METH_STATIC, nullptr },
|
|
514
555
|
{ "_from", reinterpret_cast<PyCFunction>(_from_OfflineMapPackageQueryResult), METH_O | METH_STATIC, nullptr },
|
|
515
|
-
{ }
|
|
516
|
-
};
|
|
556
|
+
{ }};
|
|
517
557
|
|
|
518
558
|
static PyGetSetDef _getset_OfflineMapPackageQueryResult[] = {
|
|
519
559
|
{ "packages", reinterpret_cast<getter>(OfflineMapPackageQueryResult_get_Packages), nullptr, nullptr, nullptr },
|
|
520
560
|
{ "status", reinterpret_cast<getter>(OfflineMapPackageQueryResult_get_Status), nullptr, nullptr, nullptr },
|
|
521
|
-
{ }
|
|
522
|
-
};
|
|
561
|
+
{ }};
|
|
523
562
|
|
|
524
563
|
static PyType_Slot _type_slots_OfflineMapPackageQueryResult[] = {
|
|
525
564
|
{ Py_tp_new, reinterpret_cast<void*>(_new_OfflineMapPackageQueryResult) },
|
|
526
565
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_OfflineMapPackageQueryResult) },
|
|
527
566
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_OfflineMapPackageQueryResult) },
|
|
528
567
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_OfflineMapPackageQueryResult) },
|
|
529
|
-
{ }
|
|
530
|
-
};
|
|
568
|
+
{ }};
|
|
531
569
|
|
|
532
570
|
static PyType_Spec type_spec_OfflineMapPackageQueryResult = {
|
|
533
571
|
"winrt._winrt_windows_services_maps_offlinemaps.OfflineMapPackageQueryResult",
|
|
@@ -570,7 +608,11 @@ namespace py::cpp::Windows::Services::Maps::OfflineMaps
|
|
|
570
608
|
return nullptr;
|
|
571
609
|
}
|
|
572
610
|
|
|
573
|
-
return py::convert(
|
|
611
|
+
return py::convert([&]()
|
|
612
|
+
{
|
|
613
|
+
auto _gil = release_gil();
|
|
614
|
+
return self->obj.Status();
|
|
615
|
+
}());
|
|
574
616
|
}
|
|
575
617
|
catch (...)
|
|
576
618
|
{
|
|
@@ -606,21 +648,18 @@ namespace py::cpp::Windows::Services::Maps::OfflineMaps
|
|
|
606
648
|
static PyMethodDef _methods_OfflineMapPackageStartDownloadResult[] = {
|
|
607
649
|
{ "_assign_array_", _assign_array_OfflineMapPackageStartDownloadResult, METH_O | METH_STATIC, nullptr },
|
|
608
650
|
{ "_from", reinterpret_cast<PyCFunction>(_from_OfflineMapPackageStartDownloadResult), METH_O | METH_STATIC, nullptr },
|
|
609
|
-
{ }
|
|
610
|
-
};
|
|
651
|
+
{ }};
|
|
611
652
|
|
|
612
653
|
static PyGetSetDef _getset_OfflineMapPackageStartDownloadResult[] = {
|
|
613
654
|
{ "status", reinterpret_cast<getter>(OfflineMapPackageStartDownloadResult_get_Status), nullptr, nullptr, nullptr },
|
|
614
|
-
{ }
|
|
615
|
-
};
|
|
655
|
+
{ }};
|
|
616
656
|
|
|
617
657
|
static PyType_Slot _type_slots_OfflineMapPackageStartDownloadResult[] = {
|
|
618
658
|
{ Py_tp_new, reinterpret_cast<void*>(_new_OfflineMapPackageStartDownloadResult) },
|
|
619
659
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_OfflineMapPackageStartDownloadResult) },
|
|
620
660
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_OfflineMapPackageStartDownloadResult) },
|
|
621
661
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_OfflineMapPackageStartDownloadResult) },
|
|
622
|
-
{ }
|
|
623
|
-
};
|
|
662
|
+
{ }};
|
|
624
663
|
|
|
625
664
|
static PyType_Spec type_spec_OfflineMapPackageStartDownloadResult = {
|
|
626
665
|
"winrt._winrt_windows_services_maps_offlinemaps.OfflineMapPackageStartDownloadResult",
|
|
@@ -661,6 +700,12 @@ PyMODINIT_FUNC PyInit__winrt_windows_services_maps_offlinemaps(void) noexcept
|
|
|
661
700
|
return nullptr;
|
|
662
701
|
}
|
|
663
702
|
|
|
703
|
+
auto inspectable_meta_type = py::get_inspectable_meta_type();
|
|
704
|
+
if (!inspectable_meta_type)
|
|
705
|
+
{
|
|
706
|
+
return nullptr;
|
|
707
|
+
}
|
|
708
|
+
|
|
664
709
|
auto object_type = py::get_object_type();
|
|
665
710
|
if (!object_type)
|
|
666
711
|
{
|
|
@@ -674,7 +719,13 @@ PyMODINIT_FUNC PyInit__winrt_windows_services_maps_offlinemaps(void) noexcept
|
|
|
674
719
|
return nullptr;
|
|
675
720
|
}
|
|
676
721
|
|
|
677
|
-
py::pyobj_handle
|
|
722
|
+
py::pyobj_handle OfflineMapPackage_Static_bases{PyTuple_Pack(1, reinterpret_cast<PyObject*>(inspectable_meta_type))};
|
|
723
|
+
if (!OfflineMapPackage_Static_bases)
|
|
724
|
+
{
|
|
725
|
+
return nullptr;
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
py::pyobj_handle type_OfflineMapPackage_Static{PyType_FromSpecWithBases(&type_spec_OfflineMapPackage_Static, OfflineMapPackage_Static_bases.get())};
|
|
678
729
|
if (!type_OfflineMapPackage_Static)
|
|
679
730
|
{
|
|
680
731
|
return nullptr;
|
|
@@ -686,13 +737,13 @@ PyMODINIT_FUNC PyInit__winrt_windows_services_maps_offlinemaps(void) noexcept
|
|
|
686
737
|
return nullptr;
|
|
687
738
|
}
|
|
688
739
|
|
|
689
|
-
py::pytype_handle OfflineMapPackageQueryResult_type{py::register_python_type(module.get(), &type_spec_OfflineMapPackageQueryResult, object_bases.get(),
|
|
740
|
+
py::pytype_handle OfflineMapPackageQueryResult_type{py::register_python_type(module.get(), &type_spec_OfflineMapPackageQueryResult, object_bases.get(), inspectable_meta_type)};
|
|
690
741
|
if (!OfflineMapPackageQueryResult_type)
|
|
691
742
|
{
|
|
692
743
|
return nullptr;
|
|
693
744
|
}
|
|
694
745
|
|
|
695
|
-
py::pytype_handle OfflineMapPackageStartDownloadResult_type{py::register_python_type(module.get(), &type_spec_OfflineMapPackageStartDownloadResult, object_bases.get(),
|
|
746
|
+
py::pytype_handle OfflineMapPackageStartDownloadResult_type{py::register_python_type(module.get(), &type_spec_OfflineMapPackageStartDownloadResult, object_bases.get(), inspectable_meta_type)};
|
|
696
747
|
if (!OfflineMapPackageStartDownloadResult_type)
|
|
697
748
|
{
|
|
698
749
|
return nullptr;
|
|
@@ -16,7 +16,7 @@ classifiers = [
|
|
|
16
16
|
"Intended Audience :: Developers",
|
|
17
17
|
]
|
|
18
18
|
dynamic = ["version", "dependencies", "optional-dependencies"]
|
|
19
|
-
requires-python = ">=3.9
|
|
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="
|
|
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"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.0.0
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
|
|
2
2
|
|
|
3
|
-
winrt-runtime==
|
|
3
|
+
winrt-runtime==3.0.0
|
winrt_windows_services_maps_offlinemaps-3.0.0/winrt/_winrt_windows_services_maps_offlinemaps.pyi
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
|
|
2
|
+
|
|
3
|
+
import datetime
|
|
4
|
+
import sys
|
|
5
|
+
import types
|
|
6
|
+
import typing
|
|
7
|
+
import uuid as _uuid
|
|
8
|
+
from builtins import property as _property
|
|
9
|
+
|
|
10
|
+
import winrt._winrt
|
|
11
|
+
import winrt.system
|
|
12
|
+
import winrt.windows.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
|
+
|
|
16
|
+
from winrt.windows.services.maps.offlinemaps import OfflineMapPackageQueryStatus, OfflineMapPackageStartDownloadStatus, OfflineMapPackageStatus
|
|
17
|
+
|
|
18
|
+
Self = typing.TypeVar('Self')
|
|
19
|
+
|
|
20
|
+
@typing.final
|
|
21
|
+
class OfflineMapPackage_Static(winrt._winrt.IInspectable_Static):
|
|
22
|
+
# Windows.Foundation.IAsyncOperation`1<Windows.Services.Maps.OfflineMaps.OfflineMapPackageQueryResult> Windows.Services.Maps.OfflineMaps.OfflineMapPackage::FindPackagesAsync(Windows.Devices.Geolocation.Geopoint)
|
|
23
|
+
def find_packages_async(cls, query_point: windows_devices_geolocation.Geopoint, /) -> windows_foundation.IAsyncOperation[OfflineMapPackageQueryResult]: ...
|
|
24
|
+
# Windows.Foundation.IAsyncOperation`1<Windows.Services.Maps.OfflineMaps.OfflineMapPackageQueryResult> Windows.Services.Maps.OfflineMaps.OfflineMapPackage::FindPackagesInBoundingBoxAsync(Windows.Devices.Geolocation.GeoboundingBox)
|
|
25
|
+
def find_packages_in_bounding_box_async(cls, query_bounding_box: windows_devices_geolocation.GeoboundingBox, /) -> windows_foundation.IAsyncOperation[OfflineMapPackageQueryResult]: ...
|
|
26
|
+
# Windows.Foundation.IAsyncOperation`1<Windows.Services.Maps.OfflineMaps.OfflineMapPackageQueryResult> Windows.Services.Maps.OfflineMaps.OfflineMapPackage::FindPackagesInGeocircleAsync(Windows.Devices.Geolocation.Geocircle)
|
|
27
|
+
def find_packages_in_geocircle_async(cls, query_circle: windows_devices_geolocation.Geocircle, /) -> windows_foundation.IAsyncOperation[OfflineMapPackageQueryResult]: ...
|
|
28
|
+
|
|
29
|
+
@typing.final
|
|
30
|
+
class OfflineMapPackage(winrt.system.Object, metaclass=OfflineMapPackage_Static):
|
|
31
|
+
# Windows.Foundation.IAsyncOperation`1<Windows.Services.Maps.OfflineMaps.OfflineMapPackageStartDownloadResult> Windows.Services.Maps.OfflineMaps.OfflineMapPackage::RequestStartDownloadAsync()
|
|
32
|
+
def request_start_download_async(self) -> windows_foundation.IAsyncOperation[OfflineMapPackageStartDownloadResult]: ...
|
|
33
|
+
# Windows.Foundation.EventRegistrationToken Windows.Services.Maps.OfflineMaps.OfflineMapPackage::add_StatusChanged(Windows.Foundation.TypedEventHandler`2<Windows.Services.Maps.OfflineMaps.OfflineMapPackage,System.Object>)
|
|
34
|
+
def add_status_changed(self, value: windows_foundation.TypedEventHandler[OfflineMapPackage, winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
|
|
35
|
+
# System.Void Windows.Services.Maps.OfflineMaps.OfflineMapPackage::remove_StatusChanged(Windows.Foundation.EventRegistrationToken)
|
|
36
|
+
def remove_status_changed(self, token: typing.Union[windows_foundation.EventRegistrationToken, typing.Tuple[winrt.system.Int64]], /) -> None: ...
|
|
37
|
+
# System.String Windows.Services.Maps.OfflineMaps.OfflineMapPackage::get_DisplayName()
|
|
38
|
+
@_property
|
|
39
|
+
def display_name(self) -> str: ...
|
|
40
|
+
# System.String Windows.Services.Maps.OfflineMaps.OfflineMapPackage::get_EnclosingRegionName()
|
|
41
|
+
@_property
|
|
42
|
+
def enclosing_region_name(self) -> str: ...
|
|
43
|
+
# System.UInt64 Windows.Services.Maps.OfflineMaps.OfflineMapPackage::get_EstimatedSizeInBytes()
|
|
44
|
+
@_property
|
|
45
|
+
def estimated_size_in_bytes(self) -> winrt.system.UInt64: ...
|
|
46
|
+
# Windows.Services.Maps.OfflineMaps.OfflineMapPackageStatus Windows.Services.Maps.OfflineMaps.OfflineMapPackage::get_Status()
|
|
47
|
+
@_property
|
|
48
|
+
def status(self) -> OfflineMapPackageStatus: ...
|
|
49
|
+
|
|
50
|
+
@typing.final
|
|
51
|
+
class OfflineMapPackageQueryResult(winrt.system.Object):
|
|
52
|
+
# Windows.Foundation.Collections.IVectorView`1<Windows.Services.Maps.OfflineMaps.OfflineMapPackage> Windows.Services.Maps.OfflineMaps.OfflineMapPackageQueryResult::get_Packages()
|
|
53
|
+
@_property
|
|
54
|
+
def packages(self) -> typing.Sequence[OfflineMapPackage]: ...
|
|
55
|
+
# Windows.Services.Maps.OfflineMaps.OfflineMapPackageQueryStatus Windows.Services.Maps.OfflineMaps.OfflineMapPackageQueryResult::get_Status()
|
|
56
|
+
@_property
|
|
57
|
+
def status(self) -> OfflineMapPackageQueryStatus: ...
|
|
58
|
+
|
|
59
|
+
@typing.final
|
|
60
|
+
class OfflineMapPackageStartDownloadResult(winrt.system.Object):
|
|
61
|
+
# Windows.Services.Maps.OfflineMaps.OfflineMapPackageStartDownloadStatus Windows.Services.Maps.OfflineMaps.OfflineMapPackageStartDownloadResult::get_Status()
|
|
62
|
+
@_property
|
|
63
|
+
def status(self) -> OfflineMapPackageStartDownloadStatus: ...
|
|
64
|
+
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
|
|
2
2
|
|
|
3
3
|
import enum
|
|
4
4
|
|
|
5
5
|
import winrt.system
|
|
6
|
-
from winrt import
|
|
6
|
+
from winrt._winrt_windows_services_maps_offlinemaps import (
|
|
7
|
+
OfflineMapPackage,
|
|
8
|
+
OfflineMapPackageQueryResult,
|
|
9
|
+
OfflineMapPackageStartDownloadResult,
|
|
10
|
+
)
|
|
7
11
|
|
|
8
12
|
__all__ = [
|
|
9
13
|
"OfflineMapPackageQueryStatus",
|
|
@@ -32,6 +36,3 @@ class OfflineMapPackageStatus(enum.IntEnum):
|
|
|
32
36
|
DOWNLOADED = 2
|
|
33
37
|
DELETING = 3
|
|
34
38
|
|
|
35
|
-
OfflineMapPackage = _winrt_windows_services_maps_offlinemaps.OfflineMapPackage
|
|
36
|
-
OfflineMapPackageQueryResult = _winrt_windows_services_maps_offlinemaps.OfflineMapPackageQueryResult
|
|
37
|
-
OfflineMapPackageStartDownloadResult = _winrt_windows_services_maps_offlinemaps.OfflineMapPackageStartDownloadResult
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.Services.Maps.OfflineMaps
|
|
3
|
-
Version:
|
|
3
|
+
Version: 3.0.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
@@ -10,13 +10,13 @@ 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:
|
|
13
|
+
Requires-Python: >=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==
|
|
15
|
+
Requires-Dist: winrt-runtime==3.0.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Devices.Geolocation[all]==
|
|
18
|
-
Requires-Dist: winrt-Windows.Foundation[all]==
|
|
19
|
-
Requires-Dist: winrt-Windows.Foundation.Collections[all]==
|
|
17
|
+
Requires-Dist: winrt-Windows.Devices.Geolocation[all]==3.0.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation[all]==3.0.0; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==3.0.0; extra == "all"
|
|
20
20
|
|
|
21
21
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
22
22
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2.2.0
|
winrt_windows_services_maps_offlinemaps-2.2.0/winrt/_winrt_windows_services_maps_offlinemaps.pyi
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.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
|
-
|
|
16
|
-
from winrt.windows.services.maps.offlinemaps import OfflineMapPackageQueryStatus, OfflineMapPackageStartDownloadStatus, OfflineMapPackageStatus
|
|
17
|
-
|
|
18
|
-
Self = typing.TypeVar('Self')
|
|
19
|
-
|
|
20
|
-
@typing.final
|
|
21
|
-
class OfflineMapPackage_Static(type):
|
|
22
|
-
def find_packages_async(cls, query_point: typing.Optional[windows_devices_geolocation.Geopoint], /) -> windows_foundation.IAsyncOperation[OfflineMapPackageQueryResult]: ...
|
|
23
|
-
def find_packages_in_bounding_box_async(cls, query_bounding_box: typing.Optional[windows_devices_geolocation.GeoboundingBox], /) -> windows_foundation.IAsyncOperation[OfflineMapPackageQueryResult]: ...
|
|
24
|
-
def find_packages_in_geocircle_async(cls, query_circle: typing.Optional[windows_devices_geolocation.Geocircle], /) -> windows_foundation.IAsyncOperation[OfflineMapPackageQueryResult]: ...
|
|
25
|
-
|
|
26
|
-
@typing.final
|
|
27
|
-
class OfflineMapPackage(winrt.system.Object, metaclass=OfflineMapPackage_Static):
|
|
28
|
-
@staticmethod
|
|
29
|
-
def _from(obj: winrt.system.Object, /) -> OfflineMapPackage: ...
|
|
30
|
-
def request_start_download_async(self) -> windows_foundation.IAsyncOperation[OfflineMapPackageStartDownloadResult]: ...
|
|
31
|
-
def add_status_changed(self, value: windows_foundation.TypedEventHandler[OfflineMapPackage, winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
|
|
32
|
-
def remove_status_changed(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
33
|
-
@_property
|
|
34
|
-
def display_name(self) -> str: ...
|
|
35
|
-
@_property
|
|
36
|
-
def enclosing_region_name(self) -> str: ...
|
|
37
|
-
@_property
|
|
38
|
-
def estimated_size_in_bytes(self) -> winrt.system.UInt64: ...
|
|
39
|
-
@_property
|
|
40
|
-
def status(self) -> OfflineMapPackageStatus: ...
|
|
41
|
-
|
|
42
|
-
@typing.final
|
|
43
|
-
class OfflineMapPackageQueryResult(winrt.system.Object):
|
|
44
|
-
@staticmethod
|
|
45
|
-
def _from(obj: winrt.system.Object, /) -> OfflineMapPackageQueryResult: ...
|
|
46
|
-
@_property
|
|
47
|
-
def packages(self) -> typing.Optional[windows_foundation_collections.IVectorView[OfflineMapPackage]]: ...
|
|
48
|
-
@_property
|
|
49
|
-
def status(self) -> OfflineMapPackageQueryStatus: ...
|
|
50
|
-
|
|
51
|
-
@typing.final
|
|
52
|
-
class OfflineMapPackageStartDownloadResult(winrt.system.Object):
|
|
53
|
-
@staticmethod
|
|
54
|
-
def _from(obj: winrt.system.Object, /) -> OfflineMapPackageStartDownloadResult: ...
|
|
55
|
-
@_property
|
|
56
|
-
def status(self) -> OfflineMapPackageStartDownloadStatus: ...
|
|
57
|
-
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|