winrt-Windows.Perception.Spatial.Preview 2.3.0__tar.gz → 3.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.
Files changed (22) hide show
  1. {winrt_windows_perception_spatial_preview-2.3.0 → winrt_windows_perception_spatial_preview-3.1.0}/PKG-INFO +7 -7
  2. winrt_windows_perception_spatial_preview-3.1.0/all-requirements.txt +4 -0
  3. {winrt_windows_perception_spatial_preview-2.3.0 → winrt_windows_perception_spatial_preview-3.1.0}/py.Windows.Perception.Spatial.Preview.cpp +130 -40
  4. {winrt_windows_perception_spatial_preview-2.3.0 → winrt_windows_perception_spatial_preview-3.1.0}/pyproject.toml +4 -4
  5. winrt_windows_perception_spatial_preview-3.1.0/pywinrt-version.txt +1 -0
  6. {winrt_windows_perception_spatial_preview-2.3.0 → winrt_windows_perception_spatial_preview-3.1.0}/requirements.txt +2 -2
  7. {winrt_windows_perception_spatial_preview-2.3.0 → winrt_windows_perception_spatial_preview-3.1.0}/setup.py +1 -1
  8. winrt_windows_perception_spatial_preview-3.1.0/winrt/_winrt_windows_perception_spatial_preview.pyi +49 -0
  9. winrt_windows_perception_spatial_preview-3.1.0/winrt/windows/perception/spatial/preview/__init__.py +13 -0
  10. {winrt_windows_perception_spatial_preview-2.3.0 → winrt_windows_perception_spatial_preview-3.1.0}/winrt_Windows.Perception.Spatial.Preview.egg-info/PKG-INFO +7 -7
  11. winrt_windows_perception_spatial_preview-3.1.0/winrt_Windows.Perception.Spatial.Preview.egg-info/requires.txt +5 -0
  12. winrt_windows_perception_spatial_preview-2.3.0/all-requirements.txt +0 -4
  13. winrt_windows_perception_spatial_preview-2.3.0/pywinrt-version.txt +0 -1
  14. winrt_windows_perception_spatial_preview-2.3.0/winrt/_winrt_windows_perception_spatial_preview.pyi +0 -47
  15. winrt_windows_perception_spatial_preview-2.3.0/winrt/windows/perception/spatial/preview/__init__.py +0 -12
  16. winrt_windows_perception_spatial_preview-2.3.0/winrt_Windows.Perception.Spatial.Preview.egg-info/requires.txt +0 -5
  17. {winrt_windows_perception_spatial_preview-2.3.0 → winrt_windows_perception_spatial_preview-3.1.0}/README.md +0 -0
  18. {winrt_windows_perception_spatial_preview-2.3.0 → winrt_windows_perception_spatial_preview-3.1.0}/setup.cfg +0 -0
  19. {winrt_windows_perception_spatial_preview-2.3.0 → winrt_windows_perception_spatial_preview-3.1.0}/winrt/windows/perception/spatial/preview/py.typed +0 -0
  20. {winrt_windows_perception_spatial_preview-2.3.0 → winrt_windows_perception_spatial_preview-3.1.0}/winrt_Windows.Perception.Spatial.Preview.egg-info/SOURCES.txt +0 -0
  21. {winrt_windows_perception_spatial_preview-2.3.0 → winrt_windows_perception_spatial_preview-3.1.0}/winrt_Windows.Perception.Spatial.Preview.egg-info/dependency_links.txt +0 -0
  22. {winrt_windows_perception_spatial_preview-2.3.0 → winrt_windows_perception_spatial_preview-3.1.0}/winrt_Windows.Perception.Spatial.Preview.egg-info/top_level.txt +0 -0
@@ -1,8 +1,8 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: winrt-Windows.Perception.Spatial.Preview
3
- Version: 2.3.0
3
+ Version: 3.1.0
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
- License: MIT
5
+ License-Expression: MIT
6
6
  Project-URL: Documentation, https://pywinrt.readthedocs.io
7
7
  Project-URL: Repository, https://github.com/pywinrt/pywinrt
8
8
  Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
@@ -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.3.0
15
+ Requires-Dist: winrt-runtime==3.1.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.Foundation.Numerics[all]==2.3.0; extra == "all"
18
- Requires-Dist: winrt-Windows.Perception.Spatial[all]==2.3.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.Foundation.Numerics[all]==3.1.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Perception.Spatial[all]==3.1.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.1.0
2
+
3
+ winrt-Windows.Foundation.Numerics[all]==3.1.0
4
+ winrt-Windows.Perception.Spatial[all]==3.1.0
@@ -1,4 +1,4 @@
1
- // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
1
+ // WARNING: Please don't edit this file. It was generated by Python/WinRT v3.1.0
2
2
 
