winrt-Windows.System.Power.Diagnostics 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 (20) hide show
  1. {winrt_windows_system_power_diagnostics-2.3.0 → winrt_windows_system_power_diagnostics-3.1.0}/PKG-INFO +5 -5
  2. {winrt_windows_system_power_diagnostics-2.3.0 → winrt_windows_system_power_diagnostics-3.1.0}/py.Windows.System.Power.Diagnostics.cpp +69 -41
  3. {winrt_windows_system_power_diagnostics-2.3.0 → winrt_windows_system_power_diagnostics-3.1.0}/pyproject.toml +4 -4
  4. winrt_windows_system_power_diagnostics-3.1.0/pywinrt-version.txt +1 -0
  5. {winrt_windows_system_power_diagnostics-2.3.0 → winrt_windows_system_power_diagnostics-3.1.0}/requirements.txt +2 -2
  6. {winrt_windows_system_power_diagnostics-2.3.0 → winrt_windows_system_power_diagnostics-3.1.0}/setup.py +1 -1
  7. winrt_windows_system_power_diagnostics-3.1.0/winrt/_winrt_windows_system_power_diagnostics.pyi +46 -0
  8. winrt_windows_system_power_diagnostics-3.1.0/winrt/windows/system/power/diagnostics/__init__.py +13 -0
  9. {winrt_windows_system_power_diagnostics-2.3.0 → winrt_windows_system_power_diagnostics-3.1.0}/winrt_Windows.System.Power.Diagnostics.egg-info/PKG-INFO +5 -5
  10. winrt_windows_system_power_diagnostics-3.1.0/winrt_Windows.System.Power.Diagnostics.egg-info/requires.txt +1 -0
  11. winrt_windows_system_power_diagnostics-2.3.0/pywinrt-version.txt +0 -1
  12. winrt_windows_system_power_diagnostics-2.3.0/winrt/_winrt_windows_system_power_diagnostics.pyi +0 -36
  13. winrt_windows_system_power_diagnostics-2.3.0/winrt/windows/system/power/diagnostics/__init__.py +0 -12
  14. winrt_windows_system_power_diagnostics-2.3.0/winrt_Windows.System.Power.Diagnostics.egg-info/requires.txt +0 -1
  15. {winrt_windows_system_power_diagnostics-2.3.0 → winrt_windows_system_power_diagnostics-3.1.0}/README.md +0 -0
  16. {winrt_windows_system_power_diagnostics-2.3.0 → winrt_windows_system_power_diagnostics-3.1.0}/setup.cfg +0 -0
  17. {winrt_windows_system_power_diagnostics-2.3.0 → winrt_windows_system_power_diagnostics-3.1.0}/winrt/windows/system/power/diagnostics/py.typed +0 -0
  18. {winrt_windows_system_power_diagnostics-2.3.0 → winrt_windows_system_power_diagnostics-3.1.0}/winrt_Windows.System.Power.Diagnostics.egg-info/SOURCES.txt +0 -0
  19. {winrt_windows_system_power_diagnostics-2.3.0 → winrt_windows_system_power_diagnostics-3.1.0}/winrt_Windows.System.Power.Diagnostics.egg-info/dependency_links.txt +0 -0
  20. {winrt_windows_system_power_diagnostics-2.3.0 → winrt_windows_system_power_diagnostics-3.1.0}/winrt_Windows.System.Power.Diagnostics.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.System.Power.Diagnostics
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,9 +10,9 @@ 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
 
17
17
  <!-- warning: Please don't edit this file. It was automatically generated. -->
18
18
 
@@ -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.System.Power.Diagnostics.h"
4
4
 
@@ -15,7 +15,7 @@ namespace py::cpp::Windows::System::Power::Diagnostics
15
15
 
16
16
  static PyObject* BackgroundEnergyDiagnostics_ComputeTotalEnergyUsage(PyObject* /*unused*/, PyObject* args) noexcept
