winrt-Windows.Perception 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_perception-2.0.1 → winrt_windows_perception-2.1.0}/PKG-INFO +3 -3
- {winrt_windows_perception-2.0.1 → winrt_windows_perception-2.1.0}/all-requirements.txt +2 -2
- {winrt_windows_perception-2.0.1 → winrt_windows_perception-2.1.0}/py.Windows.Perception.cpp +50 -58
- winrt_windows_perception-2.1.0/pywinrt-version.txt +1 -0
- {winrt_windows_perception-2.0.1 → winrt_windows_perception-2.1.0}/requirements.txt +2 -2
- {winrt_windows_perception-2.0.1 → winrt_windows_perception-2.1.0}/winrt/_winrt_windows_perception.pyi +3 -4
- {winrt_windows_perception-2.0.1 → winrt_windows_perception-2.1.0}/winrt/windows/perception/__init__.py +1 -1
- {winrt_windows_perception-2.0.1 → winrt_windows_perception-2.1.0}/winrt_Windows.Perception.egg-info/PKG-INFO +3 -3
- winrt_windows_perception-2.1.0/winrt_Windows.Perception.egg-info/requires.txt +4 -0
- winrt_windows_perception-2.0.1/pywinrt-version.txt +0 -1
- winrt_windows_perception-2.0.1/winrt_Windows.Perception.egg-info/requires.txt +0 -4
- {winrt_windows_perception-2.0.1 → winrt_windows_perception-2.1.0}/README.md +0 -0
- {winrt_windows_perception-2.0.1 → winrt_windows_perception-2.1.0}/pyproject.toml +0 -0
- {winrt_windows_perception-2.0.1 → winrt_windows_perception-2.1.0}/setup.cfg +0 -0
- {winrt_windows_perception-2.0.1 → winrt_windows_perception-2.1.0}/setup.py +0 -0
- {winrt_windows_perception-2.0.1 → winrt_windows_perception-2.1.0}/winrt/windows/perception/py.typed +0 -0
- {winrt_windows_perception-2.0.1 → winrt_windows_perception-2.1.0}/winrt_Windows.Perception.egg-info/SOURCES.txt +0 -0
- {winrt_windows_perception-2.0.1 → winrt_windows_perception-2.1.0}/winrt_Windows.Perception.egg-info/dependency_links.txt +0 -0
- {winrt_windows_perception-2.0.1 → winrt_windows_perception-2.1.0}/winrt_Windows.Perception.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.Perception
|
|
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,9 +12,9 @@ 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
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.1.0; extra == "all"
|
|
18
18
|
|
|
19
19
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
20
20
|
|
|
@@ -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-Windows.Foundation[all]==2.0
|
|
3
|
+
winrt-Windows.Foundation[all]==2.1.0
|
|
@@ -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.Perception.h"
|
|
4
4
|
|
|
5
|
-
|
|
6
5
|
namespace py::cpp::Windows::Perception
|
|
7
6
|
{
|
|
8
7
|
// ----- PerceptionTimestamp class --------------------
|
|
@@ -24,14 +23,14 @@ namespace py::cpp::Windows::Perception
|
|
|
24
23
|
|
|
25
24
|
static PyObject* PerceptionTimestamp_get_PredictionAmount(py::wrapper::Windows::Perception::PerceptionTimestamp* self, void* /*unused*/) noexcept
|
|
26
25
|
{
|
|
27
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.PerceptionTimestamp", L"PredictionAmount"))
|
|
28
|
-
{
|
|
29
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
30
|
-
return nullptr;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
26
|
try
|
|
34
27
|
{
|
|
28
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.PerceptionTimestamp", L"PredictionAmount"))
|
|
29
|
+
{
|
|
30
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
31
|
+
return nullptr;
|
|
32
|
+
}
|
|
33
|
+
|
|
35
34
|
return py::convert(self->obj.PredictionAmount());
|
|
36
35
|
}
|
|
37
36
|
catch (...)
|
|
@@ -43,14 +42,14 @@ namespace py::cpp::Windows::Perception
|
|
|
43
42
|
|
|
44
43
|
static PyObject* PerceptionTimestamp_get_TargetTime(py::wrapper::Windows::Perception::PerceptionTimestamp* self, void* /*unused*/) noexcept
|
|
45
44
|
{
|
|
46
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.PerceptionTimestamp", L"TargetTime"))
|
|
47
|
-
{
|
|
48
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
49
|
-
return nullptr;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
45
|
try
|
|
53
46
|
{
|
|
47
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.PerceptionTimestamp", L"TargetTime"))
|
|
48
|
+
{
|
|
49
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
50
|
+
return nullptr;
|
|
51
|
+
}
|
|
52
|
+
|
|
54
53
|
return py::convert(self->obj.TargetTime());
|
|
55
54
|
}
|
|
56
55
|
catch (...)
|
|
@@ -62,14 +61,14 @@ namespace py::cpp::Windows::Perception
|
|
|
62
61
|
|
|
63
62
|
static PyObject* PerceptionTimestamp_get_SystemRelativeTargetTime(py::wrapper::Windows::Perception::PerceptionTimestamp* self, void* /*unused*/) noexcept
|
|
64
63
|
{
|
|
65
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.PerceptionTimestamp", L"SystemRelativeTargetTime"))
|
|
66
|
-
{
|
|
67
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
68
|
-
return nullptr;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
64
|
try
|
|
72
65
|
{
|
|
66
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.PerceptionTimestamp", L"SystemRelativeTargetTime"))
|
|
67
|
+
{
|
|
68
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
69
|
+
return nullptr;
|
|
70
|
+
}
|
|
71
|
+
|
|
73
72
|
return py::convert(self->obj.SystemRelativeTargetTime());
|
|
74
73
|
}
|
|
75
74
|
catch (...)
|
|
@@ -116,23 +115,20 @@ namespace py::cpp::Windows::Perception
|
|
|
116
115
|
{ }
|
|
117
116
|
};
|
|
118
117
|
|
|
119
|
-
static PyType_Slot _type_slots_PerceptionTimestamp[] =
|
|
120
|
-
{
|
|
118
|
+
static PyType_Slot _type_slots_PerceptionTimestamp[] = {
|
|
121
119
|
{ Py_tp_new, reinterpret_cast<void*>(_new_PerceptionTimestamp) },
|
|
122
120
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_PerceptionTimestamp) },
|
|
123
121
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_PerceptionTimestamp) },
|
|
124
122
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_PerceptionTimestamp) },
|
|
125
|
-
{ }
|
|
123
|
+
{ }
|
|
126
124
|
};
|
|
127
125
|
|
|
128
|
-
static PyType_Spec type_spec_PerceptionTimestamp =
|
|
129
|
-
{
|
|
126
|
+
static PyType_Spec type_spec_PerceptionTimestamp = {
|
|
130
127
|
"winrt._winrt_windows_perception.PerceptionTimestamp",
|
|
131
128
|
sizeof(py::wrapper::Windows::Perception::PerceptionTimestamp),
|
|
132
129
|
0,
|
|
133
130
|
Py_TPFLAGS_DEFAULT,
|
|
134
|
-
_type_slots_PerceptionTimestamp
|
|
135
|
-
};
|
|
131
|
+
_type_slots_PerceptionTimestamp};
|
|
136
132
|
|
|
137
133
|
// ----- PerceptionTimestampHelper class --------------------
|
|
138
134
|
|
|
@@ -149,14 +145,14 @@ namespace py::cpp::Windows::Perception
|
|
|
149
145
|
|
|
150
146
|
if (arg_count == 1)
|
|
151
147
|
{
|
|
152
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Perception.PerceptionTimestampHelper", L"FromHistoricalTargetTime", 1))
|
|
153
|
-
{
|
|
154
|
-
py::set_arg_count_version_error(1);
|
|
155
|
-
return nullptr;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
148
|
try
|
|
159
149
|
{
|
|
150
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Perception.PerceptionTimestampHelper", L"FromHistoricalTargetTime", 1))
|
|
151
|
+
{
|
|
152
|
+
py::set_arg_count_version_error(1);
|
|
153
|
+
return nullptr;
|
|
154
|
+
}
|
|
155
|
+
|
|
160
156
|
auto param0 = py::convert_to<winrt::Windows::Foundation::DateTime>(args, 0);
|
|
161
157
|
|
|
162
158
|
return py::convert(winrt::Windows::Perception::PerceptionTimestampHelper::FromHistoricalTargetTime(param0));
|
|
@@ -180,14 +176,14 @@ namespace py::cpp::Windows::Perception
|
|
|
180
176
|
|
|
181
177
|
if (arg_count == 1)
|
|
182
178
|
{
|
|
183
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Perception.PerceptionTimestampHelper", L"FromSystemRelativeTargetTime", 1))
|
|
184
|
-
{
|
|
185
|
-
py::set_arg_count_version_error(1);
|
|
186
|
-
return nullptr;
|
|
187
|
-
}
|
|
188
|
-
|
|
189
179
|
try
|
|
190
180
|
{
|
|
181
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Perception.PerceptionTimestampHelper", L"FromSystemRelativeTargetTime", 1))
|
|
182
|
+
{
|
|
183
|
+
py::set_arg_count_version_error(1);
|
|
184
|
+
return nullptr;
|
|
185
|
+
}
|
|
186
|
+
|
|
191
187
|
auto param0 = py::convert_to<winrt::Windows::Foundation::TimeSpan>(args, 0);
|
|
192
188
|
|
|
193
189
|
return py::convert(winrt::Windows::Perception::PerceptionTimestampHelper::FromSystemRelativeTargetTime(param0));
|
|
@@ -213,22 +209,19 @@ namespace py::cpp::Windows::Perception
|
|
|
213
209
|
{ }
|
|
214
210
|
};
|
|
215
211
|
|
|
216
|
-
static PyType_Slot _type_slots_PerceptionTimestampHelper[] =
|
|
217
|
-
{
|
|
212
|
+
static PyType_Slot _type_slots_PerceptionTimestampHelper[] = {
|
|
218
213
|
{ Py_tp_new, reinterpret_cast<void*>(_new_PerceptionTimestampHelper) },
|
|
219
214
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_PerceptionTimestampHelper) },
|
|
220
215
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_PerceptionTimestampHelper) },
|
|
221
|
-
{ }
|
|
216
|
+
{ }
|
|
222
217
|
};
|
|
223
218
|
|
|
224
|
-
static PyType_Spec type_spec_PerceptionTimestampHelper =
|
|
225
|
-
{
|
|
219
|
+
static PyType_Spec type_spec_PerceptionTimestampHelper = {
|
|
226
220
|
"winrt._winrt_windows_perception.PerceptionTimestampHelper",
|
|
227
221
|
0,
|
|
228
222
|
0,
|
|
229
223
|
Py_TPFLAGS_DEFAULT,
|
|
230
|
-
_type_slots_PerceptionTimestampHelper
|
|
231
|
-
};
|
|
224
|
+
_type_slots_PerceptionTimestampHelper};
|
|
232
225
|
|
|
233
226
|
static PyGetSetDef getset_PerceptionTimestampHelper_Static[] = {
|
|
234
227
|
{ }
|
|
@@ -258,20 +251,19 @@ namespace py::cpp::Windows::Perception
|
|
|
258
251
|
};
|
|
259
252
|
|
|
260
253
|
// ----- Windows.Perception Initialization --------------------
|
|
261
|
-
PyDoc_STRVAR(module_doc, "Windows::Perception");
|
|
262
254
|
|
|
255
|
+
PyDoc_STRVAR(module_doc, "Windows.Perception");
|
|
263
256
|
|
|
264
|
-
static PyModuleDef module_def
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
257
|
+
static PyModuleDef module_def = {
|
|
258
|
+
PyModuleDef_HEAD_INIT,
|
|
259
|
+
"_winrt_windows_perception",
|
|
260
|
+
module_doc,
|
|
261
|
+
0,
|
|
262
|
+
nullptr,
|
|
263
|
+
nullptr,
|
|
264
|
+
nullptr,
|
|
265
|
+
nullptr,
|
|
266
|
+
nullptr};
|
|
275
267
|
} // py::cpp::Windows::Perception
|
|
276
268
|
|
|
277
269
|
PyMODINIT_FUNC PyInit__winrt_windows_perception(void) noexcept
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.1.0
|
|
@@ -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,7 +9,7 @@ from builtins import property as _property
|
|
|
9
9
|
|
|
10
10
|
import winrt._winrt
|
|
11
11
|
import winrt.system
|
|
12
|
-
import winrt.windows.foundation
|
|
12
|
+
import winrt.windows.foundation as windows_foundation
|
|
13
13
|
|
|
14
14
|
Self = typing.TypeVar('Self')
|
|
15
15
|
|
|
@@ -31,6 +31,5 @@ class PerceptionTimestampHelper_Static(type):
|
|
|
31
31
|
|
|
32
32
|
@typing.final
|
|
33
33
|
class PerceptionTimestampHelper(winrt.system.Object, metaclass=PerceptionTimestampHelper_Static):
|
|
34
|
-
|
|
35
|
-
def _from(obj: winrt.system.Object, /) -> PerceptionTimestampHelper: ...
|
|
34
|
+
pass
|
|
36
35
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.Perception
|
|
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,9 +12,9 @@ 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
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.1.0; extra == "all"
|
|
18
18
|
|
|
19
19
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
20
20
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2.0.1
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{winrt_windows_perception-2.0.1 → winrt_windows_perception-2.1.0}/winrt/windows/perception/py.typed
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|