winrt-Windows.ApplicationModel.Resources.Management 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.
Files changed (22) hide show
  1. {winrt_windows_applicationmodel_resources_management-2.2.0 → winrt_windows_applicationmodel_resources_management-3.0.0}/PKG-INFO +5 -5
  2. winrt_windows_applicationmodel_resources_management-3.0.0/all-requirements.txt +4 -0
  3. {winrt_windows_applicationmodel_resources_management-2.2.0 → winrt_windows_applicationmodel_resources_management-3.0.0}/py.Windows.ApplicationModel.Resources.Management.cpp +74 -37
  4. {winrt_windows_applicationmodel_resources_management-2.2.0 → winrt_windows_applicationmodel_resources_management-3.0.0}/pyproject.toml +2 -2
  5. winrt_windows_applicationmodel_resources_management-3.0.0/pywinrt-version.txt +1 -0
  6. {winrt_windows_applicationmodel_resources_management-2.2.0 → winrt_windows_applicationmodel_resources_management-3.0.0}/requirements.txt +2 -2
  7. {winrt_windows_applicationmodel_resources_management-2.2.0 → winrt_windows_applicationmodel_resources_management-3.0.0}/setup.py +1 -1
  8. winrt_windows_applicationmodel_resources_management-3.0.0/winrt/_winrt_windows_applicationmodel_resources_management.pyi +60 -0
  9. winrt_windows_applicationmodel_resources_management-3.0.0/winrt/windows/applicationmodel/resources/management/__init__.py +23 -0
  10. {winrt_windows_applicationmodel_resources_management-2.2.0 → winrt_windows_applicationmodel_resources_management-3.0.0}/winrt_Windows.ApplicationModel.Resources.Management.egg-info/PKG-INFO +5 -5
  11. winrt_windows_applicationmodel_resources_management-3.0.0/winrt_Windows.ApplicationModel.Resources.Management.egg-info/requires.txt +5 -0
  12. winrt_windows_applicationmodel_resources_management-2.2.0/all-requirements.txt +0 -4
  13. winrt_windows_applicationmodel_resources_management-2.2.0/pywinrt-version.txt +0 -1
  14. winrt_windows_applicationmodel_resources_management-2.2.0/winrt/_winrt_windows_applicationmodel_resources_management.pyi +0 -54
  15. winrt_windows_applicationmodel_resources_management-2.2.0/winrt/windows/applicationmodel/resources/management/__init__.py +0 -22
  16. winrt_windows_applicationmodel_resources_management-2.2.0/winrt_Windows.ApplicationModel.Resources.Management.egg-info/requires.txt +0 -5
  17. {winrt_windows_applicationmodel_resources_management-2.2.0 → winrt_windows_applicationmodel_resources_management-3.0.0}/README.md +0 -0
  18. {winrt_windows_applicationmodel_resources_management-2.2.0 → winrt_windows_applicationmodel_resources_management-3.0.0}/setup.cfg +0 -0
  19. {winrt_windows_applicationmodel_resources_management-2.2.0 → winrt_windows_applicationmodel_resources_management-3.0.0}/winrt/windows/applicationmodel/resources/management/py.typed +0 -0
  20. {winrt_windows_applicationmodel_resources_management-2.2.0 → winrt_windows_applicationmodel_resources_management-3.0.0}/winrt_Windows.ApplicationModel.Resources.Management.egg-info/SOURCES.txt +0 -0
  21. {winrt_windows_applicationmodel_resources_management-2.2.0 → winrt_windows_applicationmodel_resources_management-3.0.0}/winrt_Windows.ApplicationModel.Resources.Management.egg-info/dependency_links.txt +0 -0
  22. {winrt_windows_applicationmodel_resources_management-2.2.0 → winrt_windows_applicationmodel_resources_management-3.0.0}/winrt_Windows.ApplicationModel.Resources.Management.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.ApplicationModel.Resources.Management
3
- Version: 2.2.0
3
+ Version: 3.0.0
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
5
  License: MIT
6
6
  Project-URL: Documentation, https://pywinrt.readthedocs.io
@@ -10,12 +10,12 @@ Classifier: Operating System :: Microsoft :: Windows
10
10
  Classifier: Programming Language :: Python :: 3
11
11
  Classifier: Programming Language :: Python :: Implementation :: CPython
12
12
  Classifier: Intended Audience :: Developers