3
3
  #include "py.Windows.Perception.Spatial.Preview.h"
4
4
 
@@ -38,7 +38,11 @@ namespace py::cpp::Windows::Perception::Spatial::Preview
38
38
  return nullptr;
39
39
  }
40
40
 
41
- return py::convert(self->obj.CoordinateSystem());
41
+ return py::convert([&]()
42
+ {
43
+ auto _gil = release_gil();
44
+ return self->obj.CoordinateSystem();
45
+ }());
42
46
  }
43
47
  catch (...)
44
48
  {
@@ -64,7 +68,11 @@ namespace py::cpp::Windows::Perception::Spatial::Preview
64
68
  return nullptr;
65
69
  }
66
70
 
67
- return py::convert(self->obj.CoordinateSystemToNodeTransform());
71
+ return py::convert([&]()
72
+ {
73
+ auto _gil = release_gil();
74
+ return self->obj.CoordinateSystemToNodeTransform();
75
+ }());
68
76
  }
69
77
  catch (...)
70
78
  {
@@ -90,7 +98,11 @@ namespace py::cpp::Windows::Perception::Spatial::Preview
90
98
  return nullptr;
91
99
  }
92
100
 
93
- return py::convert(self->obj.NodeId());
101
+ return py::convert([&]()
102
+ {
103
+ auto _gil = release_gil();
104
+ return self->obj.NodeId();
105
+ }());
94
106
  }
95
107
  catch (...)
96
108
  {
@@ -126,23 +138,20 @@ namespace py::cpp::Windows::Perception::Spatial::Preview
126
138
  static PyMethodDef _methods_SpatialGraphInteropFrameOfReferencePreview[] = {
127
139
  { "_assign_array_", _assign_array_SpatialGraphInteropFrameOfReferencePreview, METH_O | METH_STATIC, nullptr },
128
140
  { "_from", reinterpret_cast<PyCFunction>(_from_SpatialGraphInteropFrameOfReferencePreview), METH_O | METH_STATIC, nullptr },
129
- { }
130
- };
141
+ { }};
131
142
 
132
143
  static PyGetSetDef _getset_SpatialGraphInteropFrameOfReferencePreview[] = {
133
144
  { "coordinate_system", reinterpret_cast<getter>(SpatialGraphInteropFrameOfReferencePreview_get_CoordinateSystem), nullptr, nullptr, nullptr },
134
145
  { "coordinate_system_to_node_transform", reinterpret_cast<getter>(SpatialGraphInteropFrameOfReferencePreview_get_CoordinateSystemToNodeTransform), nullptr, nullptr, nullptr },
135
146
  { "node_id", reinterpret_cast<getter>(SpatialGraphInteropFrameOfReferencePreview_get_NodeId), nullptr, nullptr, nullptr },
136
- { }
137
- };
147
+ { }};
138
148
 
139
149
  static PyType_Slot _type_slots_SpatialGraphInteropFrameOfReferencePreview[] = {
140
150
  { Py_tp_new, reinterpret_cast<void*>(_new_SpatialGraphInteropFrameOfReferencePreview) },
141
151
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_SpatialGraphInteropFrameOfReferencePreview) },
142
152
  { Py_tp_methods, reinterpret_cast<void*>(_methods_SpatialGraphInteropFrameOfReferencePreview) },
143
153
  { Py_tp_getset, reinterpret_cast<void*>(_getset_SpatialGraphInteropFrameOfReferencePreview) },
144
- { }
145
- };
154
+ { }};
146
155
 
147
156
  static PyType_Spec type_spec_SpatialGraphInteropFrameOfReferencePreview = {
148
157
  "winrt._winrt_windows_perception_spatial_preview.SpatialGraphInteropFrameOfReferencePreview",
@@ -162,7 +171,7 @@ namespace py::cpp::Windows::Perception::Spatial::Preview
162
171
 
163
172
  static PyObject* SpatialGraphInteropPreview_CreateCoordinateSystemForNode(PyObject* /*unused*/, PyObject* args) noexcept
164
173
  {
165
- auto arg_count = PyTuple_Size(args);
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::Spatial::Preview
183
192
 
184
193
  auto param0 = py::convert_to<winrt::guid>(args, 0);
185
194
 
186
- return py::convert(winrt::Windows::Perception::Spatial::Preview::SpatialGraphInteropPreview::CreateCoordinateSystemForNode(param0));
195
+ return py::convert([&]()
196
+ {
197
+ auto _gil = release_gil();
198
+ return winrt::Windows::Perception::Spatial::Preview::SpatialGraphInteropPreview::CreateCoordinateSystemForNode(param0);
199
+ }());
187
200
  }
188
201
  catch (...)
189
202
  {
@@ -191,7 +204,18 @@ namespace py::cpp::Windows::Perception::Spatial::Preview
191
204
  return nullptr;
192
205
  }
193
206
  }