17
17
  {
18
- auto arg_count = PyTuple_Size(args);
18
+ auto arg_count = PyTuple_GET_SIZE(args);
19
19
 
20
20
  if (arg_count == 0)
21
21
  {
@@ -34,7 +34,11 @@ namespace py::cpp::Windows::System::Power::Diagnostics
34
34
  return nullptr;
35
35
  }
36
36
 
37
- return py::convert(winrt::Windows::System::Power::Diagnostics::BackgroundEnergyDiagnostics::ComputeTotalEnergyUsage());
37
+ return py::convert([&]()
38
+ {
39
+ auto _gil = release_gil();
40
+ return winrt::Windows::System::Power::Diagnostics::BackgroundEnergyDiagnostics::ComputeTotalEnergyUsage();
41
+ }());
38
42
  }
39
43
  catch (...)
40
44
  {
@@ -51,7 +55,7 @@ namespace py::cpp::Windows::System::Power::Diagnostics
51
55
 
52
56
  static PyObject* BackgroundEnergyDiagnostics_ResetTotalEnergyUsage(PyObject* /*unused*/, PyObject* args) noexcept
53
57
  {
54
- auto arg_count = PyTuple_Size(args);
58
+ auto arg_count = PyTuple_GET_SIZE(args);
55
59
 
56
60
  if (arg_count == 0)
57
61
  {
@@ -70,7 +74,11 @@ namespace py::cpp::Windows::System::Power::Diagnostics
70
74
  return nullptr;
71
75
  }
72
76
 
73
- winrt::Windows::System::Power::Diagnostics::BackgroundEnergyDiagnostics::ResetTotalEnergyUsage();
77
+ {
78
+ auto _gil = release_gil();
79
+ winrt::Windows::System::Power::Diagnostics::BackgroundEnergyDiagnostics::ResetTotalEnergyUsage();
80
+ }
81
+
74
82
  Py_RETURN_NONE;
75
83
  }
76
84
  catch (...)
@@ -103,7 +111,11 @@ namespace py::cpp::Windows::System::Power::Diagnostics
103
111
  return nullptr;
104
112
  }
105
113
 
106
- return py::convert(winrt::Windows::System::Power::Diagnostics::BackgroundEnergyDiagnostics::DeviceSpecificConversionFactor());
114
+ return py::convert([&]()
115
+ {
116
+ auto _gil = release_gil();
117
+ return winrt::Windows::System::Power::Diagnostics::BackgroundEnergyDiagnostics::DeviceSpecificConversionFactor();
118
+ }());
107
119
  }
108
120
  catch (...)
109
121
  {
@@ -113,19 +125,16 @@ namespace py::cpp::Windows::System::Power::Diagnostics
113
125
  }
114
126
 
115
127
  static PyMethodDef _methods_BackgroundEnergyDiagnostics[] = {
116
- { }
117
- };
128
+ { }};
118
129
 
119
130
  static PyGetSetDef _getset_BackgroundEnergyDiagnostics[] = {
120
- { }
121
- };
131
+ { }};
122
132
 
123
133
  static PyType_Slot _type_slots_BackgroundEnergyDiagnostics[] = {
124
134
  { Py_tp_new, reinterpret_cast<void*>(_new_BackgroundEnergyDiagnostics) },
125
135
  { Py_tp_methods, reinterpret_cast<void*>(_methods_BackgroundEnergyDiagnostics) },
126
136
  { Py_tp_getset, reinterpret_cast<void*>(_getset_BackgroundEnergyDiagnostics) },
127
- { }
128
- };
137
+ { }};
129
138
 
130
139
  static PyType_Spec type_spec_BackgroundEnergyDiagnostics = {
131
140
  "winrt._winrt_windows_system_power_diagnostics.BackgroundEnergyDiagnostics",
@@ -136,14 +145,12 @@ namespace py::cpp::Windows::System::Power::Diagnostics
136
145
 
137
146
  static PyGetSetDef getset_BackgroundEnergyDiagnostics_Static[] = {
138
147
  { "device_specific_conversion_factor", reinterpret_cast<getter>(BackgroundEnergyDiagnostics_get_DeviceSpecificConversionFactor), nullptr, nullptr, nullptr },
139
- { }
140
- };
148
+ { }};
141
149
 
