winrt-Windows.System.Inventory 2.0.1__tar.gz → 2.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.
- {winrt_windows_system_inventory-2.0.1 → winrt_windows_system_inventory-2.1.0}/PKG-INFO +4 -4
- winrt_windows_system_inventory-2.1.0/all-requirements.txt +4 -0
- {winrt_windows_system_inventory-2.0.1 → winrt_windows_system_inventory-2.1.0}/py.Windows.System.Inventory.cpp +52 -57
- winrt_windows_system_inventory-2.1.0/pywinrt-version.txt +1 -0
- {winrt_windows_system_inventory-2.0.1 → winrt_windows_system_inventory-2.1.0}/requirements.txt +2 -2
- {winrt_windows_system_inventory-2.0.1 → winrt_windows_system_inventory-2.1.0}/winrt/_winrt_windows_system_inventory.pyi +4 -4
- {winrt_windows_system_inventory-2.0.1 → winrt_windows_system_inventory-2.1.0}/winrt/windows/system/inventory/__init__.py +1 -1
- {winrt_windows_system_inventory-2.0.1 → winrt_windows_system_inventory-2.1.0}/winrt_Windows.System.Inventory.egg-info/PKG-INFO +4 -4
- winrt_windows_system_inventory-2.1.0/winrt_Windows.System.Inventory.egg-info/requires.txt +5 -0
- winrt_windows_system_inventory-2.0.1/all-requirements.txt +0 -4
- winrt_windows_system_inventory-2.0.1/pywinrt-version.txt +0 -1
- winrt_windows_system_inventory-2.0.1/winrt_Windows.System.Inventory.egg-info/requires.txt +0 -5
- {winrt_windows_system_inventory-2.0.1 → winrt_windows_system_inventory-2.1.0}/README.md +0 -0
- {winrt_windows_system_inventory-2.0.1 → winrt_windows_system_inventory-2.1.0}/pyproject.toml +0 -0
- {winrt_windows_system_inventory-2.0.1 → winrt_windows_system_inventory-2.1.0}/setup.cfg +0 -0
- {winrt_windows_system_inventory-2.0.1 → winrt_windows_system_inventory-2.1.0}/setup.py +0 -0
- {winrt_windows_system_inventory-2.0.1 → winrt_windows_system_inventory-2.1.0}/winrt/windows/system/inventory/py.typed +0 -0
- {winrt_windows_system_inventory-2.0.1 → winrt_windows_system_inventory-2.1.0}/winrt_Windows.System.Inventory.egg-info/SOURCES.txt +0 -0
- {winrt_windows_system_inventory-2.0.1 → winrt_windows_system_inventory-2.1.0}/winrt_Windows.System.Inventory.egg-info/dependency_links.txt +0 -0
- {winrt_windows_system_inventory-2.0.1 → winrt_windows_system_inventory-2.1.0}/winrt_Windows.System.Inventory.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.System.Inventory
|
|
3
|
-
Version: 2.0
|
|
3
|
+
Version: 2.1.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
@@ -12,10 +12,10 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
13
|
Requires-Python: <3.13,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==2.0
|
|
15
|
+
Requires-Dist: winrt-runtime==2.1.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==2.0
|
|
18
|
-
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.0
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.1.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.1.0; extra == "all"
|
|
19
19
|
|
|
20
20
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
21
21
|
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0
|
|
1
|
+
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
|
|
2
2
|
|
|
3
3
|
#include "py.Windows.System.Inventory.h"
|
|
4
4
|
|
|
5
|
-
|
|
6
5
|
namespace py::cpp::Windows::System::Inventory
|
|
7
6
|
{
|
|
8
7
|
// ----- InstalledDesktopApp class --------------------
|
|
@@ -28,14 +27,14 @@ namespace py::cpp::Windows::System::Inventory
|
|
|
28
27
|
|
|
29
28
|
if (arg_count == 0)
|
|
30
29
|
{
|
|
31
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Inventory.InstalledDesktopApp", L"GetInventoryAsync", 0))
|
|
32
|
-
{
|
|
33
|
-
py::set_arg_count_version_error(0);
|
|
34
|
-
return nullptr;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
30
|
try
|
|
38
31
|
{
|
|
32
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Inventory.InstalledDesktopApp", L"GetInventoryAsync", 0))
|
|
33
|
+
{
|
|
34
|
+
py::set_arg_count_version_error(0);
|
|
35
|
+
return nullptr;
|
|
36
|
+
}
|
|
37
|
+
|
|
39
38
|
return py::convert(winrt::Windows::System::Inventory::InstalledDesktopApp::GetInventoryAsync());
|
|
40
39
|
}
|
|
41
40
|
catch (...)
|
|
@@ -57,14 +56,14 @@ namespace py::cpp::Windows::System::Inventory
|
|
|
57
56
|
|
|
58
57
|
if (arg_count == 0)
|
|
59
58
|
{
|
|
60
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Inventory.InstalledDesktopApp", L"ToString", 0))
|
|
61
|
-
{
|
|
62
|
-
py::set_arg_count_version_error(0);
|
|
63
|
-
return nullptr;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
59
|
try
|
|
67
60
|
{
|
|
61
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Inventory.InstalledDesktopApp", L"ToString", 0))
|
|
62
|
+
{
|
|
63
|
+
py::set_arg_count_version_error(0);
|
|
64
|
+
return nullptr;
|
|
65
|
+
}
|
|
66
|
+
|
|
68
67
|
return py::convert(self->obj.ToString());
|
|
69
68
|
}
|
|
70
69
|
catch (...)
|
|
@@ -82,14 +81,14 @@ namespace py::cpp::Windows::System::Inventory
|
|
|
82
81
|
|
|
83
82
|
static PyObject* InstalledDesktopApp_get_DisplayName(py::wrapper::Windows::System::Inventory::InstalledDesktopApp* self, void* /*unused*/) noexcept
|
|
84
83
|
{
|
|
85
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Inventory.InstalledDesktopApp", L"DisplayName"))
|
|
86
|
-
{
|
|
87
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
88
|
-
return nullptr;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
84
|
try
|
|
92
85
|
{
|
|
86
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Inventory.InstalledDesktopApp", L"DisplayName"))
|
|
87
|
+
{
|
|
88
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
89
|
+
return nullptr;
|
|
90
|
+
}
|
|
91
|
+
|
|
93
92
|
return py::convert(self->obj.DisplayName());
|
|
94
93
|
}
|
|
95
94
|
catch (...)
|
|
@@ -101,14 +100,14 @@ namespace py::cpp::Windows::System::Inventory
|
|
|
101
100
|
|
|
102
101
|
static PyObject* InstalledDesktopApp_get_DisplayVersion(py::wrapper::Windows::System::Inventory::InstalledDesktopApp* self, void* /*unused*/) noexcept
|
|
103
102
|
{
|
|
104
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Inventory.InstalledDesktopApp", L"DisplayVersion"))
|
|
105
|
-
{
|
|
106
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
107
|
-
return nullptr;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
103
|
try
|
|
111
104
|
{
|
|
105
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Inventory.InstalledDesktopApp", L"DisplayVersion"))
|
|
106
|
+
{
|
|
107
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
108
|
+
return nullptr;
|
|
109
|
+
}
|
|
110
|
+
|
|
112
111
|
return py::convert(self->obj.DisplayVersion());
|
|
113
112
|
}
|
|
114
113
|
catch (...)
|
|
@@ -120,14 +119,14 @@ namespace py::cpp::Windows::System::Inventory
|
|
|
120
119
|
|
|
121
120
|
static PyObject* InstalledDesktopApp_get_Id(py::wrapper::Windows::System::Inventory::InstalledDesktopApp* self, void* /*unused*/) noexcept
|
|
122
121
|
{
|
|
123
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Inventory.InstalledDesktopApp", L"Id"))
|
|
124
|
-
{
|
|
125
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
126
|
-
return nullptr;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
122
|
try
|
|
130
123
|
{
|
|
124
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Inventory.InstalledDesktopApp", L"Id"))
|
|
125
|
+
{
|
|
126
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
127
|
+
return nullptr;
|
|
128
|
+
}
|
|
129
|
+
|
|
131
130
|
return py::convert(self->obj.Id());
|
|
132
131
|
}
|
|
133
132
|
catch (...)
|
|
@@ -139,14 +138,14 @@ namespace py::cpp::Windows::System::Inventory
|
|
|
139
138
|
|
|
140
139
|
static PyObject* InstalledDesktopApp_get_Publisher(py::wrapper::Windows::System::Inventory::InstalledDesktopApp* self, void* /*unused*/) noexcept
|
|
141
140
|
{
|
|
142
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Inventory.InstalledDesktopApp", L"Publisher"))
|
|
143
|
-
{
|
|
144
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
145
|
-
return nullptr;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
141
|
try
|
|
149
142
|
{
|
|
143
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Inventory.InstalledDesktopApp", L"Publisher"))
|
|
144
|
+
{
|
|
145
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
146
|
+
return nullptr;
|
|
147
|
+
}
|
|
148
|
+
|
|
150
149
|
return py::convert(self->obj.Publisher());
|
|
151
150
|
}
|
|
152
151
|
catch (...)
|
|
@@ -208,24 +207,21 @@ namespace py::cpp::Windows::System::Inventory
|
|
|
208
207
|
{ }
|
|
209
208
|
};
|
|
210
209
|
|
|
211
|
-
static PyType_Slot _type_slots_InstalledDesktopApp[] =
|
|
212
|
-
{
|
|
210
|
+
static PyType_Slot _type_slots_InstalledDesktopApp[] = {
|
|
213
211
|
{ Py_tp_new, reinterpret_cast<void*>(_new_InstalledDesktopApp) },
|
|
214
212
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_InstalledDesktopApp) },
|
|
215
213
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_InstalledDesktopApp) },
|
|
216
214
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_InstalledDesktopApp) },
|
|
217
215
|
{ Py_tp_str, reinterpret_cast<void*>(_str_InstalledDesktopApp) },
|
|
218
|
-
{ }
|
|
216
|
+
{ }
|
|
219
217
|
};
|
|
220
218
|
|
|
221
|
-
static PyType_Spec type_spec_InstalledDesktopApp =
|
|
222
|
-
{
|
|
219
|
+
static PyType_Spec type_spec_InstalledDesktopApp = {
|
|
223
220
|
"winrt._winrt_windows_system_inventory.InstalledDesktopApp",
|
|
224
221
|
sizeof(py::wrapper::Windows::System::Inventory::InstalledDesktopApp),
|
|
225
222
|
0,
|
|
226
223
|
Py_TPFLAGS_DEFAULT,
|
|
227
|
-
_type_slots_InstalledDesktopApp
|
|
228
|
-
};
|
|
224
|
+
_type_slots_InstalledDesktopApp};
|
|
229
225
|
|
|
230
226
|
static PyGetSetDef getset_InstalledDesktopApp_Static[] = {
|
|
231
227
|
{ }
|
|
@@ -254,20 +250,19 @@ namespace py::cpp::Windows::System::Inventory
|
|
|
254
250
|
};
|
|
255
251
|
|
|
256
252
|
// ----- Windows.System.Inventory Initialization --------------------
|
|
257
|
-
PyDoc_STRVAR(module_doc, "Windows::System::Inventory");
|
|
258
|
-
|
|
259
253
|
|
|
260
|
-
|
|
261
|
-
= {PyModuleDef_HEAD_INIT,
|
|
262
|
-
"_winrt_windows_system_inventory",
|
|
263
|
-
module_doc,
|
|
264
|
-
0,
|
|
265
|
-
nullptr,
|
|
266
|
-
nullptr,
|
|
267
|
-
nullptr,
|
|
268
|
-
nullptr,
|
|
269
|
-
nullptr};
|
|
254
|
+
PyDoc_STRVAR(module_doc, "Windows.System.Inventory");
|
|
270
255
|
|
|
256
|
+
static PyModuleDef module_def = {
|
|
257
|
+
PyModuleDef_HEAD_INIT,
|
|
258
|
+
"_winrt_windows_system_inventory",
|
|
259
|
+
module_doc,
|
|
260
|
+
0,
|
|
261
|
+
nullptr,
|
|
262
|
+
nullptr,
|
|
263
|
+
nullptr,
|
|
264
|
+
nullptr,
|
|
265
|
+
nullptr};
|
|
271
266
|
} // py::cpp::Windows::System::Inventory
|
|
272
267
|
|
|
273
268
|
PyMODINIT_FUNC PyInit__winrt_windows_system_inventory(void) noexcept
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.1.0
|
{winrt_windows_system_inventory-2.0.1 → winrt_windows_system_inventory-2.1.0}/requirements.txt
RENAMED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
|
|
2
2
|
|
|
3
|
-
winrt-runtime==2.0
|
|
3
|
+
winrt-runtime==2.1.0
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
|
|
2
2
|
|
|
3
3
|
import datetime
|
|
4
4
|
import sys
|
|
@@ -9,14 +9,14 @@ from builtins import property as _property
|
|
|
9
9
|
|
|
10
10
|
import winrt._winrt
|
|
11
11
|
import winrt.system
|
|
12
|
-
import winrt.windows.foundation
|
|
13
|
-
import winrt.windows.foundation.collections
|
|
12
|
+
import winrt.windows.foundation as windows_foundation
|
|
13
|
+
import winrt.windows.foundation.collections as windows_foundation_collections
|
|
14
14
|
|
|
15
15
|
Self = typing.TypeVar('Self')
|
|
16
16
|
|
|
17
17
|
@typing.final
|
|
18
18
|
class InstalledDesktopApp_Static(type):
|
|
19
|
-
def get_inventory_async(cls) ->
|
|
19
|
+
def get_inventory_async(cls) -> windows_foundation.IAsyncOperation[windows_foundation_collections.IVectorView[InstalledDesktopApp]]: ...
|
|
20
20
|
|
|
21
21
|
@typing.final
|
|
22
22
|
class InstalledDesktopApp(winrt.system.Object, metaclass=InstalledDesktopApp_Static):
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.System.Inventory
|
|
3
|
-
Version: 2.0
|
|
3
|
+
Version: 2.1.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
@@ -12,10 +12,10 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
13
|
Requires-Python: <3.13,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==2.0
|
|
15
|
+
Requires-Dist: winrt-runtime==2.1.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==2.0
|
|
18
|
-
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.0
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.1.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.1.0; extra == "all"
|
|
19
19
|
|
|
20
20
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
21
21
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2.0.1
|
|
File without changes
|
{winrt_windows_system_inventory-2.0.1 → winrt_windows_system_inventory-2.1.0}/pyproject.toml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|