13
- Requires-Python: <3.14,>=3.9
13
+ Requires-Python: >=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==2.2.0
15
+ Requires-Dist: winrt-runtime==3.0.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.Foundation[all]==2.2.0; extra == "all"
18
- Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.2.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.Foundation[all]==3.0.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Foundation.Collections[all]==3.0.0; extra == "all"
19
19
 
20
20
  <!-- warning: Please don't edit this file. It was automatically generated. -->
21
21
 
@@ -0,0 +1,4 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
2
+
3
+ winrt-Windows.Foundation[all]==3.0.0
4
+ winrt-Windows.Foundation.Collections[all]==3.0.0
@@ -1,4 +1,4 @@
1
- // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
1
+ // WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
2
2
 
3
3
  #include "py.Windows.ApplicationModel.Resources.Management.h"
4
4
 
@@ -23,7 +23,7 @@ namespace py::cpp::Windows::ApplicationModel::Resources::Management
23
23
 
24
24
  static PyObject* IndexedResourceCandidate_GetQualifierValue(py::wrapper::Windows::ApplicationModel::Resources::Management::IndexedResourceCandidate* 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 == 1)
29
29
  {
@@ -44,7 +44,11 @@ namespace py::cpp::Windows::ApplicationModel::Resources::Management
44
44
 
45
45
  auto param0 = py::convert_to<winrt::hstring>(args, 0);
46
46
 
47
- return py::convert(self->obj.GetQualifierValue(param0));
47
+ return py::convert([&]()
48
+ {
49
+ auto _gil = release_gil();
50
+ return self->obj.GetQualifierValue(param0);
51
+ }());
48
52
  }
49
53
  catch (...)
50
54
  {
@@ -76,7 +80,11 @@ namespace py::cpp::Windows::ApplicationModel::Resources::Management
76
80
  return nullptr;
77
81
  }
78
82
 
79
- return py::convert(self->obj.Metadata());
83
+ return py::convert([&]()
84
+ {
85
+ auto _gil = release_gil();
86
+ return self->obj.Metadata();
87
+ }());
80
88
  }
81
89
  catch (...)
82
90
  {
@@ -102,7 +110,11 @@ namespace py::cpp::Windows::ApplicationModel::Resources::Management
102
110
  return nullptr;
103
111
  }
104
112
 
105
- return py::convert(self->obj.Qualifiers());
113
+ return py::convert([&]()
114
+ {
115
+ auto _gil = release_gil();
116
+ return self->obj.Qualifiers();
117
+ }());
106
118
  }
107
119
  catch (...)
108
120
  {
@@ -128,7 +140,11 @@ namespace py::cpp::Windows::ApplicationModel::Resources::Management
128
140
  return nullptr;
129
141
  }
130
142
 
131
- return py::convert(self->obj.Type());
143
+ return py::convert([&]()
144
+ {
145
+ auto _gil = release_gil();
146
+ return self->obj.Type();
147
+ }());
132
148
  }
133
149
  catch (...)
134
150
  {
@@ -154,7 +170,11 @@ namespace py::cpp::Windows::ApplicationModel::Resources::Management
154
170
  return nullptr;
155
171
  }
156
172
 
157
- return py::convert(self->obj.Uri());
173
+ return py::convert([&]()
174
+ {
175
+ auto _gil = release_gil();
176
+ return self->obj.Uri();
177
+ }());
158
178
  }
159
179
  catch (...)
160
180
  {
@@ -180,7 +200,11 @@ namespace py::cpp::Windows::ApplicationModel::Resources::Management
180
200
  return nullptr;
181
201
  }
182
202
 
183
- return py::convert(self->obj.ValueAsString());
203
+ return py::convert([&]()
204
+ {
205
+ auto _gil = release_gil();
206
+ return self->obj.ValueAsString();
207
+ }());
184
208
  }
185
209
  catch (...)
186
210
  {
@@ -217,8 +241,7 @@ namespace py::cpp::Windows::ApplicationModel::Resources::Management
217
241
  { "get_qualifier_value", reinterpret_cast<PyCFunction>(IndexedResourceCandidate_GetQualifierValue), METH_VARARGS, nullptr },
218
242
  { "_assign_array_", _assign_array_IndexedResourceCandidate, METH_O | METH_STATIC, nullptr },
219
243
  { "_from", reinterpret_cast<PyCFunction>(_from_IndexedResourceCandidate), METH_O | METH_STATIC, nullptr },
220
- { }
221
- };
244
+ { }};
222
245
 