142
150
  static PyMethodDef methods_BackgroundEnergyDiagnostics_Static[] = {
143
151
  { "compute_total_energy_usage", reinterpret_cast<PyCFunction>(BackgroundEnergyDiagnostics_ComputeTotalEnergyUsage), METH_VARARGS, nullptr },
144
152
  { "reset_total_energy_usage", reinterpret_cast<PyCFunction>(BackgroundEnergyDiagnostics_ResetTotalEnergyUsage), METH_VARARGS, nullptr },
145
- { }
146
- };
153
+ { }};
147
154
 
148
155
  static PyType_Slot type_slots_BackgroundEnergyDiagnostics_Static[] =
149
156
  {
@@ -153,14 +160,12 @@ namespace py::cpp::Windows::System::Power::Diagnostics
153
160
  { }
154
161
  };
155
162
 
156
- static PyType_Spec type_spec_BackgroundEnergyDiagnostics_Static =
157
- {
163
+ static PyType_Spec type_spec_BackgroundEnergyDiagnostics_Static = {
158
164
  "winrt._winrt_windows_system_power_diagnostics.BackgroundEnergyDiagnostics_Static",
159
165
  static_cast<int>(PyType_Type.tp_basicsize),
160
166
  static_cast<int>(PyType_Type.tp_itemsize),
161
167
  Py_TPFLAGS_DEFAULT,
162
- type_slots_BackgroundEnergyDiagnostics_Static
163
- };
168
+ type_slots_BackgroundEnergyDiagnostics_Static};
164
169
 
165
170
  // ----- ForegroundEnergyDiagnostics class --------------------
166
171
 
@@ -173,7 +178,7 @@ namespace py::cpp::Windows::System::Power::Diagnostics
173
178
 
174
179
  static PyObject* ForegroundEnergyDiagnostics_ComputeTotalEnergyUsage(PyObject* /*unused*/, PyObject* args) noexcept
175
180
  {
176
- auto arg_count = PyTuple_Size(args);
181
+ auto arg_count = PyTuple_GET_SIZE(args);
177
182
 
178
183
  if (arg_count == 0)
179
184
  {
@@ -192,7 +197,11 @@ namespace py::cpp::Windows::System::Power::Diagnostics
192
197
  return nullptr;
193
198
  }
194
199
 
195
- return py::convert(winrt::Windows::System::Power::Diagnostics::ForegroundEnergyDiagnostics::ComputeTotalEnergyUsage());
200
+ return py::convert([&]()
201
+ {
202
+ auto _gil = release_gil();
203
+ return winrt::Windows::System::Power::Diagnostics::ForegroundEnergyDiagnostics::ComputeTotalEnergyUsage();
204
+ }());
196
205
  }
197
206
  catch (...)
198
207
  {
@@ -209,7 +218,7 @@ namespace py::cpp::Windows::System::Power::Diagnostics
209
218
 
210
219
  static PyObject* ForegroundEnergyDiagnostics_ResetTotalEnergyUsage(PyObject* /*unused*/, PyObject* args) noexcept
211
220
  {
212
- auto arg_count = PyTuple_Size(args);
221
+ auto arg_count = PyTuple_GET_SIZE(args);
213
222
 
214
223
  if (arg_count == 0)
215
224
  {
@@ -228,7 +237,11 @@ namespace py::cpp::Windows::System::Power::Diagnostics
228
237
  return nullptr;
229
238
  }
230
239
 
231
- winrt::Windows::System::Power::Diagnostics::ForegroundEnergyDiagnostics::ResetTotalEnergyUsage();
240
+ {
241
+ auto _gil = release_gil();
242
+ winrt::Windows::System::Power::Diagnostics::ForegroundEnergyDiagnostics::ResetTotalEnergyUsage();
243
+ }
244
+
232
245
  Py_RETURN_NONE;
233
246
  }
234
247
  catch (...)
@@ -261,7 +274,11 @@ namespace py::cpp::Windows::System::Power::Diagnostics
261
274
  return nullptr;
262
275
  }