194
- else if (arg_count == 2)
207
+ else
208
+ {
209
+ py::set_invalid_arg_count_error(arg_count);
210
+ return nullptr;
211
+ }
212
+ }
213
+
214
+ static PyObject* SpatialGraphInteropPreview_CreateCoordinateSystemForNodeWithPosition(PyObject* /*unused*/, PyObject* args) noexcept
215
+ {
216
+ auto arg_count = PyTuple_GET_SIZE(args);
217
+
218
+ if (arg_count == 2)
195
219
  {
196
220
  try
197
221
  {
@@ -211,7 +235,11 @@ namespace py::cpp::Windows::Perception::Spatial::Preview
211
235
  auto param0 = py::convert_to<winrt::guid>(args, 0);
212
236
  auto param1 = py::convert_to<winrt::Windows::Foundation::Numerics::float3>(args, 1);
213
237
 
214
- return py::convert(winrt::Windows::Perception::Spatial::Preview::SpatialGraphInteropPreview::CreateCoordinateSystemForNode(param0, param1));
238
+ return py::convert([&]()
239
+ {
240
+ auto _gil = release_gil();
241
+ return winrt::Windows::Perception::Spatial::Preview::SpatialGraphInteropPreview::CreateCoordinateSystemForNode(param0, param1);
242
+ }());
215
243
  }
216
244
  catch (...)
217
245
  {
@@ -219,7 +247,18 @@ namespace py::cpp::Windows::Perception::Spatial::Preview
219
247
  return nullptr;
220
248
  }
221
249
  }
222
- else if (arg_count == 3)
250
+ else
251
+ {
252
+ py::set_invalid_arg_count_error(arg_count);
253
+ return nullptr;
254
+ }
255
+ }
256
+
257
+ static PyObject* SpatialGraphInteropPreview_CreateCoordinateSystemForNodeWithPositionAndOrientation(PyObject* /*unused*/, PyObject* args) noexcept
258
+ {
259
+ auto arg_count = PyTuple_GET_SIZE(args);
260
+
261
+ if (arg_count == 3)
223
262
  {
224
263
  try
225
264
  {
@@ -240,7 +279,11 @@ namespace py::cpp::Windows::Perception::Spatial::Preview
240
279
  auto param1 = py::convert_to<winrt::Windows::Foundation::Numerics::float3>(args, 1);
241
280
  auto param2 = py::convert_to<winrt::Windows::Foundation::Numerics::quaternion>(args, 2);
242
281
 
243
- return py::convert(winrt::Windows::Perception::Spatial::Preview::SpatialGraphInteropPreview::CreateCoordinateSystemForNode(param0, param1, param2));
282
+ return py::convert([&]()
283
+ {
284
+ auto _gil = release_gil();
285
+ return winrt::Windows::Perception::Spatial::Preview::SpatialGraphInteropPreview::CreateCoordinateSystemForNode(param0, param1, param2);
286
+ }());
244
287
  }
245
288
  catch (...)
246
289
  {
@@ -257,7 +300,7 @@ namespace py::cpp::Windows::Perception::Spatial::Preview
257
300
 
258
301
  static PyObject* SpatialGraphInteropPreview_CreateLocatorForNode(PyObject* /*unused*/, PyObject* args) noexcept
259
302
  {
260
- auto arg_count = PyTuple_Size(args);
303
+ auto arg_count = PyTuple_GET_SIZE(args);
261
304
 
262
305
  if (arg_count == 1)
263
306
  {
@@ -278,7 +321,11 @@ namespace py::cpp::Windows::Perception::Spatial::Preview
278
321
 
279
322
  auto param0 = py::convert_to<winrt::guid>(args, 0);
280
323
 
281
- return py::convert(winrt::Windows::Perception::Spatial::Preview::SpatialGraphInteropPreview::CreateLocatorForNode(param0));
324
+ return py::convert([&]()
325
+ {
326
+ auto _gil = release_gil();
327
+ return winrt::Windows::Perception::Spatial::Preview::SpatialGraphInteropPreview::CreateLocatorForNode(param0);
328
+ }());
282
329
  }
283
330
  catch (...)
284
331
  {
@@ -295,7 +342,7 @@ namespace py::cpp::Windows::Perception::Spatial::Preview
295
342
 
296
343
  static PyObject* SpatialGraphInteropPreview_TryCreateFrameOfReference(PyObject* /*unused*/, PyObject* args) noexcept
297
344
  {
298
- auto arg_count = PyTuple_Size(args);
345
+ auto arg_count = PyTuple_GET_SIZE(args);
299
346
 
300
347
  if (arg_count == 1)
301
348
  {
@@ -316,7 +363,11 @@ namespace py::cpp::Windows::Perception::Spatial::Preview
316
363
 
317
364
  auto param0 = py::convert_to<winrt::Windows::Perception::Spatial::SpatialCoordinateSystem>(args, 0);
318
365
 
319
- return py::convert(winrt::Windows::Perception::Spatial::Preview::SpatialGraphInteropPreview::TryCreateFrameOfReference(param0));
366
+ return py::convert([&]()
367
+ {
368
+ auto _gil = release_gil();
369
+ return winrt::Windows::Perception::Spatial::Preview::SpatialGraphInteropPreview::TryCreateFrameOfReference(param0);
370
+ }());
320
371
  }
321
372
  catch (...)
322
373
  {
@@ -324,7 +375,18 @@ namespace py::cpp::Windows::Perception::Spatial::Preview
324
375
  return nullptr;
325
376
  }
326
377
  }
327
- else if (arg_count == 2)
378
+ else
379
+ {
380
+ py::set_invalid_arg_count_error(arg_count);
381
+ return nullptr;
382
+ }
383
+ }
384
+
385
+ static PyObject* SpatialGraphInteropPreview_TryCreateFrameOfReferenceWithPosition(PyObject* /*unused*/, PyObject* args) noexcept
386
+ {
387
+ auto arg_count = PyTuple_GET_SIZE(args);
388
+
389
+ if (arg_count == 2)
328
390
  {
329
391
  try
330
392
  {
@@ -344,7 +406,11 @@ namespace py::cpp::Windows::Perception::Spatial::Preview
344
406
  auto param0 = py::convert_to<winrt::Windows::Perception::Spatial::SpatialCoordinateSystem>(args, 0);
345
407
  auto param1 = py::convert_to<winrt::Windows::Foundation::Numerics::float3>(args, 1);
346
408
 
347
- return py::convert(winrt::Windows::Perception::Spatial::Preview::SpatialGraphInteropPreview::TryCreateFrameOfReference(param0, param1));
409
+ return py::convert([&]()
410
+ {
411
+ auto _gil = release_gil();
412
+ return winrt::Windows::Perception::Spatial::Preview::SpatialGraphInteropPreview::TryCreateFrameOfReference(param0, param1);
413
+ }());
348
414
  }
349
415
  catch (...)
350
416
  {
@@ -352,7 +418,18 @@ namespace py::cpp::Windows::Perception::Spatial::Preview
352
418
  return nullptr;
353
419
  }
354
420
  }
355
- else if (arg_count == 3)
421
+ else
422
+ {
423
+ py::set_invalid_arg_count_error(arg_count);
424
+ return nullptr;
425
+ }
426
+ }
427
+
428
+ static PyObject* SpatialGraphInteropPreview_TryCreateFrameOfReferenceWithPositionAndOrientation(PyObject* /*unused*/, PyObject* args) noexcept
429
+ {
430
+ auto arg_count = PyTuple_GET_SIZE(args);
431
+
432
+ if (arg_count == 3)
356
433
  {
357
434
  try
358
435
  {
@@ -373,7 +450,11 @@ namespace py::cpp::Windows::Perception::Spatial::Preview
373
450
  auto param1 = py::convert_to<winrt::Windows::Foundation::Numerics::float3>(args, 1);
374
451
  auto param2 = py::convert_to<winrt::Windows::Foundation::Numerics::quaternion>(args, 2);
375
452
 
376
- return py::convert(winrt::Windows::Perception::Spatial::Preview::SpatialGraphInteropPreview::TryCreateFrameOfReference(param0, param1, param2));
453
+ return py::convert([&]()
454
+ {
455
+ auto _gil = release_gil();
456
+ return winrt::Windows::Perception::Spatial::Preview::SpatialGraphInteropPreview::TryCreateFrameOfReference(param0, param1, param2);
457
+ }());
377
458
  }
378
459
  catch (...)
379
460
  {
@@ -389,19 +470,16 @@ namespace py::cpp::Windows::Perception::Spatial::Preview
389
470
  }
390
471
 
391
472
  static PyMethodDef _methods_SpatialGraphInteropPreview[] = {
392
- { }
393
- };
473
+ { }};
394
474
 
395
475
  static PyGetSetDef _getset_SpatialGraphInteropPreview[] = {
396
- { }
397
- };
476
+ { }};
398
477
 
399
478
  static PyType_Slot _type_slots_SpatialGraphInteropPreview[] = {
400
479
  { Py_tp_new, reinterpret_cast<void*>(_new_SpatialGraphInteropPreview) },
401
480
  { Py_tp_methods, reinterpret_cast<void*>(_methods_SpatialGraphInteropPreview) },
402
481
  { Py_tp_getset, reinterpret_cast<void*>(_getset_SpatialGraphInteropPreview) },
403
- { }
404
- };
482
+ { }};
405
483
 
406
484
  static PyType_Spec type_spec_SpatialGraphInteropPreview = {
407
485
  "winrt._winrt_windows_perception_spatial_preview.SpatialGraphInteropPreview",
@@ -411,15 +489,17 @@ namespace py::cpp::Windows::Perception::Spatial::Preview
411
489
  _type_slots_SpatialGraphInteropPreview};
412
490
 
413
491
  static PyGetSetDef getset_SpatialGraphInteropPreview_Static[] = {
414
- { }
415
- };
492
+ { }};
416
493
 
417
494
  static PyMethodDef methods_SpatialGraphInteropPreview_Static[] = {
418
495
  { "create_coordinate_system_for_node", reinterpret_cast<PyCFunction>(SpatialGraphInteropPreview_CreateCoordinateSystemForNode), METH_VARARGS, nullptr },
496
+ { "create_coordinate_system_for_node_with_position", reinterpret_cast<PyCFunction>(SpatialGraphInteropPreview_CreateCoordinateSystemForNodeWithPosition), METH_VARARGS, nullptr },
497
+ { "create_coordinate_system_for_node_with_position_and_orientation", reinterpret_cast<PyCFunction>(SpatialGraphInteropPreview_CreateCoordinateSystemForNodeWithPositionAndOrientation), METH_VARARGS, nullptr },
419
498
  { "create_locator_for_node", reinterpret_cast<PyCFunction>(SpatialGraphInteropPreview_CreateLocatorForNode), METH_VARARGS, nullptr },
420
499
  { "try_create_frame_of_reference", reinterpret_cast<PyCFunction>(SpatialGraphInteropPreview_TryCreateFrameOfReference), METH_VARARGS, nullptr },
421
- { }
422
- };
500
+ { "try_create_frame_of_reference_with_position", reinterpret_cast<PyCFunction>(SpatialGraphInteropPreview_TryCreateFrameOfReferenceWithPosition), METH_VARARGS, nullptr },
501
+ { "try_create_frame_of_reference_with_position_and_orientation", reinterpret_cast<PyCFunction>(SpatialGraphInteropPreview_TryCreateFrameOfReferenceWithPositionAndOrientation), METH_VARARGS, nullptr },
502
+ { }};
423
503
 
424
504
  static PyType_Slot type_slots_SpatialGraphInteropPreview_Static[] =
425
505
  {
@@ -429,14 +509,12 @@ namespace py::cpp::Windows::Perception::Spatial::Preview
429
509
  { }
430
510
  };
431
511
 
432
- static PyType_Spec type_spec_SpatialGraphInteropPreview_Static =
433
- {
512
+ static PyType_Spec type_spec_SpatialGraphInteropPreview_Static = {
434
513
  "winrt._winrt_windows_perception_spatial_preview.SpatialGraphInteropPreview_Static",
435
514
  static_cast<int>(PyType_Type.tp_basicsize),
436
515
  static_cast<int>(PyType_Type.tp_itemsize),
437
516
  Py_TPFLAGS_DEFAULT,
438
- type_slots_SpatialGraphInteropPreview_Static
439
- };
517
+ type_slots_SpatialGraphInteropPreview_Static};
440
518
 
441
519
  // ----- Windows.Perception.Spatial.Preview Initialization --------------------
442
520
 
@@ -470,6 +548,12 @@ PyMODINIT_FUNC PyInit__winrt_windows_perception_spatial_preview(void) noexcept
470
548
  return nullptr;
471
549
  }