223
246
  static PyGetSetDef _getset_IndexedResourceCandidate[] = {
224
247
  { "metadata", reinterpret_cast<getter>(IndexedResourceCandidate_get_Metadata), nullptr, nullptr, nullptr },
@@ -226,16 +249,14 @@ namespace py::cpp::Windows::ApplicationModel::Resources::Management
226
249
  { "type", reinterpret_cast<getter>(IndexedResourceCandidate_get_Type), nullptr, nullptr, nullptr },
227
250
  { "uri", reinterpret_cast<getter>(IndexedResourceCandidate_get_Uri), nullptr, nullptr, nullptr },
228
251
  { "value_as_string", reinterpret_cast<getter>(IndexedResourceCandidate_get_ValueAsString), nullptr, nullptr, nullptr },
229
- { }
230
- };
252
+ { }};
231
253
 
232
254
  static PyType_Slot _type_slots_IndexedResourceCandidate[] = {
233
255
  { Py_tp_new, reinterpret_cast<void*>(_new_IndexedResourceCandidate) },
234
256
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_IndexedResourceCandidate) },
235
257
  { Py_tp_methods, reinterpret_cast<void*>(_methods_IndexedResourceCandidate) },
236
258
  { Py_tp_getset, reinterpret_cast<void*>(_getset_IndexedResourceCandidate) },
237
- { }
238
- };
259
+ { }};
239
260
 
240
261
  static PyType_Spec type_spec_IndexedResourceCandidate = {
241
262
  "winrt._winrt_windows_applicationmodel_resources_management.IndexedResourceCandidate",
@@ -278,7 +299,11 @@ namespace py::cpp::Windows::ApplicationModel::Resources::Management
278
299
  return nullptr;
279
300
  }
280
301
 
281
- return py::convert(self->obj.QualifierName());
302
+ return py::convert([&]()
303
+ {
304
+ auto _gil = release_gil();
305
+ return self->obj.QualifierName();
306
+ }());
282
307
  }
283
308
  catch (...)
284
309
  {
@@ -304,7 +329,11 @@ namespace py::cpp::Windows::ApplicationModel::Resources::Management
304
329
  return nullptr;
305
330
  }
306
331
 
307
- return py::convert(self->obj.QualifierValue());
332
+ return py::convert([&]()
333
+ {
334
+ auto _gil = release_gil();
335
+ return self->obj.QualifierValue();
336
+ }());
308
337
  }
309
338
  catch (...)
310
339
  {
@@ -340,22 +369,19 @@ namespace py::cpp::Windows::ApplicationModel::Resources::Management
340
369
  static PyMethodDef _methods_IndexedResourceQualifier[] = {
341
370
  { "_assign_array_", _assign_array_IndexedResourceQualifier, METH_O | METH_STATIC, nullptr },
342
371
  { "_from", reinterpret_cast<PyCFunction>(_from_IndexedResourceQualifier), METH_O | METH_STATIC, nullptr },
343
- { }
344
- };
372
+ { }};
345
373
 
346
374
  static PyGetSetDef _getset_IndexedResourceQualifier[] = {
347
375
  { "qualifier_name", reinterpret_cast<getter>(IndexedResourceQualifier_get_QualifierName), nullptr, nullptr, nullptr },
348
376
  { "qualifier_value", reinterpret_cast<getter>(IndexedResourceQualifier_get_QualifierValue), nullptr, nullptr, nullptr },
349
- { }
350
- };
377
+ { }};
351
378
 
352
379
  static PyType_Slot _type_slots_IndexedResourceQualifier[] = {
353
380
  { Py_tp_new, reinterpret_cast<void*>(_new_IndexedResourceQualifier) },
354
381
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_IndexedResourceQualifier) },
355
382
  { Py_tp_methods, reinterpret_cast<void*>(_methods_IndexedResourceQualifier) },
356
383
  { Py_tp_getset, reinterpret_cast<void*>(_getset_IndexedResourceQualifier) },
357
- { }
358
- };
384
+ { }};
359
385
 