263
276
 
264
- return py::convert(winrt::Windows::System::Power::Diagnostics::ForegroundEnergyDiagnostics::DeviceSpecificConversionFactor());
277
+ return py::convert([&]()
278
+ {
279
+ auto _gil = release_gil();
280
+ return winrt::Windows::System::Power::Diagnostics::ForegroundEnergyDiagnostics::DeviceSpecificConversionFactor();
281
+ }());
265
282
  }
266
283
  catch (...)
267
284
  {
@@ -271,19 +288,16 @@ namespace py::cpp::Windows::System::Power::Diagnostics
271
288
  }
272
289
 
273
290
  static PyMethodDef _methods_ForegroundEnergyDiagnostics[] = {
274
- { }
275
- };
291
+ { }};
276
292
 
277
293
  static PyGetSetDef _getset_ForegroundEnergyDiagnostics[] = {
278
- { }
279
- };
294
+ { }};
280
295
 
281
296
  static PyType_Slot _type_slots_ForegroundEnergyDiagnostics[] = {
282
297
  { Py_tp_new, reinterpret_cast<void*>(_new_ForegroundEnergyDiagnostics) },
283
298
  { Py_tp_methods, reinterpret_cast<void*>(_methods_ForegroundEnergyDiagnostics) },
284
299
  { Py_tp_getset, reinterpret_cast<void*>(_getset_ForegroundEnergyDiagnostics) },
285
- { }
286
- };
300
+ { }};
287
301
 
288
302
  static PyType_Spec type_spec_ForegroundEnergyDiagnostics = {
289
303
  "winrt._winrt_windows_system_power_diagnostics.ForegroundEnergyDiagnostics",
@@ -294,14 +308,12 @@ namespace py::cpp::Windows::System::Power::Diagnostics
294
308
 
295
309
  static PyGetSetDef getset_ForegroundEnergyDiagnostics_Static[] = {
296
310
  { "device_specific_conversion_factor", reinterpret_cast<getter>(ForegroundEnergyDiagnostics_get_DeviceSpecificConversionFactor), nullptr, nullptr, nullptr },
297
- { }
298
- };
311
+ { }};
299
312
 
300
313
  static PyMethodDef methods_ForegroundEnergyDiagnostics_Static[] = {
301
314
  { "compute_total_energy_usage", reinterpret_cast<PyCFunction>(ForegroundEnergyDiagnostics_ComputeTotalEnergyUsage), METH_VARARGS, nullptr },
302
315
  { "reset_total_energy_usage", reinterpret_cast<PyCFunction>(ForegroundEnergyDiagnostics_ResetTotalEnergyUsage), METH_VARARGS, nullptr },
303
- { }
304
- };
316
+ { }};
305
317
 
306
318
  static PyType_Slot type_slots_ForegroundEnergyDiagnostics_Static[] =
307
319
  {
@@ -311,14 +323,12 @@ namespace py::cpp::Windows::System::Power::Diagnostics
311
323
  { }
312
324
  };
313
325
 
314
- static PyType_Spec type_spec_ForegroundEnergyDiagnostics_Static =
315
- {
326
+ static PyType_Spec type_spec_ForegroundEnergyDiagnostics_Static = {
316
327
  "winrt._winrt_windows_system_power_diagnostics.ForegroundEnergyDiagnostics_Static",
317
328
  static_cast<int>(PyType_Type.tp_basicsize),
318
329
  static_cast<int>(PyType_Type.tp_itemsize),
319
330
  Py_TPFLAGS_DEFAULT,
320
- type_slots_ForegroundEnergyDiagnostics_Static
321
- };
331
+ type_slots_ForegroundEnergyDiagnostics_Static};
322
332
 
323
333
  // ----- Windows.System.Power.Diagnostics Initialization --------------------
324
334
 