472
550
 
551
+ auto inspectable_meta_type = py::get_inspectable_meta_type();
552
+ if (!inspectable_meta_type)
553
+ {
554
+ return nullptr;
555
+ }
556
+
473
557
  auto object_type = py::get_object_type();
474
558
  if (!object_type)
475
559
  {
@@ -483,13 +567,19 @@ PyMODINIT_FUNC PyInit__winrt_windows_perception_spatial_preview(void) noexcept
483
567
  return nullptr;
484
568
  }
485
569
 
486
- py::pytype_handle SpatialGraphInteropFrameOfReferencePreview_type{py::register_python_type(module.get(), &type_spec_SpatialGraphInteropFrameOfReferencePreview, object_bases.get(), nullptr)};
570
+ py::pytype_handle SpatialGraphInteropFrameOfReferencePreview_type{py::register_python_type(module.get(), &type_spec_SpatialGraphInteropFrameOfReferencePreview, object_bases.get(), inspectable_meta_type)};
487
571
  if (!SpatialGraphInteropFrameOfReferencePreview_type)
488
572
  {
489
573
  return nullptr;
490
574
  }
491
575
 
492
- py::pyobj_handle type_SpatialGraphInteropPreview_Static{PyType_FromSpec(&type_spec_SpatialGraphInteropPreview_Static)};
576
+ py::pyobj_handle SpatialGraphInteropPreview_Static_bases{PyTuple_Pack(1, reinterpret_cast<PyObject*>(inspectable_meta_type))};
577
+ if (!SpatialGraphInteropPreview_Static_bases)
578
+ {
579
+ return nullptr;
580
+ }
581
+
582
+ py::pyobj_handle type_SpatialGraphInteropPreview_Static{PyType_FromSpecWithBases(&type_spec_SpatialGraphInteropPreview_Static, SpatialGraphInteropPreview_Static_bases.get())};
493
583
  if (!type_SpatialGraphInteropPreview_Static)