360
386
  static PyType_Spec type_spec_IndexedResourceQualifier = {
361
387
  "winrt._winrt_windows_applicationmodel_resources_management.IndexedResourceQualifier",
@@ -368,13 +394,13 @@ namespace py::cpp::Windows::ApplicationModel::Resources::Management
368
394
 
369
395
  static PyObject* _new_ResourceIndexer(PyTypeObject* type, PyObject* args, PyObject* kwds) noexcept
370
396
  {
371
- if (kwds != nullptr)
397
+ if (kwds)
372
398
  {
373
399
  py::set_invalid_kwd_args_error();
374
400
  return nullptr;
375
401
  }
376
402
 
377
- auto arg_count = PyTuple_Size(args);
403
+ auto arg_count = PyTuple_GET_SIZE(args);
378
404
  if (arg_count == 2)
379
405
  {
380
406
  try
@@ -423,7 +449,7 @@ namespace py::cpp::Windows::ApplicationModel::Resources::Management
423
449
 
424
450
  static PyObject* ResourceIndexer_IndexFileContentsAsync(py::wrapper::Windows::ApplicationModel::Resources::Management::ResourceIndexer* self, PyObject* args) noexcept
425
451
  {
426
- auto arg_count = PyTuple_Size(args);
452
+ auto arg_count = PyTuple_GET_SIZE(args);
427
453
 
428
454
  if (arg_count == 1)
429
455
  {
@@ -444,7 +470,11 @@ namespace py::cpp::Windows::ApplicationModel::Resources::Management
444
470
 
445
471
  auto param0 = py::convert_to<winrt::Windows::Foundation::Uri>(args, 0);
446
472
 
447
- return py::convert(self->obj.IndexFileContentsAsync(param0));
473
+ return py::convert([&]()
474
+ {
475
+ auto _gil = release_gil();
476
+ return self->obj.IndexFileContentsAsync(param0);
477
+ }());
448
478
  }
449
479
  catch (...)
450
480
  {
@@ -461,7 +491,7 @@ namespace py::cpp::Windows::ApplicationModel::Resources::Management
461
491
 
462
492
  static PyObject* ResourceIndexer_IndexFilePath(py::wrapper::Windows::ApplicationModel::Resources::Management::ResourceIndexer* self, PyObject* args) noexcept
463
493
  {
464
- auto arg_count = PyTuple_Size(args);
494
+ auto arg_count = PyTuple_GET_SIZE(args);
465
495
 
466
496
  if (arg_count == 1)
467
497
  {
@@ -482,7 +512,11 @@ namespace py::cpp::Windows::ApplicationModel::Resources::Management
482
512
 
483
513
  auto param0 = py::convert_to<winrt::Windows::Foundation::Uri>(args, 0);
484
514
 
485
- return py::convert(self->obj.IndexFilePath(param0));
515
+ return py::convert([&]()
516
+ {
517
+ auto _gil = release_gil();
518
+ return self->obj.IndexFilePath(param0);
519
+ }());
486
520
  }
487
521
  catch (...)
488
522
  {
@@ -526,20 +560,17 @@ namespace py::cpp::Windows::ApplicationModel::Resources::Management
526
560
  { "index_file_path", reinterpret_cast<PyCFunction>(ResourceIndexer_IndexFilePath), METH_VARARGS, nullptr },
527
561
  { "_assign_array_", _assign_array_ResourceIndexer, METH_O | METH_STATIC, nullptr },
528
562
  { "_from", reinterpret_cast<PyCFunction>(_from_ResourceIndexer), METH_O | METH_STATIC, nullptr },
529
- { }
530
- };
563
+ { }};
531
564
 
532
565
  static PyGetSetDef _getset_ResourceIndexer[] = {
533
- { }
534
- };
566
+ { }};
535
567
 
536
568
  static PyType_Slot _type_slots_ResourceIndexer[] = {
537
569
  { Py_tp_new, reinterpret_cast<void*>(_new_ResourceIndexer) },
538
570
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_ResourceIndexer) },
539
571
  { Py_tp_methods, reinterpret_cast<void*>(_methods_ResourceIndexer) },
540
572
  { Py_tp_getset, reinterpret_cast<void*>(_getset_ResourceIndexer) },
541
- { }
542
- };
573
+ { }};
543
574
 
544
575
  static PyType_Spec type_spec_ResourceIndexer = {
545
576
  "winrt._winrt_windows_applicationmodel_resources_management.ResourceIndexer",
@@ -580,6 +611,12 @@ PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_resources_management(void)
580
611
  return nullptr;
581
612
  }
582
613
 
614
+ auto inspectable_meta_type = py::get_inspectable_meta_type();
615
+ if (!inspectable_meta_type)
616
+ {
617
+ return nullptr;
618
+ }
619
+
583
620
  auto object_type = py::get_object_type();
584
621
  if (!object_type)
585
622
  {
@@ -593,19 +630,19 @@ PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_resources_management(void)
593
630
  return nullptr;
594
631
  }
595
632
 
596
- py::pytype_handle IndexedResourceCandidate_type{py::register_python_type(module.get(), &type_spec_IndexedResourceCandidate, object_bases.get(), nullptr)};
633
+ py::pytype_handle IndexedResourceCandidate_type{py::register_python_type(module.get(), &type_spec_IndexedResourceCandidate, object_bases.get(), inspectable_meta_type)};
597
634
  if (!IndexedResourceCandidate_type)
598
635
  {
599
636
  return nullptr;
600
637
  }
601
638
 
602
- py::pytype_handle IndexedResourceQualifier_type{py::register_python_type(module.get(), &type_spec_IndexedResourceQualifier, object_bases.get(), nullptr)};
639
+ py::pytype_handle IndexedResourceQualifier_type{py::register_python_type(module.get(), &type_spec_IndexedResourceQualifier, object_bases.get(), inspectable_meta_type)};
603
640
  if (!IndexedResourceQualifier_type)
604
641
  {
605
642
  return nullptr;
606
643
  }
607
644
 
608
- py::pytype_handle ResourceIndexer_type{py::register_python_type(module.get(), &type_spec_ResourceIndexer, object_bases.get(), nullptr)};
645
+ py::pytype_handle ResourceIndexer_type{py::register_python_type(module.get(), &type_spec_ResourceIndexer, object_bases.get(), inspectable_meta_type)};
609
646
  if (!ResourceIndexer_type)
610
647
  {
611
648
  return nullptr;
@@ -16,7 +16,7 @@ classifiers = [
16
16
  "Intended Audience :: Developers",
17
17
  ]
18
18
  dynamic = ["version", "dependencies", "optional-dependencies"]
19
- requires-python = ">=3.9,<3.14"
19
+ requires-python = ">=3.9"
20
20
 
21
21
  [project.urls]
22
22
  # Homepage = "https://github.com/pywinrt/pywinrt"
@@ -34,7 +34,7 @@ optional-dependencies.all = { file = "all-requirements.txt" }
34
34
 
35
35
  [tool.cibuildwheel]
36
36
  # use local winrt-sdk build dependency
37
- environment = { PYTHONPATH="../winrt-sdk/src" }
37
+ environment = { PYTHONPATH="../../winrt-sdk/src" }
38
38
  # don't install winrt-sdk from PyPI
39
39
  build-frontend = { name = "build[uv]", args = ["--skip-dependency-check", "--no-isolation"] }
40
40
  before-build = "uv pip install setuptools"
@@ -1,3 +1,3 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
2
2
 
3
- winrt-runtime==2.2.0
3
+ winrt-runtime==3.0.0
@@ -19,7 +19,7 @@ class build_ext_ex(build_ext):
19
19
 
20
20
 
21
21
  setup(
22
- cmdclass = {'build_ext': build_ext_ex},
22
+ cmdclass={"build_ext": build_ext_ex},
23
23
  ext_modules=[
24
24
  Extension(
25
25
  "winrt._winrt_windows_applicationmodel_resources_management",
@@ -0,0 +1,60 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
2
+
3
+ import datetime
4
+ import sys
5
+ import types
6
+ import typing
7
+ import uuid as _uuid
8
+ from builtins import property as _property
9
+
10
+ import winrt._winrt
11
+ import winrt.system
12
+ import winrt.windows.foundation as windows_foundation
13
+ import winrt.windows.foundation.collections as windows_foundation_collections
14
+
15
+ from winrt.windows.applicationmodel.resources.management import IndexedResourceType
16
+
17
+ Self = typing.TypeVar('Self')
18
+
19
+ @typing.final
20
+ class IndexedResourceCandidate(winrt.system.Object):
21
+ # System.String Windows.ApplicationModel.Resources.Management.IndexedResourceCandidate::GetQualifierValue(System.String)
22
+ def get_qualifier_value(self, qualifier_name: str, /) -> str: ...
23
+ # Windows.Foundation.Collections.IMapView`2<System.String,System.String> Windows.ApplicationModel.Resources.Management.IndexedResourceCandidate::get_Metadata()
24
+ @_property
25
+ def metadata(self) -> typing.Mapping[str, str]: ...
26
+ # Windows.Foundation.Collections.IVectorView`1<Windows.ApplicationModel.Resources.Management.IndexedResourceQualifier> Windows.ApplicationModel.Resources.Management.IndexedResourceCandidate::get_Qualifiers()
27
+ @_property
28
+ def qualifiers(self) -> typing.Sequence[IndexedResourceQualifier]: ...
29
+ # Windows.ApplicationModel.Resources.Management.IndexedResourceType Windows.ApplicationModel.Resources.Management.IndexedResourceCandidate::get_Type()
30
+ @_property
31
+ def type(self) -> IndexedResourceType: ...
32
+ # Windows.Foundation.Uri Windows.ApplicationModel.Resources.Management.IndexedResourceCandidate::get_Uri()
33
+ @_property
34
+ def uri(self) -> windows_foundation.Uri: ...
35
+ # System.String Windows.ApplicationModel.Resources.Management.IndexedResourceCandidate::get_ValueAsString()
36
+ @_property
37
+ def value_as_string(self) -> str: ...
38
+
39
+ @typing.final
40
+ class IndexedResourceQualifier(winrt.system.Object):
41
+ # System.String Windows.ApplicationModel.Resources.Management.IndexedResourceQualifier::get_QualifierName()
42
+ @_property
43
+ def qualifier_name(self) -> str: ...
44
+ # System.String Windows.ApplicationModel.Resources.Management.IndexedResourceQualifier::get_QualifierValue()
45
+ @_property
46
+ def qualifier_value(self) -> str: ...
47
+
48
+ @typing.final
49
+ class ResourceIndexer(winrt.system.Object):
50
+ @typing.overload
51
+ def __new__(cls: typing.Type[Self], project_root: windows_foundation.Uri, extension_dll_path: windows_foundation.Uri) -> Self: ...
52
+ @typing.overload
53
+ def __new__(cls: typing.Type[Self], project_root: windows_foundation.Uri) -> Self: ...
54
+ # Windows.Foundation.IAsyncOperation`1<Windows.Foundation.Collections.IVectorView`1<Windows.ApplicationModel.Resources.Management.IndexedResourceCandidate>> Windows.ApplicationModel.Resources.Management.ResourceIndexer::IndexFileContentsAsync(Windows.Foundation.Uri)
55
+ # @deprecated("Use IndexFilePath in mrmsupport.dll instead of IResourceIndexer. For more info, see MSDN.")
56
+ def index_file_contents_async(self, file: windows_foundation.Uri, /) -> windows_foundation.IAsyncOperation[typing.Sequence[IndexedResourceCandidate]]: ...
57
+ # Windows.ApplicationModel.Resources.Management.IndexedResourceCandidate Windows.ApplicationModel.Resources.Management.ResourceIndexer::IndexFilePath(Windows.Foundation.Uri)
58
+ # @deprecated("Use IndexFilePath in mrmsupport.dll instead of IResourceIndexer. For more info, see MSDN.")
59
+ def index_file_path(self, file_path: windows_foundation.Uri, /) -> IndexedResourceCandidate: ...
60
+
@@ -0,0 +1,23 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
2
+
3
+ import enum
4
+
5
+ import winrt.system
6
+ from winrt._winrt_windows_applicationmodel_resources_management import (
7
+ IndexedResourceCandidate,
8
+ IndexedResourceQualifier,
9
+ ResourceIndexer,
10
+ )
11
+
12
+ __all__ = [
13
+ "IndexedResourceType",
14
+ "IndexedResourceCandidate",
15
+ "IndexedResourceQualifier",
16
+ "ResourceIndexer",
17
+ ]
18
+
19
+ class IndexedResourceType(enum.IntEnum):
20
+ STRING = 0
21
+ PATH = 1
22
+ EMBEDDED_DATA = 2
23
+
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.ApplicationModel.Resources.Management
3
- Version: 2.2.0
3
+ Version: 3.0.0
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
5
  License: MIT
6
6
  Project-URL: Documentation, https://pywinrt.readthedocs.io
@@ -10,12 +10,12 @@ Classifier: Operating System :: Microsoft :: Windows
10
10
  Classifier: Programming Language :: Python :: 3
11
11
  Classifier: Programming Language :: Python :: Implementation :: CPython
12
12
  Classifier: Intended Audience :: Developers
13
- Requires-Python: <3.14,>=3.9
13
+ Requires-Python: >=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==2.2.0
15
+ Requires-Dist: winrt-runtime==3.0.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.Foundation[all]==2.2.0; extra == "all"
18
- Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.2.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.Foundation[all]==3.0.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Foundation.Collections[all]==3.0.0; extra == "all"
19
19
 
20
20
  <!-- warning: Please don't edit this file. It was automatically generated. -->
21
21
 
@@ -0,0 +1,5 @@
1
+ winrt-runtime==3.0.0
2
+
3
+ [all]
4
+ winrt-Windows.Foundation[all]==3.0.0
5
+ winrt-Windows.Foundation.Collections[all]==3.0.0
@@ -1,4 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
-
3
- winrt-Windows.Foundation[all]==2.2.0
4
- winrt-Windows.Foundation.Collections[all]==2.2.0
@@ -1,54 +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.foundation as windows_foundation
13
- import winrt.windows.foundation.collections as windows_foundation_collections
14
-
15
- from winrt.windows.applicationmodel.resources.management import IndexedResourceType
16
-
17
- Self = typing.TypeVar('Self')
18
-
19
- @typing.final
20
- class IndexedResourceCandidate(winrt.system.Object):
21
- @staticmethod
22
- def _from(obj: winrt.system.Object, /) -> IndexedResourceCandidate: ...
23
- def get_qualifier_value(self, qualifier_name: str, /) -> str: ...
24
- @_property
25
- def metadata(self) -> typing.Optional[windows_foundation_collections.IMapView[str, str]]: ...
26
- @_property
27
- def qualifiers(self) -> typing.Optional[windows_foundation_collections.IVectorView[IndexedResourceQualifier]]: ...
28
- @_property
29
- def type(self) -> IndexedResourceType: ...
30
- @_property
31
- def uri(self) -> typing.Optional[windows_foundation.Uri]: ...
32
- @_property
33
- def value_as_string(self) -> str: ...
34
-
35
- @typing.final
36
- class IndexedResourceQualifier(winrt.system.Object):
37
- @staticmethod
38
- def _from(obj: winrt.system.Object, /) -> IndexedResourceQualifier: ...
39
- @_property
40
- def qualifier_name(self) -> str: ...
41
- @_property
42
- def qualifier_value(self) -> str: ...
43
-
44
- @typing.final
45
- class ResourceIndexer(winrt.system.Object):
46
- @staticmethod
47
- def _from(obj: winrt.system.Object, /) -> ResourceIndexer: ...
48
- @typing.overload
49
- def __new__(cls: typing.Type[ResourceIndexer], project_root: typing.Optional[windows_foundation.Uri], extension_dll_path: typing.Optional[windows_foundation.Uri]) -> ResourceIndexer: ...
50
- @typing.overload
51
- def __new__(cls: typing.Type[ResourceIndexer], project_root: typing.Optional[windows_foundation.Uri]) -> ResourceIndexer: ...
52
- def index_file_contents_async(self, file: typing.Optional[windows_foundation.Uri], /) -> windows_foundation.IAsyncOperation[windows_foundation_collections.IVectorView[IndexedResourceCandidate]]: ...
53
- def index_file_path(self, file_path: typing.Optional[windows_foundation.Uri], /) -> typing.Optional[IndexedResourceCandidate]: ...
54
-
@@ -1,22 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
-
3
- import enum
4
-
5
- import winrt.system
6
- from winrt import _winrt_windows_applicationmodel_resources_management
7
-
8
- __all__ = [
9
- "IndexedResourceType",
10
- "IndexedResourceCandidate",
11
- "IndexedResourceQualifier",
12
- "ResourceIndexer",
13
- ]
14
-
15
- class IndexedResourceType(enum.IntEnum):
16
- STRING = 0
17
- PATH = 1
18
- EMBEDDED_DATA = 2
19
-
20
- IndexedResourceCandidate = _winrt_windows_applicationmodel_resources_management.IndexedResourceCandidate
21
- IndexedResourceQualifier = _winrt_windows_applicationmodel_resources_management.IndexedResourceQualifier
22
- ResourceIndexer = _winrt_windows_applicationmodel_resources_management.ResourceIndexer
@@ -1,5 +0,0 @@
1
- winrt-runtime==2.2.0
2
-
3
- [all]
4
- winrt-Windows.Foundation[all]==2.2.0
5
- winrt-Windows.Foundation.Collections[all]==2.2.0