@@ -352,6 +362,12 @@ PyMODINIT_FUNC PyInit__winrt_windows_system_power_diagnostics(void) noexcept
352
362
  return nullptr;
353
363
  }
354
364
 
365
+ auto inspectable_meta_type = py::get_inspectable_meta_type();
366
+ if (!inspectable_meta_type)
367
+ {
368
+ return nullptr;
369
+ }
370
+
355
371
  auto object_type = py::get_object_type();
356
372
  if (!object_type)
357
373
  {
@@ -365,7 +381,13 @@ PyMODINIT_FUNC PyInit__winrt_windows_system_power_diagnostics(void) noexcept
365
381
  return nullptr;
366
382
  }
367
383
 
368
- py::pyobj_handle type_BackgroundEnergyDiagnostics_Static{PyType_FromSpec(&type_spec_BackgroundEnergyDiagnostics_Static)};
384
+ py::pyobj_handle BackgroundEnergyDiagnostics_Static_bases{PyTuple_Pack(1, reinterpret_cast<PyObject*>(inspectable_meta_type))};
385
+ if (!BackgroundEnergyDiagnostics_Static_bases)
386
+ {
387
+ return nullptr;
388
+ }
389
+
390
+ py::pyobj_handle type_BackgroundEnergyDiagnostics_Static{PyType_FromSpecWithBases(&type_spec_BackgroundEnergyDiagnostics_Static, BackgroundEnergyDiagnostics_Static_bases.get())};
369
391
  if (!type_BackgroundEnergyDiagnostics_Static)
370
392
  {
371
393
  return nullptr;
@@ -377,7 +399,13 @@ PyMODINIT_FUNC PyInit__winrt_windows_system_power_diagnostics(void) noexcept
377
399
  return nullptr;
378
400
  }
379
401
 
380
- py::pyobj_handle type_ForegroundEnergyDiagnostics_Static{PyType_FromSpec(&type_spec_ForegroundEnergyDiagnostics_Static)};
402
+ py::pyobj_handle ForegroundEnergyDiagnostics_Static_bases{PyTuple_Pack(1, reinterpret_cast<PyObject*>(inspectable_meta_type))};
403
+ if (!ForegroundEnergyDiagnostics_Static_bases)
404
+ {
405
+ return nullptr;
406
+ }
407
+
408
+ py::pyobj_handle type_ForegroundEnergyDiagnostics_Static{PyType_FromSpecWithBases(&type_spec_ForegroundEnergyDiagnostics_Static, ForegroundEnergyDiagnostics_Static_bases.get())};
381
409
  if (!type_ForegroundEnergyDiagnostics_Static)