494
584
  {
495
585
  return nullptr;
@@ -1,14 +1,14 @@
1
1
  # WARNING: Please don't edit this file. It was automatically generated.
2
2
 
3
3
  [build-system]
4
- requires = ["setuptools", "winrt-sdk"]
4
+ requires = ["setuptools>=78", "winrt-sdk"]
5
5
  build-backend = "setuptools.build_meta"
6
6
 
7
7
  [project]
8
8
  name = "winrt-Windows.Perception.Spatial.Preview"
9
9
  description = "Python projection of Windows Runtime (WinRT) APIs"
10
10
  readme = "README.md"
11
- license = { text = "MIT" }
11
+ license = "MIT"
12
12
  classifiers = [
13
13
  "Operating System :: Microsoft :: Windows",
14
14
  "Programming Language :: Python :: 3",
@@ -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.3.0
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.1.0
2
2
 
3
- winrt-runtime==2.3.0
3
+ winrt-runtime==3.1.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_perception_spatial_preview",
@@ -0,0 +1,49 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.1.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.numerics as windows_foundation_numerics
13
+ import winrt.windows.perception.spatial as windows_perception_spatial
14
+
15
+ Self = typing.TypeVar('Self')
16
+
17
+ @typing.final
18
+ class SpatialGraphInteropFrameOfReferencePreview(winrt.system.Object):
19
+ # Windows.Perception.Spatial.SpatialCoordinateSystem Windows.Perception.Spatial.Preview.SpatialGraphInteropFrameOfReferencePreview::get_CoordinateSystem()
20
+ @_property
21
+ def coordinate_system(self) -> windows_perception_spatial.SpatialCoordinateSystem: ...
22
+ # Windows.Foundation.Numerics.Matrix4x4 Windows.Perception.Spatial.Preview.SpatialGraphInteropFrameOfReferencePreview::get_CoordinateSystemToNodeTransform()
23
+ @_property
24
+ def coordinate_system_to_node_transform(self) -> windows_foundation_numerics.Matrix4x4: ...
25
+ # System.Guid Windows.Perception.Spatial.Preview.SpatialGraphInteropFrameOfReferencePreview::get_NodeId()
26
+ @_property
27
+ def node_id(self) -> _uuid.UUID: ...
28
+
29
+ @typing.final
30
+ class SpatialGraphInteropPreview_Static(winrt._winrt.IInspectable_Static):
31
+ # Windows.Perception.Spatial.SpatialCoordinateSystem Windows.Perception.Spatial.Preview.SpatialGraphInteropPreview::CreateCoordinateSystemForNode(System.Guid)
32
+ def create_coordinate_system_for_node(cls, node_id: _uuid.UUID, /) -> windows_perception_spatial.SpatialCoordinateSystem: ...
33
+ # Windows.Perception.Spatial.SpatialCoordinateSystem Windows.Perception.Spatial.Preview.SpatialGraphInteropPreview::CreateCoordinateSystemForNode(System.Guid,Windows.Foundation.Numerics.Vector3)
34
+ def create_coordinate_system_for_node_with_position(cls, node_id: _uuid.UUID, relative_position: typing.Union[windows_foundation_numerics.Vector3, typing.Tuple[winrt.system.Single, winrt.system.Single, winrt.system.Single]], /) -> windows_perception_spatial.SpatialCoordinateSystem: ...
35
+ # Windows.Perception.Spatial.SpatialCoordinateSystem Windows.Perception.Spatial.Preview.SpatialGraphInteropPreview::CreateCoordinateSystemForNode(System.Guid,Windows.Foundation.Numerics.Vector3,Windows.Foundation.Numerics.Quaternion)
36
+ def create_coordinate_system_for_node_with_position_and_orientation(cls, node_id: _uuid.UUID, relative_position: typing.Union[windows_foundation_numerics.Vector3, typing.Tuple[winrt.system.Single, winrt.system.Single, winrt.system.Single]], relative_orientation: typing.Union[windows_foundation_numerics.Quaternion, typing.Tuple[winrt.system.Single, winrt.system.Single, winrt.system.Single, winrt.system.Single]], /) -> windows_perception_spatial.SpatialCoordinateSystem: ...
37
+ # Windows.Perception.Spatial.SpatialLocator Windows.Perception.Spatial.Preview.SpatialGraphInteropPreview::CreateLocatorForNode(System.Guid)
38
+ def create_locator_for_node(cls, node_id: _uuid.UUID, /) -> windows_perception_spatial.SpatialLocator: ...
39
+ # Windows.Perception.Spatial.Preview.SpatialGraphInteropFrameOfReferencePreview Windows.Perception.Spatial.Preview.SpatialGraphInteropPreview::TryCreateFrameOfReference(Windows.Perception.Spatial.SpatialCoordinateSystem)
40
+ def try_create_frame_of_reference(cls, coordinate_system: windows_perception_spatial.SpatialCoordinateSystem, /) -> typing.Optional[SpatialGraphInteropFrameOfReferencePreview]: ...
41
+ # Windows.Perception.Spatial.Preview.SpatialGraphInteropFrameOfReferencePreview Windows.Perception.Spatial.Preview.SpatialGraphInteropPreview::TryCreateFrameOfReference(Windows.Perception.Spatial.SpatialCoordinateSystem,Windows.Foundation.Numerics.Vector3)
42
+ def try_create_frame_of_reference_with_position(cls, coordinate_system: windows_perception_spatial.SpatialCoordinateSystem, relative_position: typing.Union[windows_foundation_numerics.Vector3, typing.Tuple[winrt.system.Single, winrt.system.Single, winrt.system.Single]], /) -> typing.Optional[SpatialGraphInteropFrameOfReferencePreview]: ...
43
+ # Windows.Perception.Spatial.Preview.SpatialGraphInteropFrameOfReferencePreview Windows.Perception.Spatial.Preview.SpatialGraphInteropPreview::TryCreateFrameOfReference(Windows.Perception.Spatial.SpatialCoordinateSystem,Windows.Foundation.Numerics.Vector3,Windows.Foundation.Numerics.Quaternion)
44
+ def try_create_frame_of_reference_with_position_and_orientation(cls, coordinate_system: windows_perception_spatial.SpatialCoordinateSystem, relative_position: typing.Union[windows_foundation_numerics.Vector3, typing.Tuple[winrt.system.Single, winrt.system.Single, winrt.system.Single]], relative_orientation: typing.Union[windows_foundation_numerics.Quaternion, typing.Tuple[winrt.system.Single, winrt.system.Single, winrt.system.Single, winrt.system.Single]], /) -> typing.Optional[SpatialGraphInteropFrameOfReferencePreview]: ...
45
+
46
+ @typing.final
47
+ class SpatialGraphInteropPreview(winrt.system.Object, metaclass=SpatialGraphInteropPreview_Static):
48
+ pass
49
+
@@ -0,0 +1,13 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.1.0
2
+
3
+ import winrt.system
4
+ from winrt._winrt_windows_perception_spatial_preview import (
5
+ SpatialGraphInteropFrameOfReferencePreview,
6
+ SpatialGraphInteropPreview,
7
+ )
8
+
9
+ __all__ = [
10
+ "SpatialGraphInteropFrameOfReferencePreview",
11
+ "SpatialGraphInteropPreview",
12
+ ]
13
+
@@ -1,8 +1,8 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: winrt-Windows.Perception.Spatial.Preview
3
- Version: 2.3.0
3
+ Version: 3.1.0
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
- License: MIT
5
+ License-Expression: MIT
6
6
  Project-URL: Documentation, https://pywinrt.readthedocs.io
7
7
  Project-URL: Repository, https://github.com/pywinrt/pywinrt
8
8
  Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
@@ -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.3.0
15
+ Requires-Dist: winrt-runtime==3.1.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.Foundation.Numerics[all]==2.3.0; extra == "all"
18
- Requires-Dist: winrt-Windows.Perception.Spatial[all]==2.3.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.Foundation.Numerics[all]==3.1.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Perception.Spatial[all]==3.1.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.1.0
2
+
3
+ [all]
4
+ winrt-Windows.Foundation.Numerics[all]==3.1.0
5
+ winrt-Windows.Perception.Spatial[all]==3.1.0
@@ -1,4 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
2
-
3
- winrt-Windows.Foundation.Numerics[all]==2.3.0
4
- winrt-Windows.Perception.Spatial[all]==2.3.0
@@ -1,47 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.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.numerics as windows_foundation_numerics
13
- import winrt.windows.perception.spatial as windows_perception_spatial
14
-
15
- Self = typing.TypeVar('Self')
16
-
17
- @typing.final
18
- class SpatialGraphInteropFrameOfReferencePreview(winrt.system.Object):
19
- @staticmethod
20
- def _from(obj: winrt.system.Object, /) -> SpatialGraphInteropFrameOfReferencePreview: ...
21
- @_property
22
- def coordinate_system(self) -> typing.Optional[windows_perception_spatial.SpatialCoordinateSystem]: ...
23
- @_property
24
- def coordinate_system_to_node_transform(self) -> windows_foundation_numerics.Matrix4x4: ...
25
- @_property
26
- def node_id(self) -> _uuid.UUID: ...
27
-
28
- @typing.final
29
- class SpatialGraphInteropPreview_Static(type):
30
- @typing.overload
31
- def create_coordinate_system_for_node(cls, node_id: _uuid.UUID, /) -> typing.Optional[windows_perception_spatial.SpatialCoordinateSystem]: ...
32
- @typing.overload
33
- def create_coordinate_system_for_node(cls, node_id: _uuid.UUID, relative_position: windows_foundation_numerics.Vector3, /) -> typing.Optional[windows_perception_spatial.SpatialCoordinateSystem]: ...
34
- @typing.overload
35
- def create_coordinate_system_for_node(cls, node_id: _uuid.UUID, relative_position: windows_foundation_numerics.Vector3, relative_orientation: windows_foundation_numerics.Quaternion, /) -> typing.Optional[windows_perception_spatial.SpatialCoordinateSystem]: ...
36
- def create_locator_for_node(cls, node_id: _uuid.UUID, /) -> typing.Optional[windows_perception_spatial.SpatialLocator]: ...
37
- @typing.overload
38
- def try_create_frame_of_reference(cls, coordinate_system: typing.Optional[windows_perception_spatial.SpatialCoordinateSystem], /) -> typing.Optional[SpatialGraphInteropFrameOfReferencePreview]: ...
39
- @typing.overload
40
- def try_create_frame_of_reference(cls, coordinate_system: typing.Optional[windows_perception_spatial.SpatialCoordinateSystem], relative_position: windows_foundation_numerics.Vector3, /) -> typing.Optional[SpatialGraphInteropFrameOfReferencePreview]: ...
41
- @typing.overload
42
- def try_create_frame_of_reference(cls, coordinate_system: typing.Optional[windows_perception_spatial.SpatialCoordinateSystem], relative_position: windows_foundation_numerics.Vector3, relative_orientation: windows_foundation_numerics.Quaternion, /) -> typing.Optional[SpatialGraphInteropFrameOfReferencePreview]: ...
43
-
44
- @typing.final
45
- class SpatialGraphInteropPreview(winrt.system.Object, metaclass=SpatialGraphInteropPreview_Static):
46
- pass
47
-
@@ -1,12 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
2
-
3
- import winrt.system
4
- from winrt import _winrt_windows_perception_spatial_preview
5
-
6
- __all__ = [
7
- "SpatialGraphInteropFrameOfReferencePreview",
8
- "SpatialGraphInteropPreview",
9
- ]
10
-
11
- SpatialGraphInteropFrameOfReferencePreview = _winrt_windows_perception_spatial_preview.SpatialGraphInteropFrameOfReferencePreview
12
- SpatialGraphInteropPreview = _winrt_windows_perception_spatial_preview.SpatialGraphInteropPreview
@@ -1,5 +0,0 @@
1
- winrt-runtime==2.3.0
2
-
3
- [all]
4
- winrt-Windows.Foundation.Numerics[all]==2.3.0
5
- winrt-Windows.Perception.Spatial[all]==2.3.0