winrt-Windows.Devices 2.0.0b2__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.Devices-2.0.0b2 → winrt_windows_devices-2.1.0}/PKG-INFO +7 -1
- winrt_windows_devices-2.1.0/all-requirements.txt +7 -0
- {winrt-Windows.Devices-2.0.0b2 → winrt_windows_devices-2.1.0}/py.Windows.Devices.cpp +96 -107
- {winrt-Windows.Devices-2.0.0b2 → winrt_windows_devices-2.1.0}/pyproject.toml +2 -2
- winrt_windows_devices-2.1.0/pywinrt-version.txt +1 -0
- {winrt-Windows.Devices-2.0.0b2 → winrt_windows_devices-2.1.0}/requirements.txt +2 -2
- winrt_windows_devices-2.1.0/setup.py +31 -0
- winrt_windows_devices-2.1.0/winrt/_winrt_windows_devices.pyi +62 -0
- {winrt-Windows.Devices-2.0.0b2 → winrt_windows_devices-2.1.0}/winrt/windows/devices/__init__.py +1 -1
- winrt_windows_devices-2.1.0/winrt/windows/devices/py.typed +0 -0
- {winrt-Windows.Devices-2.0.0b2 → winrt_windows_devices-2.1.0}/winrt_Windows.Devices.egg-info/PKG-INFO +7 -1
- {winrt-Windows.Devices-2.0.0b2 → winrt_windows_devices-2.1.0}/winrt_Windows.Devices.egg-info/SOURCES.txt +1 -0
- winrt_windows_devices-2.1.0/winrt_Windows.Devices.egg-info/requires.txt +8 -0
- winrt-Windows.Devices-2.0.0b2/all-requirements.txt +0 -7
- winrt-Windows.Devices-2.0.0b2/pywinrt-version.txt +0 -1
- winrt-Windows.Devices-2.0.0b2/setup.py +0 -16
- winrt-Windows.Devices-2.0.0b2/winrt/_winrt_windows_devices.pyi +0 -62
- winrt-Windows.Devices-2.0.0b2/winrt_Windows.Devices.egg-info/requires.txt +0 -8
- {winrt-Windows.Devices-2.0.0b2 → winrt_windows_devices-2.1.0}/README.md +0 -0
- {winrt-Windows.Devices-2.0.0b2 → winrt_windows_devices-2.1.0}/setup.cfg +0 -0
- {winrt-Windows.Devices-2.0.0b2 → winrt_windows_devices-2.1.0}/winrt_Windows.Devices.egg-info/dependency_links.txt +0 -0
- {winrt-Windows.Devices-2.0.0b2 → winrt_windows_devices-2.1.0}/winrt_Windows.Devices.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.Devices
|
|
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,7 +12,13 @@ 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.1.0
|
|
15
16
|
Provides-Extra: all
|
|
17
|
+
Requires-Dist: winrt-Windows.Devices.Adc.Provider[all]==2.1.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Devices.Gpio.Provider[all]==2.1.0; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.Devices.I2c.Provider[all]==2.1.0; extra == "all"
|
|
20
|
+
Requires-Dist: winrt-Windows.Devices.Pwm.Provider[all]==2.1.0; extra == "all"
|
|
21
|
+
Requires-Dist: winrt-Windows.Devices.Spi.Provider[all]==2.1.0; extra == "all"
|
|
16
22
|
|
|
17
23
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
18
24
|
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
|
|
2
|
+
|
|
3
|
+
winrt-Windows.Devices.Adc.Provider[all]==2.1.0
|
|
4
|
+
winrt-Windows.Devices.Gpio.Provider[all]==2.1.0
|
|
5
|
+
winrt-Windows.Devices.I2c.Provider[all]==2.1.0
|
|
6
|
+
winrt-Windows.Devices.Pwm.Provider[all]==2.1.0
|
|
7
|
+
winrt-Windows.Devices.Spi.Provider[all]==2.1.0
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.
|
|
1
|
+
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
|
|
2
2
|
|
|
3
3
|
#include "py.Windows.Devices.h"
|
|
4
4
|
|
|
5
|
-
|
|
6
5
|
namespace py::cpp::Windows::Devices
|
|
7
6
|
{
|
|
8
7
|
// ----- LowLevelDevicesAggregateProvider class --------------------
|
|
@@ -52,14 +51,14 @@ namespace py::cpp::Windows::Devices
|
|
|
52
51
|
|
|
53
52
|
static PyObject* LowLevelDevicesAggregateProvider_get_AdcControllerProvider(py::wrapper::Windows::Devices::LowLevelDevicesAggregateProvider* self, void* /*unused*/) noexcept
|
|
54
53
|
{
|
|
55
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.LowLevelDevicesAggregateProvider", L"AdcControllerProvider"))
|
|
56
|
-
{
|
|
57
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
58
|
-
return nullptr;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
54
|
try
|
|
62
55
|
{
|
|
56
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.LowLevelDevicesAggregateProvider", L"AdcControllerProvider"))
|
|
57
|
+
{
|
|
58
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
59
|
+
return nullptr;
|
|
60
|
+
}
|
|
61
|
+
|
|
63
62
|
return py::convert(self->obj.AdcControllerProvider());
|
|
64
63
|
}
|
|
65
64
|
catch (...)
|
|
@@ -71,14 +70,14 @@ namespace py::cpp::Windows::Devices
|
|
|
71
70
|
|
|
72
71
|
static PyObject* LowLevelDevicesAggregateProvider_get_GpioControllerProvider(py::wrapper::Windows::Devices::LowLevelDevicesAggregateProvider* self, void* /*unused*/) noexcept
|
|
73
72
|
{
|
|
74
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.LowLevelDevicesAggregateProvider", L"GpioControllerProvider"))
|
|
75
|
-
{
|
|
76
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
77
|
-
return nullptr;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
73
|
try
|
|
81
74
|
{
|
|
75
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.LowLevelDevicesAggregateProvider", L"GpioControllerProvider"))
|
|
76
|
+
{
|
|
77
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
78
|
+
return nullptr;
|
|
79
|
+
}
|
|
80
|
+
|
|
82
81
|
return py::convert(self->obj.GpioControllerProvider());
|
|
83
82
|
}
|
|
84
83
|
catch (...)
|
|
@@ -90,14 +89,14 @@ namespace py::cpp::Windows::Devices
|
|
|
90
89
|
|
|
91
90
|
static PyObject* LowLevelDevicesAggregateProvider_get_I2cControllerProvider(py::wrapper::Windows::Devices::LowLevelDevicesAggregateProvider* self, void* /*unused*/) noexcept
|
|
92
91
|
{
|
|
93
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.LowLevelDevicesAggregateProvider", L"I2cControllerProvider"))
|
|
94
|
-
{
|
|
95
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
96
|
-
return nullptr;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
92
|
try
|
|
100
93
|
{
|
|
94
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.LowLevelDevicesAggregateProvider", L"I2cControllerProvider"))
|
|
95
|
+
{
|
|
96
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
97
|
+
return nullptr;
|
|
98
|
+
}
|
|
99
|
+
|
|
101
100
|
return py::convert(self->obj.I2cControllerProvider());
|
|
102
101
|
}
|
|
103
102
|
catch (...)
|
|
@@ -109,14 +108,14 @@ namespace py::cpp::Windows::Devices
|
|
|
109
108
|
|
|
110
109
|
static PyObject* LowLevelDevicesAggregateProvider_get_PwmControllerProvider(py::wrapper::Windows::Devices::LowLevelDevicesAggregateProvider* self, void* /*unused*/) noexcept
|
|
111
110
|
{
|
|
112
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.LowLevelDevicesAggregateProvider", L"PwmControllerProvider"))
|
|
113
|
-
{
|
|
114
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
115
|
-
return nullptr;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
111
|
try
|
|
119
112
|
{
|
|
113
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.LowLevelDevicesAggregateProvider", L"PwmControllerProvider"))
|
|
114
|
+
{
|
|
115
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
116
|
+
return nullptr;
|
|
117
|
+
}
|
|
118
|
+
|
|
120
119
|
return py::convert(self->obj.PwmControllerProvider());
|
|
121
120
|
}
|
|
122
121
|
catch (...)
|
|
@@ -128,14 +127,14 @@ namespace py::cpp::Windows::Devices
|
|
|
128
127
|
|
|
129
128
|
static PyObject* LowLevelDevicesAggregateProvider_get_SpiControllerProvider(py::wrapper::Windows::Devices::LowLevelDevicesAggregateProvider* self, void* /*unused*/) noexcept
|
|
130
129
|
{
|
|
131
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.LowLevelDevicesAggregateProvider", L"SpiControllerProvider"))
|
|
132
|
-
{
|
|
133
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
134
|
-
return nullptr;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
130
|
try
|
|
138
131
|
{
|
|
132
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.LowLevelDevicesAggregateProvider", L"SpiControllerProvider"))
|
|
133
|
+
{
|
|
134
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
135
|
+
return nullptr;
|
|
136
|
+
}
|
|
137
|
+
|
|
139
138
|
return py::convert(self->obj.SpiControllerProvider());
|
|
140
139
|
}
|
|
141
140
|
catch (...)
|
|
@@ -184,23 +183,20 @@ namespace py::cpp::Windows::Devices
|
|
|
184
183
|
{ }
|
|
185
184
|
};
|
|
186
185
|
|
|
187
|
-
static PyType_Slot _type_slots_LowLevelDevicesAggregateProvider[] =
|
|
188
|
-
{
|
|
186
|
+
static PyType_Slot _type_slots_LowLevelDevicesAggregateProvider[] = {
|
|
189
187
|
{ Py_tp_new, reinterpret_cast<void*>(_new_LowLevelDevicesAggregateProvider) },
|
|
190
188
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_LowLevelDevicesAggregateProvider) },
|
|
191
189
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_LowLevelDevicesAggregateProvider) },
|
|
192
190
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_LowLevelDevicesAggregateProvider) },
|
|
193
|
-
{ }
|
|
191
|
+
{ }
|
|
194
192
|
};
|
|
195
193
|
|
|
196
|
-
static PyType_Spec type_spec_LowLevelDevicesAggregateProvider =
|
|
197
|
-
{
|
|
194
|
+
static PyType_Spec type_spec_LowLevelDevicesAggregateProvider = {
|
|
198
195
|
"winrt._winrt_windows_devices.LowLevelDevicesAggregateProvider",
|
|
199
196
|
sizeof(py::wrapper::Windows::Devices::LowLevelDevicesAggregateProvider),
|
|
200
197
|
0,
|
|
201
198
|
Py_TPFLAGS_DEFAULT,
|
|
202
|
-
_type_slots_LowLevelDevicesAggregateProvider
|
|
203
|
-
};
|
|
199
|
+
_type_slots_LowLevelDevicesAggregateProvider};
|
|
204
200
|
|
|
205
201
|
// ----- LowLevelDevicesController class --------------------
|
|
206
202
|
|
|
@@ -221,14 +217,14 @@ namespace py::cpp::Windows::Devices
|
|
|
221
217
|
|
|
222
218
|
static PyObject* LowLevelDevicesController_get_DefaultProvider(PyObject* /*unused*/, void* /*unused*/) noexcept
|
|
223
219
|
{
|
|
224
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.LowLevelDevicesController", L"DefaultProvider"))
|
|
225
|
-
{
|
|
226
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
227
|
-
return nullptr;
|
|
228
|
-
}
|
|
229
|
-
|
|
230
220
|
try
|
|
231
221
|
{
|
|
222
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.LowLevelDevicesController", L"DefaultProvider"))
|
|
223
|
+
{
|
|
224
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
225
|
+
return nullptr;
|
|
226
|
+
}
|
|
227
|
+
|
|
232
228
|
return py::convert(winrt::Windows::Devices::LowLevelDevicesController::DefaultProvider());
|
|
233
229
|
}
|
|
234
230
|
catch (...)
|
|
@@ -240,12 +236,6 @@ namespace py::cpp::Windows::Devices
|
|
|
240
236
|
|
|
241
237
|
static int LowLevelDevicesController_put_DefaultProvider(PyObject* /*unused*/, PyObject* arg, void* /*unused*/) noexcept
|
|
242
238
|
{
|
|
243
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.LowLevelDevicesController", L"DefaultProvider"))
|
|
244
|
-
{
|
|
245
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
246
|
-
return -1;
|
|
247
|
-
}
|
|
248
|
-
|
|
249
239
|
if (arg == nullptr)
|
|
250
240
|
{
|
|
251
241
|
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
@@ -254,6 +244,12 @@ namespace py::cpp::Windows::Devices
|
|
|
254
244
|
|
|
255
245
|
try
|
|
256
246
|
{
|
|
247
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.LowLevelDevicesController", L"DefaultProvider"))
|
|
248
|
+
{
|
|
249
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
250
|
+
return -1;
|
|
251
|
+
}
|
|
252
|
+
|
|
257
253
|
auto param0 = py::convert_to<winrt::Windows::Devices::ILowLevelDevicesAggregateProvider>(arg);
|
|
258
254
|
|
|
259
255
|
winrt::Windows::Devices::LowLevelDevicesController::DefaultProvider(param0);
|
|
@@ -300,23 +296,20 @@ namespace py::cpp::Windows::Devices
|
|
|
300
296
|
{ }
|
|
301
297
|
};
|
|
302
298
|
|
|
303
|
-
static PyType_Slot _type_slots_LowLevelDevicesController[] =
|
|
304
|
-
{
|
|
299
|
+
static PyType_Slot _type_slots_LowLevelDevicesController[] = {
|
|
305
300
|
{ Py_tp_new, reinterpret_cast<void*>(_new_LowLevelDevicesController) },
|
|
306
301
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_LowLevelDevicesController) },
|
|
307
302
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_LowLevelDevicesController) },
|
|
308
303
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_LowLevelDevicesController) },
|
|
309
|
-
{ }
|
|
304
|
+
{ }
|
|
310
305
|
};
|
|
311
306
|
|
|
312
|
-
static PyType_Spec type_spec_LowLevelDevicesController =
|
|
313
|
-
{
|
|
307
|
+
static PyType_Spec type_spec_LowLevelDevicesController = {
|
|
314
308
|
"winrt._winrt_windows_devices.LowLevelDevicesController",
|
|
315
309
|
sizeof(py::wrapper::Windows::Devices::LowLevelDevicesController),
|
|
316
310
|
0,
|
|
317
311
|
Py_TPFLAGS_DEFAULT,
|
|
318
|
-
_type_slots_LowLevelDevicesController
|
|
319
|
-
};
|
|
312
|
+
_type_slots_LowLevelDevicesController};
|
|
320
313
|
|
|
321
314
|
static PyGetSetDef getset_LowLevelDevicesController_Static[] = {
|
|
322
315
|
{ "default_provider", reinterpret_cast<getter>(LowLevelDevicesController_get_DefaultProvider), reinterpret_cast<setter>(LowLevelDevicesController_put_DefaultProvider), nullptr, nullptr },
|
|
@@ -363,14 +356,14 @@ namespace py::cpp::Windows::Devices
|
|
|
363
356
|
|
|
364
357
|
static PyObject* ILowLevelDevicesAggregateProvider_get_AdcControllerProvider(py::wrapper::Windows::Devices::ILowLevelDevicesAggregateProvider* self, void* /*unused*/) noexcept
|
|
365
358
|
{
|
|
366
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.ILowLevelDevicesAggregateProvider", L"AdcControllerProvider"))
|
|
367
|
-
{
|
|
368
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
369
|
-
return nullptr;
|
|
370
|
-
}
|
|
371
|
-
|
|
372
359
|
try
|
|
373
360
|
{
|
|
361
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.ILowLevelDevicesAggregateProvider", L"AdcControllerProvider"))
|
|
362
|
+
{
|
|
363
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
364
|
+
return nullptr;
|
|
365
|
+
}
|
|
366
|
+
|
|
374
367
|
return py::convert(self->obj.AdcControllerProvider());
|
|
375
368
|
}
|
|
376
369
|
catch (...)
|
|
@@ -382,14 +375,14 @@ namespace py::cpp::Windows::Devices
|
|
|
382
375
|
|
|
383
376
|
static PyObject* ILowLevelDevicesAggregateProvider_get_GpioControllerProvider(py::wrapper::Windows::Devices::ILowLevelDevicesAggregateProvider* self, void* /*unused*/) noexcept
|
|
384
377
|
{
|
|
385
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.ILowLevelDevicesAggregateProvider", L"GpioControllerProvider"))
|
|
386
|
-
{
|
|
387
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
388
|
-
return nullptr;
|
|
389
|
-
}
|
|
390
|
-
|
|
391
378
|
try
|
|
392
379
|
{
|
|
380
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.ILowLevelDevicesAggregateProvider", L"GpioControllerProvider"))
|
|
381
|
+
{
|
|
382
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
383
|
+
return nullptr;
|
|
384
|
+
}
|
|
385
|
+
|
|
393
386
|
return py::convert(self->obj.GpioControllerProvider());
|
|
394
387
|
}
|
|
395
388
|
catch (...)
|
|
@@ -401,14 +394,14 @@ namespace py::cpp::Windows::Devices
|
|
|
401
394
|
|
|
402
395
|
static PyObject* ILowLevelDevicesAggregateProvider_get_I2cControllerProvider(py::wrapper::Windows::Devices::ILowLevelDevicesAggregateProvider* self, void* /*unused*/) noexcept
|
|
403
396
|
{
|
|
404
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.ILowLevelDevicesAggregateProvider", L"I2cControllerProvider"))
|
|
405
|
-
{
|
|
406
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
407
|
-
return nullptr;
|
|
408
|
-
}
|
|
409
|
-
|
|
410
397
|
try
|
|
411
398
|
{
|
|
399
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.ILowLevelDevicesAggregateProvider", L"I2cControllerProvider"))
|
|
400
|
+
{
|
|
401
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
402
|
+
return nullptr;
|
|
403
|
+
}
|
|
404
|
+
|
|
412
405
|
return py::convert(self->obj.I2cControllerProvider());
|
|
413
406
|
}
|
|
414
407
|
catch (...)
|
|
@@ -420,14 +413,14 @@ namespace py::cpp::Windows::Devices
|
|
|
420
413
|
|
|
421
414
|
static PyObject* ILowLevelDevicesAggregateProvider_get_PwmControllerProvider(py::wrapper::Windows::Devices::ILowLevelDevicesAggregateProvider* self, void* /*unused*/) noexcept
|
|
422
415
|
{
|
|
423
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.ILowLevelDevicesAggregateProvider", L"PwmControllerProvider"))
|
|
424
|
-
{
|
|
425
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
426
|
-
return nullptr;
|
|
427
|
-
}
|
|
428
|
-
|
|
429
416
|
try
|
|
430
417
|
{
|
|
418
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.ILowLevelDevicesAggregateProvider", L"PwmControllerProvider"))
|
|
419
|
+
{
|
|
420
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
421
|
+
return nullptr;
|
|
422
|
+
}
|
|
423
|
+
|
|
431
424
|
return py::convert(self->obj.PwmControllerProvider());
|
|
432
425
|
}
|
|
433
426
|
catch (...)
|
|
@@ -439,14 +432,14 @@ namespace py::cpp::Windows::Devices
|
|
|
439
432
|
|
|
440
433
|
static PyObject* ILowLevelDevicesAggregateProvider_get_SpiControllerProvider(py::wrapper::Windows::Devices::ILowLevelDevicesAggregateProvider* self, void* /*unused*/) noexcept
|
|
441
434
|
{
|
|
442
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.ILowLevelDevicesAggregateProvider", L"SpiControllerProvider"))
|
|
443
|
-
{
|
|
444
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
445
|
-
return nullptr;
|
|
446
|
-
}
|
|
447
|
-
|
|
448
435
|
try
|
|
449
436
|
{
|
|
437
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.ILowLevelDevicesAggregateProvider", L"SpiControllerProvider"))
|
|
438
|
+
{
|
|
439
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
440
|
+
return nullptr;
|
|
441
|
+
}
|
|
442
|
+
|
|
450
443
|
return py::convert(self->obj.SpiControllerProvider());
|
|
451
444
|
}
|
|
452
445
|
catch (...)
|
|
@@ -495,39 +488,35 @@ namespace py::cpp::Windows::Devices
|
|
|
495
488
|
{ }
|
|
496
489
|
};
|
|
497
490
|
|
|
498
|
-
static PyType_Slot _type_slots_ILowLevelDevicesAggregateProvider[] =
|
|
499
|
-
{
|
|
491
|
+
static PyType_Slot _type_slots_ILowLevelDevicesAggregateProvider[] = {
|
|
500
492
|
{ Py_tp_new, reinterpret_cast<void*>(_new_ILowLevelDevicesAggregateProvider) },
|
|
501
493
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_ILowLevelDevicesAggregateProvider) },
|
|
502
494
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_ILowLevelDevicesAggregateProvider) },
|
|
503
495
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_ILowLevelDevicesAggregateProvider) },
|
|
504
|
-
{ }
|
|
496
|
+
{ }
|
|
505
497
|
};
|
|
506
498
|
|
|
507
|
-
static PyType_Spec type_spec_ILowLevelDevicesAggregateProvider =
|
|
508
|
-
{
|
|
499
|
+
static PyType_Spec type_spec_ILowLevelDevicesAggregateProvider = {
|
|
509
500
|
"winrt._winrt_windows_devices.ILowLevelDevicesAggregateProvider",
|
|
510
501
|
sizeof(py::wrapper::Windows::Devices::ILowLevelDevicesAggregateProvider),
|
|
511
502
|
0,
|
|
512
503
|
Py_TPFLAGS_DEFAULT,
|
|
513
|
-
_type_slots_ILowLevelDevicesAggregateProvider
|
|
514
|
-
};
|
|
504
|
+
_type_slots_ILowLevelDevicesAggregateProvider};
|
|
515
505
|
|
|
516
506
|
// ----- Windows.Devices Initialization --------------------
|
|
517
|
-
PyDoc_STRVAR(module_doc, "Windows::Devices");
|
|
518
|
-
|
|
519
507
|
|
|
520
|
-
|
|
521
|
-
= {PyModuleDef_HEAD_INIT,
|
|
522
|
-
"_winrt_windows_devices",
|
|
523
|
-
module_doc,
|
|
524
|
-
0,
|
|
525
|
-
nullptr,
|
|
526
|
-
nullptr,
|
|
527
|
-
nullptr,
|
|
528
|
-
nullptr,
|
|
529
|
-
nullptr};
|
|
508
|
+
PyDoc_STRVAR(module_doc, "Windows.Devices");
|
|
530
509
|
|
|
510
|
+
static PyModuleDef module_def = {
|
|
511
|
+
PyModuleDef_HEAD_INIT,
|
|
512
|
+
"_winrt_windows_devices",
|
|
513
|
+
module_doc,
|
|
514
|
+
0,
|
|
515
|
+
nullptr,
|
|
516
|
+
nullptr,
|
|
517
|
+
nullptr,
|
|
518
|
+
nullptr,
|
|
519
|
+
nullptr};
|
|
531
520
|
} // py::cpp::Windows::Devices
|
|
532
521
|
|
|
533
522
|
PyMODINIT_FUNC PyInit__winrt_windows_devices(void) noexcept
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# WARNING: Please don't edit this file. It was automatically generated.
|
|
2
2
|
|
|
3
3
|
[build-system]
|
|
4
|
-
requires = ["setuptools", "
|
|
4
|
+
requires = ["setuptools", "winrt-sdk"]
|
|
5
5
|
build-backend = "setuptools.build_meta"
|
|
6
6
|
|
|
7
7
|
[project]
|
|
@@ -30,7 +30,7 @@ dependencies = { file = "requirements.txt" }
|
|
|
30
30
|
optional-dependencies.all = { file = "all-requirements.txt" }
|
|
31
31
|
|
|
32
32
|
[tool.setuptools.package-data]
|
|
33
|
-
|
|
33
|
+
"*" = ["*.pyi", "py.typed"]
|
|
34
34
|
|
|
35
35
|
[tool.cibuildwheel]
|
|
36
36
|
# use local winrt-sdk build dependency
|
|
@@ -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.
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
|
|
2
2
|
|
|
3
|
-
winrt-runtime==2.
|
|
3
|
+
winrt-runtime==2.1.0
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was automatically generated.
|
|
2
|
+
|
|
3
|
+
from setuptools import Extension, setup
|
|
4
|
+
from setuptools.command.build_ext import build_ext
|
|
5
|
+
from winrt_sdk import get_include_dirs
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class build_ext_ex(build_ext):
|
|
9
|
+
def build_extension(self, ext):
|
|
10
|
+
if self.compiler.compiler_type == "msvc":
|
|
11
|
+
ext.extra_compile_args = ["/std:c++20", "/permissive-"]
|
|
12
|
+
elif self.compiler.compiler_type == "mingw32":
|
|
13
|
+
ext.extra_compile_args = ["-std=c++20", "-D_WIN32_WINNT=_WIN32_WINNT_WIN10"]
|
|
14
|
+
ext.extra_link_args = ["-loleaut32"]
|
|
15
|
+
else:
|
|
16
|
+
raise ValueError(f"Unsupported compiler: {self.compiler.compiler_type}")
|
|
17
|
+
|
|
18
|
+
build_ext.build_extension(self, ext)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
setup(
|
|
22
|
+
cmdclass = {'build_ext': build_ext_ex},
|
|
23
|
+
ext_modules=[
|
|
24
|
+
Extension(
|
|
25
|
+
"winrt._winrt_windows_devices",
|
|
26
|
+
sources=["py.Windows.Devices.cpp"],
|
|
27
|
+
include_dirs=get_include_dirs(),
|
|
28
|
+
libraries=["windowsapp"],
|
|
29
|
+
)
|
|
30
|
+
],
|
|
31
|
+
)
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.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.devices.adc.provider as windows_devices_adc_provider
|
|
13
|
+
import winrt.windows.devices.gpio.provider as windows_devices_gpio_provider
|
|
14
|
+
import winrt.windows.devices.i2c.provider as windows_devices_i2c_provider
|
|
15
|
+
import winrt.windows.devices.pwm.provider as windows_devices_pwm_provider
|
|
16
|
+
import winrt.windows.devices.spi.provider as windows_devices_spi_provider
|
|
17
|
+
|
|
18
|
+
Self = typing.TypeVar('Self')
|
|
19
|
+
|
|
20
|
+
@typing.final
|
|
21
|
+
class LowLevelDevicesAggregateProvider(winrt.system.Object):
|
|
22
|
+
@staticmethod
|
|
23
|
+
def _from(obj: winrt.system.Object, /) -> LowLevelDevicesAggregateProvider: ...
|
|
24
|
+
def __new__(cls: typing.Type[LowLevelDevicesAggregateProvider], adc: typing.Optional[windows_devices_adc_provider.IAdcControllerProvider], pwm: typing.Optional[windows_devices_pwm_provider.IPwmControllerProvider], gpio: typing.Optional[windows_devices_gpio_provider.IGpioControllerProvider], i2c: typing.Optional[windows_devices_i2c_provider.II2cControllerProvider], spi: typing.Optional[windows_devices_spi_provider.ISpiControllerProvider]) -> LowLevelDevicesAggregateProvider: ...
|
|
25
|
+
@_property
|
|
26
|
+
def adc_controller_provider(self) -> typing.Optional[windows_devices_adc_provider.IAdcControllerProvider]: ...
|
|
27
|
+
@_property
|
|
28
|
+
def gpio_controller_provider(self) -> typing.Optional[windows_devices_gpio_provider.IGpioControllerProvider]: ...
|
|
29
|
+
@_property
|
|
30
|
+
def i2c_controller_provider(self) -> typing.Optional[windows_devices_i2c_provider.II2cControllerProvider]: ...
|
|
31
|
+
@_property
|
|
32
|
+
def pwm_controller_provider(self) -> typing.Optional[windows_devices_pwm_provider.IPwmControllerProvider]: ...
|
|
33
|
+
@_property
|
|
34
|
+
def spi_controller_provider(self) -> typing.Optional[windows_devices_spi_provider.ISpiControllerProvider]: ...
|
|
35
|
+
|
|
36
|
+
@typing.final
|
|
37
|
+
class LowLevelDevicesController_Static(type):
|
|
38
|
+
@_property
|
|
39
|
+
def default_provider(cls) -> typing.Optional[ILowLevelDevicesAggregateProvider]: ...
|
|
40
|
+
@default_provider.setter
|
|
41
|
+
def default_provider(cls, value: typing.Optional[ILowLevelDevicesAggregateProvider]) -> None: ...
|
|
42
|
+
|
|
43
|
+
@typing.final
|
|
44
|
+
class LowLevelDevicesController(winrt.system.Object, metaclass=LowLevelDevicesController_Static):
|
|
45
|
+
@staticmethod
|
|
46
|
+
def _from(obj: winrt.system.Object, /) -> LowLevelDevicesController: ...
|
|
47
|
+
|
|
48
|
+
@typing.final
|
|
49
|
+
class ILowLevelDevicesAggregateProvider(winrt.system.Object):
|
|
50
|
+
@staticmethod
|
|
51
|
+
def _from(obj: winrt.system.Object, /) -> ILowLevelDevicesAggregateProvider: ...
|
|
52
|
+
@_property
|
|
53
|
+
def adc_controller_provider(self) -> typing.Optional[windows_devices_adc_provider.IAdcControllerProvider]: ...
|
|
54
|
+
@_property
|
|
55
|
+
def gpio_controller_provider(self) -> typing.Optional[windows_devices_gpio_provider.IGpioControllerProvider]: ...
|
|
56
|
+
@_property
|
|
57
|
+
def i2c_controller_provider(self) -> typing.Optional[windows_devices_i2c_provider.II2cControllerProvider]: ...
|
|
58
|
+
@_property
|
|
59
|
+
def pwm_controller_provider(self) -> typing.Optional[windows_devices_pwm_provider.IPwmControllerProvider]: ...
|
|
60
|
+
@_property
|
|
61
|
+
def spi_controller_provider(self) -> typing.Optional[windows_devices_spi_provider.ISpiControllerProvider]: ...
|
|
62
|
+
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.Devices
|
|
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,7 +12,13 @@ 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.1.0
|
|
15
16
|
Provides-Extra: all
|
|
17
|
+
Requires-Dist: winrt-Windows.Devices.Adc.Provider[all]==2.1.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Devices.Gpio.Provider[all]==2.1.0; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.Devices.I2c.Provider[all]==2.1.0; extra == "all"
|
|
20
|
+
Requires-Dist: winrt-Windows.Devices.Pwm.Provider[all]==2.1.0; extra == "all"
|
|
21
|
+
Requires-Dist: winrt-Windows.Devices.Spi.Provider[all]==2.1.0; extra == "all"
|
|
16
22
|
|
|
17
23
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
18
24
|
|
|
@@ -7,6 +7,7 @@ requirements.txt
|
|
|
7
7
|
setup.py
|
|
8
8
|
winrt/_winrt_windows_devices.pyi
|
|
9
9
|
winrt/windows/devices/__init__.py
|
|
10
|
+
winrt/windows/devices/py.typed
|
|
10
11
|
winrt_Windows.Devices.egg-info/PKG-INFO
|
|
11
12
|
winrt_Windows.Devices.egg-info/SOURCES.txt
|
|
12
13
|
winrt_Windows.Devices.egg-info/dependency_links.txt
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
winrt-runtime==2.1.0
|
|
2
|
+
|
|
3
|
+
[all]
|
|
4
|
+
winrt-Windows.Devices.Adc.Provider[all]==2.1.0
|
|
5
|
+
winrt-Windows.Devices.Gpio.Provider[all]==2.1.0
|
|
6
|
+
winrt-Windows.Devices.I2c.Provider[all]==2.1.0
|
|
7
|
+
winrt-Windows.Devices.Pwm.Provider[all]==2.1.0
|
|
8
|
+
winrt-Windows.Devices.Spi.Provider[all]==2.1.0
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.2
|
|
2
|
-
|
|
3
|
-
winrt-Windows.Devices.Adc.Provider[all]==2.0.0-beta.2
|
|
4
|
-
winrt-Windows.Devices.Gpio.Provider[all]==2.0.0-beta.2
|
|
5
|
-
winrt-Windows.Devices.I2c.Provider[all]==2.0.0-beta.2
|
|
6
|
-
winrt-Windows.Devices.Pwm.Provider[all]==2.0.0-beta.2
|
|
7
|
-
winrt-Windows.Devices.Spi.Provider[all]==2.0.0-beta.2
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2.0.0-beta.2
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was automatically generated.
|
|
2
|
-
|
|
3
|
-
from setuptools import Extension, setup
|
|
4
|
-
from winrt_sdk import get_include_dirs
|
|
5
|
-
|
|
6
|
-
setup(
|
|
7
|
-
ext_modules=[
|
|
8
|
-
Extension(
|
|
9
|
-
"winrt._winrt_windows_devices",
|
|
10
|
-
sources=["py.Windows.Devices.cpp"],
|
|
11
|
-
include_dirs=get_include_dirs(),
|
|
12
|
-
extra_compile_args=["/std:c++20", "/permissive-"],
|
|
13
|
-
libraries=["windowsapp"],
|
|
14
|
-
)
|
|
15
|
-
],
|
|
16
|
-
)
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.2
|
|
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.devices.adc.provider
|
|
13
|
-
import winrt.windows.devices.gpio.provider
|
|
14
|
-
import winrt.windows.devices.i2c.provider
|
|
15
|
-
import winrt.windows.devices.pwm.provider
|
|
16
|
-
import winrt.windows.devices.spi.provider
|
|
17
|
-
|
|
18
|
-
Self = typing.TypeVar('Self')
|
|
19
|
-
|
|
20
|
-
@typing.final
|
|
21
|
-
class LowLevelDevicesAggregateProvider(winrt.system.Object):
|
|
22
|
-
@staticmethod
|
|
23
|
-
def _from(obj: winrt.system.Object, /) -> LowLevelDevicesAggregateProvider: ...
|
|
24
|
-
def __new__(cls: typing.Type[LowLevelDevicesAggregateProvider], adc: typing.Optional[winrt.windows.devices.adc.provider.IAdcControllerProvider], pwm: typing.Optional[winrt.windows.devices.pwm.provider.IPwmControllerProvider], gpio: typing.Optional[winrt.windows.devices.gpio.provider.IGpioControllerProvider], i2c: typing.Optional[winrt.windows.devices.i2c.provider.II2cControllerProvider], spi: typing.Optional[winrt.windows.devices.spi.provider.ISpiControllerProvider]) -> LowLevelDevicesAggregateProvider:...
|
|
25
|
-
@_property
|
|
26
|
-
def adc_controller_provider(self) -> typing.Optional[winrt.windows.devices.adc.provider.IAdcControllerProvider]: ...
|
|
27
|
-
@_property
|
|
28
|
-
def gpio_controller_provider(self) -> typing.Optional[winrt.windows.devices.gpio.provider.IGpioControllerProvider]: ...
|
|
29
|
-
@_property
|
|
30
|
-
def i2c_controller_provider(self) -> typing.Optional[winrt.windows.devices.i2c.provider.II2cControllerProvider]: ...
|
|
31
|
-
@_property
|
|
32
|
-
def pwm_controller_provider(self) -> typing.Optional[winrt.windows.devices.pwm.provider.IPwmControllerProvider]: ...
|
|
33
|
-
@_property
|
|
34
|
-
def spi_controller_provider(self) -> typing.Optional[winrt.windows.devices.spi.provider.ISpiControllerProvider]: ...
|
|
35
|
-
|
|
36
|
-
@typing.final
|
|
37
|
-
class LowLevelDevicesController_Static(type):
|
|
38
|
-
@_property
|
|
39
|
-
def default_provider(cls) -> typing.Optional[ILowLevelDevicesAggregateProvider]: ...
|
|
40
|
-
@default_provider.setter
|
|
41
|
-
def default_provider(cls, value: typing.Optional[ILowLevelDevicesAggregateProvider]) -> None: ...
|
|
42
|
-
|
|
43
|
-
@typing.final
|
|
44
|
-
class LowLevelDevicesController(winrt.system.Object, metaclass=LowLevelDevicesController_Static):
|
|
45
|
-
@staticmethod
|
|
46
|
-
def _from(obj: winrt.system.Object, /) -> LowLevelDevicesController: ...
|
|
47
|
-
|
|
48
|
-
@typing.final
|
|
49
|
-
class ILowLevelDevicesAggregateProvider(winrt.system.Object):
|
|
50
|
-
@staticmethod
|
|
51
|
-
def _from(obj: winrt.system.Object, /) -> ILowLevelDevicesAggregateProvider: ...
|
|
52
|
-
@_property
|
|
53
|
-
def adc_controller_provider(self) -> typing.Optional[winrt.windows.devices.adc.provider.IAdcControllerProvider]: ...
|
|
54
|
-
@_property
|
|
55
|
-
def gpio_controller_provider(self) -> typing.Optional[winrt.windows.devices.gpio.provider.IGpioControllerProvider]: ...
|
|
56
|
-
@_property
|
|
57
|
-
def i2c_controller_provider(self) -> typing.Optional[winrt.windows.devices.i2c.provider.II2cControllerProvider]: ...
|
|
58
|
-
@_property
|
|
59
|
-
def pwm_controller_provider(self) -> typing.Optional[winrt.windows.devices.pwm.provider.IPwmControllerProvider]: ...
|
|
60
|
-
@_property
|
|
61
|
-
def spi_controller_provider(self) -> typing.Optional[winrt.windows.devices.spi.provider.ISpiControllerProvider]: ...
|
|
62
|
-
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
winrt-runtime==2.0.0-beta.2
|
|
2
|
-
|
|
3
|
-
[all]
|
|
4
|
-
winrt-Windows.Devices.Adc.Provider[all]==2.0.0-beta.2
|
|
5
|
-
winrt-Windows.Devices.Gpio.Provider[all]==2.0.0-beta.2
|
|
6
|
-
winrt-Windows.Devices.I2c.Provider[all]==2.0.0-beta.2
|
|
7
|
-
winrt-Windows.Devices.Pwm.Provider[all]==2.0.0-beta.2
|
|
8
|
-
winrt-Windows.Devices.Spi.Provider[all]==2.0.0-beta.2
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|