382
410
  {
383
411
  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.System.Power.Diagnostics"
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"]
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"
@@ -33,7 +33,7 @@ dependencies = { file = "requirements.txt" }
33
33
 
34
34
  [tool.cibuildwheel]
35
35
  # use local winrt-sdk build dependency
36
- environment = { PYTHONPATH="../winrt-sdk/src" }
36
+ environment = { PYTHONPATH="../../winrt-sdk/src" }
37
37
  # don't install winrt-sdk from PyPI
38
38
  build-frontend = { name = "build[uv]", args = ["--skip-dependency-check", "--no-isolation"] }
39
39
  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_system_power_diagnostics",
@@ -0,0 +1,46 @@
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
+
13
+ Self = typing.TypeVar('Self')
14
+
15
+ @typing.final
16
+ class BackgroundEnergyDiagnostics_Static(winrt._winrt.IInspectable_Static):
17
+ # System.UInt64 Windows.System.Power.Diagnostics.BackgroundEnergyDiagnostics::ComputeTotalEnergyUsage()
18
+ # @deprecated("Background Energy Diagnostics has been deprecated. For more info, see MSDN.")
19
+ def compute_total_energy_usage(cls) -> winrt.system.UInt64: ...
20
+ # System.Void Windows.System.Power.Diagnostics.BackgroundEnergyDiagnostics::ResetTotalEnergyUsage()
21
+ # @deprecated("Background Energy Diagnostics has been deprecated. For more info, see MSDN.")
22
+ def reset_total_energy_usage(cls) -> None: ...
23
+ # System.Double Windows.System.Power.Diagnostics.BackgroundEnergyDiagnostics::get_DeviceSpecificConversionFactor()
24
+ @_property
25
+ def device_specific_conversion_factor(cls) -> winrt.system.Double: ...
26
+
27
+ @typing.final
28
+ class BackgroundEnergyDiagnostics(winrt.system.Object, metaclass=BackgroundEnergyDiagnostics_Static):
29
+ pass
30
+
31
+ @typing.final
32
+ class ForegroundEnergyDiagnostics_Static(winrt._winrt.IInspectable_Static):
33
+ # System.UInt64 Windows.System.Power.Diagnostics.ForegroundEnergyDiagnostics::ComputeTotalEnergyUsage()
34
+ # @deprecated("Background Energy Diagnostics has been deprecated. For more info, see MSDN.")
35
+ def compute_total_energy_usage(cls) -> winrt.system.UInt64: ...
36
+ # System.Void Windows.System.Power.Diagnostics.ForegroundEnergyDiagnostics::ResetTotalEnergyUsage()
37
+ # @deprecated("Background Energy Diagnostics has been deprecated. For more info, see MSDN.")
38
+ def reset_total_energy_usage(cls) -> None: ...
39
+ # System.Double Windows.System.Power.Diagnostics.ForegroundEnergyDiagnostics::get_DeviceSpecificConversionFactor()
40
+ @_property
41
+ def device_specific_conversion_factor(cls) -> winrt.system.Double: ...
42
+
43
+ @typing.final
44
+ class ForegroundEnergyDiagnostics(winrt.system.Object, metaclass=ForegroundEnergyDiagnostics_Static):
45
+ pass
46
+
@@ -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_system_power_diagnostics import (
5
+ BackgroundEnergyDiagnostics,
6
+ ForegroundEnergyDiagnostics,
7
+ )
8
+
9
+ __all__ = [
10
+ "BackgroundEnergyDiagnostics",
11
+ "ForegroundEnergyDiagnostics",
12
+ ]
13
+
@@ -1,8 +1,8 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: winrt-Windows.System.Power.Diagnostics
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,9 +10,9 @@ 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
 
17
17
  <!-- warning: Please don't edit this file. It was automatically generated. -->
18
18
 
@@ -1,36 +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
-
13
- Self = typing.TypeVar('Self')
14
-
15
- @typing.final
16
- class BackgroundEnergyDiagnostics_Static(type):
17
- def compute_total_energy_usage(cls) -> winrt.system.UInt64: ...
18
- def reset_total_energy_usage(cls) -> None: ...
19
- @_property
20
- def device_specific_conversion_factor(cls) -> winrt.system.Double: ...
21
-
22
- @typing.final
23
- class BackgroundEnergyDiagnostics(winrt.system.Object, metaclass=BackgroundEnergyDiagnostics_Static):
24
- pass
25
-
26
- @typing.final
27
- class ForegroundEnergyDiagnostics_Static(type):
28
- def compute_total_energy_usage(cls) -> winrt.system.UInt64: ...
29
- def reset_total_energy_usage(cls) -> None: ...
30
- @_property
31
- def device_specific_conversion_factor(cls) -> winrt.system.Double: ...
32
-
33
- @typing.final
34
- class ForegroundEnergyDiagnostics(winrt.system.Object, metaclass=ForegroundEnergyDiagnostics_Static):
35
- pass
36
-
@@ -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_system_power_diagnostics
5
-
6
- __all__ = [
7
- "BackgroundEnergyDiagnostics",
8
- "ForegroundEnergyDiagnostics",
9
- ]
10
-
11
- BackgroundEnergyDiagnostics = _winrt_windows_system_power_diagnostics.BackgroundEnergyDiagnostics
12
- ForegroundEnergyDiagnostics = _winrt_windows_system_power_diagnostics.ForegroundEnergyDiagnostics