winrt-Windows.Perception 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_perception-2.2.0 → winrt_windows_perception-3.0.0}/PKG-INFO +4 -4
- {winrt_windows_perception-2.2.0 → winrt_windows_perception-3.0.0}/all-requirements.txt +2 -2
- {winrt_windows_perception-2.2.0 → winrt_windows_perception-3.0.0}/py.Windows.Perception.cpp +52 -30
- {winrt_windows_perception-2.2.0 → winrt_windows_perception-3.0.0}/pyproject.toml +2 -2
- winrt_windows_perception-3.0.0/pywinrt-version.txt +1 -0
- {winrt_windows_perception-2.2.0 → winrt_windows_perception-3.0.0}/requirements.txt +2 -2
- {winrt_windows_perception-2.2.0 → winrt_windows_perception-3.0.0}/setup.py +1 -1
- {winrt_windows_perception-2.2.0 → winrt_windows_perception-3.0.0}/winrt/_winrt_windows_perception.pyi +9 -6
- winrt_windows_perception-3.0.0/winrt/windows/perception/__init__.py +13 -0
- {winrt_windows_perception-2.2.0 → winrt_windows_perception-3.0.0}/winrt_Windows.Perception.egg-info/PKG-INFO +4 -4
- winrt_windows_perception-3.0.0/winrt_Windows.Perception.egg-info/requires.txt +4 -0
- winrt_windows_perception-2.2.0/pywinrt-version.txt +0 -1
- winrt_windows_perception-2.2.0/winrt/windows/perception/__init__.py +0 -12
- winrt_windows_perception-2.2.0/winrt_Windows.Perception.egg-info/requires.txt +0 -4
- {winrt_windows_perception-2.2.0 → winrt_windows_perception-3.0.0}/README.md +0 -0
- {winrt_windows_perception-2.2.0 → winrt_windows_perception-3.0.0}/setup.cfg +0 -0
- {winrt_windows_perception-2.2.0 → winrt_windows_perception-3.0.0}/winrt/windows/perception/py.typed +0 -0
- {winrt_windows_perception-2.2.0 → winrt_windows_perception-3.0.0}/winrt_Windows.Perception.egg-info/SOURCES.txt +0 -0
- {winrt_windows_perception-2.2.0 → winrt_windows_perception-3.0.0}/winrt_Windows.Perception.egg-info/dependency_links.txt +0 -0
- {winrt_windows_perception-2.2.0 → winrt_windows_perception-3.0.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:
|
|
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,11 +10,11 @@ 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.Foundation[all]==
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==3.0.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
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
|
|
2
2
|
|
|
3
|
-
winrt-Windows.Foundation[all]==
|
|
3
|
+
winrt-Windows.Foundation[all]==3.0.0
|
|
@@ -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.Perception.h"
|
|
4
4
|
|
|
@@ -38,7 +38,11 @@ namespace py::cpp::Windows::Perception
|
|
|
38
38
|
return nullptr;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
return py::convert(
|
|
41
|
+
return py::convert([&]()
|
|
42
|
+
{
|
|
43
|
+
auto _gil = release_gil();
|
|
44
|
+
return self->obj.PredictionAmount();
|
|
45
|
+
}());
|
|
42
46
|
}
|
|
43
47
|
catch (...)
|
|
44
48
|
{
|
|
@@ -64,7 +68,11 @@ namespace py::cpp::Windows::Perception
|
|
|
64
68
|
return nullptr;
|
|
65
69
|
}
|
|
66
70
|
|
|
67
|
-
return py::convert(
|
|
71
|
+
return py::convert([&]()
|
|
72
|
+
{
|
|
73
|
+
auto _gil = release_gil();
|
|
74
|
+
return self->obj.TargetTime();
|
|
75
|
+
}());
|
|
68
76
|
}
|
|
69
77
|
catch (...)
|
|
70
78
|
{
|
|
@@ -90,7 +98,11 @@ namespace py::cpp::Windows::Perception
|
|
|
90
98
|
return nullptr;
|
|
91
99
|
}
|
|
92
100
|
|
|
93
|
-
return py::convert(
|
|
101
|
+
return py::convert([&]()
|
|
102
|
+
{
|
|
103
|
+
auto _gil = release_gil();
|
|
104
|
+
return self->obj.SystemRelativeTargetTime();
|
|
105
|
+
}());
|
|
94
106
|
}
|
|
95
107
|
catch (...)
|
|
96
108
|
{
|
|
@@ -126,23 +138,20 @@ namespace py::cpp::Windows::Perception
|
|
|
126
138
|
static PyMethodDef _methods_PerceptionTimestamp[] = {
|
|
127
139
|
{ "_assign_array_", _assign_array_PerceptionTimestamp, METH_O | METH_STATIC, nullptr },
|
|
128
140
|
{ "_from", reinterpret_cast<PyCFunction>(_from_PerceptionTimestamp), METH_O | METH_STATIC, nullptr },
|
|
129
|
-
{ }
|
|
130
|
-
};
|
|
141
|
+
{ }};
|
|
131
142
|
|
|
132
143
|
static PyGetSetDef _getset_PerceptionTimestamp[] = {
|
|
133
144
|
{ "prediction_amount", reinterpret_cast<getter>(PerceptionTimestamp_get_PredictionAmount), nullptr, nullptr, nullptr },
|
|
134
145
|
{ "target_time", reinterpret_cast<getter>(PerceptionTimestamp_get_TargetTime), nullptr, nullptr, nullptr },
|
|
135
146
|
{ "system_relative_target_time", reinterpret_cast<getter>(PerceptionTimestamp_get_SystemRelativeTargetTime), nullptr, nullptr, nullptr },
|
|
136
|
-
{ }
|
|
137
|
-
};
|
|
147
|
+
{ }};
|
|
138
148
|
|
|
139
149
|
static PyType_Slot _type_slots_PerceptionTimestamp[] = {
|
|
140
150
|
{ Py_tp_new, reinterpret_cast<void*>(_new_PerceptionTimestamp) },
|
|
141
151
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_PerceptionTimestamp) },
|
|
142
152
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_PerceptionTimestamp) },
|
|
143
153
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_PerceptionTimestamp) },
|
|
144
|
-
{ }
|
|
145
|
-
};
|
|
154
|
+
{ }};
|
|
146
155
|
|
|
147
156
|
static PyType_Spec type_spec_PerceptionTimestamp = {
|
|
148
157
|
"winrt._winrt_windows_perception.PerceptionTimestamp",
|
|
@@ -162,7 +171,7 @@ namespace py::cpp::Windows::Perception
|
|
|
162
171
|
|
|
163
172
|
static PyObject* PerceptionTimestampHelper_FromHistoricalTargetTime(PyObject* /*unused*/, PyObject* args) noexcept
|
|
164
173
|
{
|
|
165
|
-
auto arg_count =
|
|
174
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
166
175
|
|
|
167
176
|
if (arg_count == 1)
|
|
168
177
|
{
|
|
@@ -183,7 +192,11 @@ namespace py::cpp::Windows::Perception
|
|
|
183
192
|
|
|
184
193
|
auto param0 = py::convert_to<winrt::Windows::Foundation::DateTime>(args, 0);
|
|
185
194
|
|
|
186
|
-
return py::convert(
|
|
195
|
+
return py::convert([&]()
|
|
196
|
+
{
|
|
197
|
+
auto _gil = release_gil();
|
|
198
|
+
return winrt::Windows::Perception::PerceptionTimestampHelper::FromHistoricalTargetTime(param0);
|
|
199
|
+
}());
|
|
187
200
|
}
|
|
188
201
|
catch (...)
|
|
189
202
|
{
|
|
@@ -200,7 +213,7 @@ namespace py::cpp::Windows::Perception
|
|
|
200
213
|
|
|
201
214
|
static PyObject* PerceptionTimestampHelper_FromSystemRelativeTargetTime(PyObject* /*unused*/, PyObject* args) noexcept
|
|
202
215
|
{
|
|
203
|
-
auto arg_count =
|
|
216
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
204
217
|
|
|
205
218
|
if (arg_count == 1)
|
|
206
219
|
{
|
|
@@ -221,7 +234,11 @@ namespace py::cpp::Windows::Perception
|
|
|
221
234
|
|
|
222
235
|
auto param0 = py::convert_to<winrt::Windows::Foundation::TimeSpan>(args, 0);
|
|
223
236
|
|
|
224
|
-
return py::convert(
|
|
237
|
+
return py::convert([&]()
|
|
238
|
+
{
|
|
239
|
+
auto _gil = release_gil();
|
|
240
|
+
return winrt::Windows::Perception::PerceptionTimestampHelper::FromSystemRelativeTargetTime(param0);
|
|
241
|
+
}());
|
|
225
242
|
}
|
|
226
243
|
catch (...)
|
|
227
244
|
{
|
|
@@ -237,19 +254,16 @@ namespace py::cpp::Windows::Perception
|
|
|
237
254
|
}
|
|
238
255
|
|
|
239
256
|
static PyMethodDef _methods_PerceptionTimestampHelper[] = {
|
|
240
|
-
{ }
|
|
241
|
-
};
|
|
257
|
+
{ }};
|
|
242
258
|
|
|
243
259
|
static PyGetSetDef _getset_PerceptionTimestampHelper[] = {
|
|
244
|
-
{ }
|
|
245
|
-
};
|
|
260
|
+
{ }};
|
|
246
261
|
|
|
247
262
|
static PyType_Slot _type_slots_PerceptionTimestampHelper[] = {
|
|
248
263
|
{ Py_tp_new, reinterpret_cast<void*>(_new_PerceptionTimestampHelper) },
|
|
249
264
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_PerceptionTimestampHelper) },
|
|
250
265
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_PerceptionTimestampHelper) },
|
|
251
|
-
{ }
|
|
252
|
-
};
|
|
266
|
+
{ }};
|
|
253
267
|
|
|
254
268
|
static PyType_Spec type_spec_PerceptionTimestampHelper = {
|
|
255
269
|
"winrt._winrt_windows_perception.PerceptionTimestampHelper",
|
|
@@ -259,14 +273,12 @@ namespace py::cpp::Windows::Perception
|
|
|
259
273
|
_type_slots_PerceptionTimestampHelper};
|
|
260
274
|
|
|
261
275
|
static PyGetSetDef getset_PerceptionTimestampHelper_Static[] = {
|
|
262
|
-
{ }
|
|
263
|
-
};
|
|
276
|
+
{ }};
|
|
264
277
|
|
|
265
278
|
static PyMethodDef methods_PerceptionTimestampHelper_Static[] = {
|
|
266
279
|
{ "from_historical_target_time", reinterpret_cast<PyCFunction>(PerceptionTimestampHelper_FromHistoricalTargetTime), METH_VARARGS, nullptr },
|
|
267
280
|
{ "from_system_relative_target_time", reinterpret_cast<PyCFunction>(PerceptionTimestampHelper_FromSystemRelativeTargetTime), METH_VARARGS, nullptr },
|
|
268
|
-
{ }
|
|
269
|
-
};
|
|
281
|
+
{ }};
|
|
270
282
|
|
|
271
283
|
static PyType_Slot type_slots_PerceptionTimestampHelper_Static[] =
|
|
272
284
|
{
|
|
@@ -276,14 +288,12 @@ namespace py::cpp::Windows::Perception
|
|
|
276
288
|
{ }
|
|
277
289
|
};
|
|
278
290
|
|
|
279
|
-
static PyType_Spec type_spec_PerceptionTimestampHelper_Static =
|
|
280
|
-
{
|
|
291
|
+
static PyType_Spec type_spec_PerceptionTimestampHelper_Static = {
|
|
281
292
|
"winrt._winrt_windows_perception.PerceptionTimestampHelper_Static",
|
|
282
293
|
static_cast<int>(PyType_Type.tp_basicsize),
|
|
283
294
|
static_cast<int>(PyType_Type.tp_itemsize),
|
|
284
295
|
Py_TPFLAGS_DEFAULT,
|
|
285
|
-
type_slots_PerceptionTimestampHelper_Static
|
|
286
|
-
};
|
|
296
|
+
type_slots_PerceptionTimestampHelper_Static};
|
|
287
297
|
|
|
288
298
|
// ----- Windows.Perception Initialization --------------------
|
|
289
299
|
|
|
@@ -317,6 +327,12 @@ PyMODINIT_FUNC PyInit__winrt_windows_perception(void) noexcept
|
|
|
317
327
|
return nullptr;
|
|
318
328
|
}
|
|
319
329
|
|
|
330
|
+
auto inspectable_meta_type = py::get_inspectable_meta_type();
|
|
331
|
+
if (!inspectable_meta_type)
|
|
332
|
+
{
|
|
333
|
+
return nullptr;
|
|
334
|
+
}
|
|
335
|
+
|
|
320
336
|
auto object_type = py::get_object_type();
|
|
321
337
|
if (!object_type)
|
|
322
338
|
{
|
|
@@ -330,13 +346,19 @@ PyMODINIT_FUNC PyInit__winrt_windows_perception(void) noexcept
|
|
|
330
346
|
return nullptr;
|
|
331
347
|
}
|
|
332
348
|
|
|
333
|
-
py::pytype_handle PerceptionTimestamp_type{py::register_python_type(module.get(), &type_spec_PerceptionTimestamp, object_bases.get(),
|
|
349
|
+
py::pytype_handle PerceptionTimestamp_type{py::register_python_type(module.get(), &type_spec_PerceptionTimestamp, object_bases.get(), inspectable_meta_type)};
|
|
334
350
|
if (!PerceptionTimestamp_type)
|
|
335
351
|
{
|
|
336
352
|
return nullptr;
|
|
337
353
|
}
|
|
338
354
|
|
|
339
|
-
py::pyobj_handle
|
|
355
|
+
py::pyobj_handle PerceptionTimestampHelper_Static_bases{PyTuple_Pack(1, reinterpret_cast<PyObject*>(inspectable_meta_type))};
|
|
356
|
+
if (!PerceptionTimestampHelper_Static_bases)
|
|
357
|
+
{
|
|
358
|
+
return nullptr;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
py::pyobj_handle type_PerceptionTimestampHelper_Static{PyType_FromSpecWithBases(&type_spec_PerceptionTimestampHelper_Static, PerceptionTimestampHelper_Static_bases.get())};
|
|
340
362
|
if (!type_PerceptionTimestampHelper_Static)
|
|
341
363
|
{
|
|
342
364
|
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
|
|
@@ -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
|
import datetime
|
|
4
4
|
import sys
|
|
@@ -15,19 +15,22 @@ Self = typing.TypeVar('Self')
|
|
|
15
15
|
|
|
16
16
|
@typing.final
|
|
17
17
|
class PerceptionTimestamp(winrt.system.Object):
|
|
18
|
-
|
|
19
|
-
def _from(obj: winrt.system.Object, /) -> PerceptionTimestamp: ...
|
|
18
|
+
# Windows.Foundation.TimeSpan Windows.Perception.PerceptionTimestamp::get_PredictionAmount()
|
|
20
19
|
@_property
|
|
21
20
|
def prediction_amount(self) -> datetime.timedelta: ...
|
|
21
|
+
# Windows.Foundation.DateTime Windows.Perception.PerceptionTimestamp::get_TargetTime()
|
|
22
22
|
@_property
|
|
23
23
|
def target_time(self) -> datetime.datetime: ...
|
|
24
|
+
# Windows.Foundation.TimeSpan Windows.Perception.PerceptionTimestamp::get_SystemRelativeTargetTime()
|
|
24
25
|
@_property
|
|
25
26
|
def system_relative_target_time(self) -> datetime.timedelta: ...
|
|
26
27
|
|
|
27
28
|
@typing.final
|
|
28
|
-
class PerceptionTimestampHelper_Static(
|
|
29
|
-
|
|
30
|
-
def
|
|
29
|
+
class PerceptionTimestampHelper_Static(winrt._winrt.IInspectable_Static):
|
|
30
|
+
# Windows.Perception.PerceptionTimestamp Windows.Perception.PerceptionTimestampHelper::FromHistoricalTargetTime(Windows.Foundation.DateTime)
|
|
31
|
+
def from_historical_target_time(cls, target_time: datetime.datetime, /) -> PerceptionTimestamp: ...
|
|
32
|
+
# Windows.Perception.PerceptionTimestamp Windows.Perception.PerceptionTimestampHelper::FromSystemRelativeTargetTime(Windows.Foundation.TimeSpan)
|
|
33
|
+
def from_system_relative_target_time(cls, target_time: datetime.timedelta, /) -> PerceptionTimestamp: ...
|
|
31
34
|
|
|
32
35
|
@typing.final
|
|
33
36
|
class PerceptionTimestampHelper(winrt.system.Object, metaclass=PerceptionTimestampHelper_Static):
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
|
|
2
|
+
|
|
3
|
+
import winrt.system
|
|
4
|
+
from winrt._winrt_windows_perception import (
|
|
5
|
+
PerceptionTimestamp,
|
|
6
|
+
PerceptionTimestampHelper,
|
|
7
|
+
)
|
|
8
|
+
|
|
9
|
+
__all__ = [
|
|
10
|
+
"PerceptionTimestamp",
|
|
11
|
+
"PerceptionTimestampHelper",
|
|
12
|
+
]
|
|
13
|
+
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.Perception
|
|
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,11 +10,11 @@ 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.Foundation[all]==
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==3.0.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.2.0
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
|
|
2
|
-
|
|
3
|
-
import winrt.system
|
|
4
|
-
from winrt import _winrt_windows_perception
|
|
5
|
-
|
|
6
|
-
__all__ = [
|
|
7
|
-
"PerceptionTimestamp",
|
|
8
|
-
"PerceptionTimestampHelper",
|
|
9
|
-
]
|
|
10
|
-
|
|
11
|
-
PerceptionTimestamp = _winrt_windows_perception.PerceptionTimestamp
|
|
12
|
-
PerceptionTimestampHelper = _winrt_windows_perception.PerceptionTimestampHelper
|
|
File without changes
|
|
File without changes
|
{winrt_windows_perception-2.2.0 → winrt_windows_perception-3.0.0}/winrt/windows/perception/py.typed
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|