winrt-Windows.System.Diagnostics.Telemetry 3.2.1__tar.gz → 4!10.0.28000.2705__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 (23) hide show
  1. winrt_windows_system_diagnostics_telemetry-4!10.0.28000.2705/.gitignore +5 -0
  2. winrt_windows_system_diagnostics_telemetry-4!10.0.28000.2705/LICENSE +22 -0
  3. winrt_windows_system_diagnostics_telemetry-4!10.0.28000.2705/PKG-INFO +41 -0
  4. winrt_windows_system_diagnostics_telemetry-4!10.0.28000.2705/README.md +17 -0
  5. winrt_windows_system_diagnostics_telemetry-4!10.0.28000.2705/pyproject.toml +50 -0
  6. winrt_windows_system_diagnostics_telemetry-4!10.0.28000.2705/winrt/windows/system/diagnostics/telemetry/__init__.py +15 -0
  7. winrt_windows_system_diagnostics_telemetry-3.2.1/winrt/_winrt_windows_system_diagnostics_telemetry.pyi → winrt_windows_system_diagnostics_telemetry-4!10.0.28000.2705/winrt/windows/system/diagnostics/telemetry/__init__.pyi +27 -13
  8. winrt_windows_system_diagnostics_telemetry-4!10.0.28000.2705/winrt/windows/system/diagnostics/telemetry/_table.pywinrt.txt +59 -0
  9. winrt_windows_system_diagnostics_telemetry-3.2.1/PKG-INFO +0 -23
  10. winrt_windows_system_diagnostics_telemetry-3.2.1/README.md +0 -7
  11. winrt_windows_system_diagnostics_telemetry-3.2.1/py.Windows.System.Diagnostics.Telemetry.cpp +0 -545
  12. winrt_windows_system_diagnostics_telemetry-3.2.1/pyproject.toml +0 -46
  13. winrt_windows_system_diagnostics_telemetry-3.2.1/pywinrt-version.txt +0 -1
  14. winrt_windows_system_diagnostics_telemetry-3.2.1/requirements.txt +0 -3
  15. winrt_windows_system_diagnostics_telemetry-3.2.1/setup.cfg +0 -4
  16. winrt_windows_system_diagnostics_telemetry-3.2.1/setup.py +0 -33
  17. winrt_windows_system_diagnostics_telemetry-3.2.1/winrt/windows/system/diagnostics/telemetry/__init__.py +0 -23
  18. winrt_windows_system_diagnostics_telemetry-3.2.1/winrt_Windows.System.Diagnostics.Telemetry.egg-info/PKG-INFO +0 -23
  19. winrt_windows_system_diagnostics_telemetry-3.2.1/winrt_Windows.System.Diagnostics.Telemetry.egg-info/SOURCES.txt +0 -14
  20. winrt_windows_system_diagnostics_telemetry-3.2.1/winrt_Windows.System.Diagnostics.Telemetry.egg-info/dependency_links.txt +0 -1
  21. winrt_windows_system_diagnostics_telemetry-3.2.1/winrt_Windows.System.Diagnostics.Telemetry.egg-info/requires.txt +0 -1
  22. winrt_windows_system_diagnostics_telemetry-3.2.1/winrt_Windows.System.Diagnostics.Telemetry.egg-info/top_level.txt +0 -1
  23. {winrt_windows_system_diagnostics_telemetry-3.2.1 → winrt_windows_system_diagnostics_telemetry-4!10.0.28000.2705}/winrt/windows/system/diagnostics/telemetry/py.typed +0 -0
@@ -0,0 +1,5 @@
1
+ *.egg-info
2
+ *.tar.gz
3
+ *.whl
4
+ build/
5
+ dist/
@@ -0,0 +1,22 @@
1
+ MIT License
2
+
3
+ Copyright (c) Microsoft Corporation. All rights reserved.
4
+ Copyright (c) 2021-2026 David Lechner <david@pybricks.com>
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ of this software and associated documentation files (the "Software"), to deal
8
+ in the Software without restriction, including without limitation the rights
9
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the Software is
11
+ furnished to do so, subject to the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be included in all
14
+ copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ SOFTWARE
@@ -0,0 +1,41 @@
1
+ Metadata-Version: 2.5
2
+ Name: winrt-Windows.System.Diagnostics.Telemetry
3
+ Version: 4!10.0.28000.2705
4
+ Summary: PyWinRT projection of the Windows.System.Diagnostics.Telemetry namespace
5
+ Project-URL: Documentation, https://pywinrt.readthedocs.io
6
+ Project-URL: Repository, https://github.com/pywinrt/pywinrt
7
+ Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/projection/winrt/CHANGELOG.md
8
+ License-Expression: MIT
9
+ License-File: LICENSE
10
+ Classifier: Intended Audience :: Developers
11
+ Classifier: Operating System :: Microsoft :: Windows
12
+ Classifier: Programming Language :: Python :: 3
13
+ Classifier: Programming Language :: Python :: 3.11
14
+ Classifier: Programming Language :: Python :: 3.12
15
+ Classifier: Programming Language :: Python :: 3.13
16
+ Classifier: Programming Language :: Python :: 3.14
17
+ Classifier: Programming Language :: Python :: 3.15
18
+ Classifier: Programming Language :: Python :: Free Threading :: 2 - Beta
19
+ Classifier: Programming Language :: Python :: Implementation :: CPython
20
+ Classifier: Typing :: Typed
21
+ Requires-Python: >=3.11
22
+ Requires-Dist: winrt-runtime<5,>=4.0.0
23
+ Description-Content-Type: text/markdown
24
+
25
+ <!-- warning: Please don't edit this file. It was automatically generated. -->
26
+
27
+ # winrt-Windows.System.Diagnostics.Telemetry
28
+
29
+ Windows Runtime (WinRT) APIs for the `Windows.System.Diagnostics.Telemetry` namespace.
30
+
31
+ This package provides the `winrt.windows.system.diagnostics.telemetry` module.
32
+
33
+ The WinRT APIs in it are those of version 10.0.28000.2705 of the
34
+ `Microsoft.Windows.SDK.CPP` NuGet package.
35
+
36
+ ```
37
+ pip install winrt-Windows.System.Diagnostics.Telemetry
38
+ ```
39
+
40
+ Other WinRT namespaces are packages of their own, so install the package of
41
+ each namespace your code imports from.
@@ -0,0 +1,17 @@
1
+ <!-- warning: Please don't edit this file. It was automatically generated. -->
2
+
3
+ # winrt-Windows.System.Diagnostics.Telemetry
4
+
5
+ Windows Runtime (WinRT) APIs for the `Windows.System.Diagnostics.Telemetry` namespace.
6
+
7
+ This package provides the `winrt.windows.system.diagnostics.telemetry` module.
8
+
9
+ The WinRT APIs in it are those of version 10.0.28000.2705 of the
10
+ `Microsoft.Windows.SDK.CPP` NuGet package.
11
+
12
+ ```
13
+ pip install winrt-Windows.System.Diagnostics.Telemetry
14
+ ```
15
+
16
+ Other WinRT namespaces are packages of their own, so install the package of
17
+ each namespace your code imports from.
@@ -0,0 +1,50 @@
1
+ # WARNING: Please don't edit this file. It was automatically generated.
2
+
3
+ [build-system]
4
+ requires = ["hatchling", "winrt-table-compiler>=4.0.0,<5"]
5
+ build-backend = "hatchling.build"
6
+
7
+ [project]
8
+ name = "winrt-Windows.System.Diagnostics.Telemetry"
9
+ version = "4!10.0.28000.2705"
10
+ description = "PyWinRT projection of the Windows.System.Diagnostics.Telemetry namespace"
11
+ readme = "README.md"
12
+ license = "MIT"
13
+ license-files = ["LICENSE"]
14
+ classifiers = [
15
+ "Operating System :: Microsoft :: Windows",
16
+ "Programming Language :: Python :: 3",
17
+ "Programming Language :: Python :: 3.11",
18
+ "Programming Language :: Python :: 3.12",
19
+ "Programming Language :: Python :: 3.13",
20
+ "Programming Language :: Python :: 3.14",
21
+ "Programming Language :: Python :: 3.15",
22
+ "Programming Language :: Python :: Implementation :: CPython",
23
+ "Intended Audience :: Developers",
24
+ "Programming Language :: Python :: Free Threading :: 2 - Beta",
25
+ "Typing :: Typed",
26
+ ]
27
+ requires-python = ">=3.11"
28
+ dependencies = [
29
+ "winrt-runtime>=4.0.0,<5",
30
+ ]
31
+
32
+ [project.urls]
33
+ Documentation = "https://pywinrt.readthedocs.io"
34
+ Repository = "https://github.com/pywinrt/pywinrt"
35
+ Changelog = "https://github.com/pywinrt/pywinrt/blob/main/projection/winrt/CHANGELOG.md"
36
+
37
+ [tool.hatch.build.targets.sdist]
38
+ # The text form of the table is what the source distribution carries, and the
39
+ # compiled form is build output wherever it turns up. Hatchling reads no
40
+ # .gitignore above the package, so it has to be told about the latter.
41
+ only-include = ["winrt", "LICENSE", "README.md"]
42
+ exclude = ["**/_table.pywinrt"]
43
+
44
+ [tool.hatch.build.targets.wheel]
45
+ packages = ["winrt"]
46
+ exclude = ["**/_table.pywinrt.txt"]
47
+
48
+ # winrt.table.build_hooks in winrt-table-compiler, which compiles each table
49
+ # the package carries and puts the result beside the __init__.py that loads it.
50
+ [tool.hatch.build.targets.wheel.hooks.winrt-table-compiler]
@@ -0,0 +1,15 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT
2
+
3
+ import winrt.runtime._internals
4
+ import winrt.system
5
+
6
+ winrt.runtime._internals.load_projection(__spec__)
7
+
8
+ __all__ = [
9
+ "PlatformTelemetryRegistrationStatus",
10
+ "PlatformTelemetryClient",
11
+ "PlatformTelemetryRegistrationResult",
12
+ "PlatformTelemetryRegistrationSettings",
13
+ ]
14
+
15
+ winrt.runtime._internals.alias_static_method(PlatformTelemetryClient, "register_with_settings", "register")
@@ -1,49 +1,63 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.2.1
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT
2
2
 
3
- import datetime
4
- import sys
5
- import types
3
+ import enum
6
4
  import typing
7
- import uuid as _uuid
8
5
  from builtins import property as _property
6
+ from typing_extensions import deprecated
9
7
 
10
- import winrt._winrt
11
8
  import winrt.system
12
9
 
13
- from winrt.windows.system.diagnostics.telemetry import PlatformTelemetryRegistrationStatus
10
+ __all__ = [
11
+ "PlatformTelemetryRegistrationStatus",
12
+ "PlatformTelemetryClient",
13
+ "PlatformTelemetryRegistrationResult",
14
+ "PlatformTelemetryRegistrationSettings",
15
+ ]
14
16
 
15
- Self = typing.TypeVar('Self')
17
+ class PlatformTelemetryRegistrationStatus(enum.IntEnum):
18
+ SUCCESS = 0
19
+ SETTINGS_OUT_OF_RANGE = 1
20
+ UNKNOWN_FAILURE = 2
16
21
 
17
22
  @typing.final
18
- class PlatformTelemetryClient_Static(winrt._winrt.IInspectable_Static):
23
+ class PlatformTelemetryClient_Static(winrt.system.Object_Static):
24
+ @typing.overload # type: ignore[override]
19
25
  # Windows.System.Diagnostics.Telemetry.PlatformTelemetryRegistrationResult Windows.System.Diagnostics.Telemetry.PlatformTelemetryClient::Register(System.String)
20
26
  def register(cls, id: str, /) -> PlatformTelemetryRegistrationResult: ...
27
+ @typing.overload
21
28
  # Windows.System.Diagnostics.Telemetry.PlatformTelemetryRegistrationResult Windows.System.Diagnostics.Telemetry.PlatformTelemetryClient::Register(System.String,Windows.System.Diagnostics.Telemetry.PlatformTelemetryRegistrationSettings)
29
+ def register(cls, id: str, settings: PlatformTelemetryRegistrationSettings, /) -> PlatformTelemetryRegistrationResult: ... # pyright: ignore[reportIncompatibleMethodOverride]
30
+ # Deprecated alias of register() for pywinrt v3.x compatibility.
31
+ # Windows.System.Diagnostics.Telemetry.PlatformTelemetryRegistrationResult Windows.System.Diagnostics.Telemetry.PlatformTelemetryClient::Register(System.String,Windows.System.Diagnostics.Telemetry.PlatformTelemetryRegistrationSettings)
32
+ @deprecated("Use register() instead.")
22
33
  def register_with_settings(cls, id: str, settings: PlatformTelemetryRegistrationSettings, /) -> PlatformTelemetryRegistrationResult: ...
23
34
 
24
35
  @typing.final
25
36
  class PlatformTelemetryClient(winrt.system.Object, metaclass=PlatformTelemetryClient_Static):
26
- pass
37
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
38
+ """A class of static members only, so there is nothing to create."""
27
39
 
28
40
  @typing.final
29
41
  class PlatformTelemetryRegistrationResult(winrt.system.Object):
42
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
43
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
30
44
  # Windows.System.Diagnostics.Telemetry.PlatformTelemetryRegistrationStatus Windows.System.Diagnostics.Telemetry.PlatformTelemetryRegistrationResult::get_Status()
31
45
  @_property
32
46
  def status(self) -> PlatformTelemetryRegistrationStatus: ...
33
47
 
34
48
  @typing.final
35
49
  class PlatformTelemetryRegistrationSettings(winrt.system.Object):
36
- def __new__(cls: typing.Type[Self]) -> Self: ...
50
+ def __new__(cls) -> typing.Self: ...
37
51
  # System.UInt32 Windows.System.Diagnostics.Telemetry.PlatformTelemetryRegistrationSettings::get_UploadQuotaSize()
38
52
  @_property
39
53
  def upload_quota_size(self) -> winrt.system.UInt32: ...
40
54
  # System.Void Windows.System.Diagnostics.Telemetry.PlatformTelemetryRegistrationSettings::put_UploadQuotaSize(System.UInt32)
41
55
  @upload_quota_size.setter
42
- def upload_quota_size(self, value: winrt.system.UInt32) -> None: ...
56
+ def upload_quota_size(self, value: winrt.system.UInt32 | typing.SupportsIndex) -> None: ...
43
57
  # System.UInt32 Windows.System.Diagnostics.Telemetry.PlatformTelemetryRegistrationSettings::get_StorageSize()
44
58
  @_property
45
59
  def storage_size(self) -> winrt.system.UInt32: ...
46
60
  # System.Void Windows.System.Diagnostics.Telemetry.PlatformTelemetryRegistrationSettings::put_StorageSize(System.UInt32)
47
61
  @storage_size.setter
48
- def storage_size(self, value: winrt.system.UInt32) -> None: ...
62
+ def storage_size(self, value: winrt.system.UInt32 | typing.SupportsIndex) -> None: ...
49
63
 
@@ -0,0 +1,59 @@
1
+ format 4.0
2
+ census 2e30db26-66c8-4551-85b9-a537376d8f99 1
3
+ namespace Windows.System.Diagnostics.Telemetry
4
+
5
+ interface Windows.System.Diagnostics.Telemetry.IPlatformTelemetryClientStatics
6
+ guid 9bf3f25d-d5c3-4eea-8dbe-9c8dbb0d9d8f
7
+
8
+ interface Windows.System.Diagnostics.Telemetry.IPlatformTelemetryRegistrationResult
9
+ guid 4d8518ab-2292-49bd-a15a-3d71d2145112
10
+
11
+ interface Windows.System.Diagnostics.Telemetry.IPlatformTelemetryRegistrationSettings
12
+ guid 819a8582-ca19-415e-bb79-9c224bfa3a73
13
+
14
+ class Windows.System.Diagnostics.Telemetry.PlatformTelemetryClient static python_type
15
+ py PlatformTelemetryClient
16
+ factory Windows.System.Diagnostics.Telemetry.IPlatformTelemetryClientStatics
17
+ method register static
18
+ method Register slot=6 inputs=1 outputs=1 declaring=Windows.System.Diagnostics.Telemetry.IPlatformTelemetryClientStatics shape=51 static
19
+ in string name=id
20
+ out class type=Windows.System.Diagnostics.Telemetry.PlatformTelemetryRegistrationResult return
21
+ method Register slot=7 inputs=2 outputs=1 declaring=Windows.System.Diagnostics.Telemetry.IPlatformTelemetryClientStatics shape=117 static
22
+ in string name=id
23
+ in class type=Windows.System.Diagnostics.Telemetry.PlatformTelemetryRegistrationSettings name=settings
24
+ out class type=Windows.System.Diagnostics.Telemetry.PlatformTelemetryRegistrationResult return
25
+
26
+ class Windows.System.Diagnostics.Telemetry.PlatformTelemetryRegistrationResult python_type
27
+ py PlatformTelemetryRegistrationResult
28
+ signature rc(Windows.System.Diagnostics.Telemetry.PlatformTelemetryRegistrationResult;{4d8518ab-2292-49bd-a15a-3d71d2145112})
29
+ default Windows.System.Diagnostics.Telemetry.IPlatformTelemetryRegistrationResult
30
+ requires Windows.System.Diagnostics.Telemetry.IPlatformTelemetryRegistrationResult
31
+ property status
32
+ get get_Status slot=6 inputs=0 outputs=1 declaring=Windows.System.Diagnostics.Telemetry.IPlatformTelemetryRegistrationResult shape=4
33
+ out enum32 type=Windows.System.Diagnostics.Telemetry.PlatformTelemetryRegistrationStatus return
34
+
35
+ class Windows.System.Diagnostics.Telemetry.PlatformTelemetryRegistrationSettings activatable python_type
36
+ py PlatformTelemetryRegistrationSettings
37
+ signature rc(Windows.System.Diagnostics.Telemetry.PlatformTelemetryRegistrationSettings;{819a8582-ca19-415e-bb79-9c224bfa3a73})
38
+ default Windows.System.Diagnostics.Telemetry.IPlatformTelemetryRegistrationSettings
39
+ requires Windows.System.Diagnostics.Telemetry.IPlatformTelemetryRegistrationSettings
40
+ constructor -
41
+ ctor .ctor slot=6 inputs=0 outputs=1 shape=4
42
+ out object return
43
+ property upload_quota_size
44
+ get get_UploadQuotaSize slot=8 inputs=0 outputs=1 declaring=Windows.System.Diagnostics.Telemetry.IPlatformTelemetryRegistrationSettings shape=4
45
+ out uint32 return
46
+ put put_UploadQuotaSize slot=9 inputs=1 outputs=0 declaring=Windows.System.Diagnostics.Telemetry.IPlatformTelemetryRegistrationSettings shape=4
47
+ in uint32 name=value
48
+ property storage_size
49
+ get get_StorageSize slot=6 inputs=0 outputs=1 declaring=Windows.System.Diagnostics.Telemetry.IPlatformTelemetryRegistrationSettings shape=4
50
+ out uint32 return
51
+ put put_StorageSize slot=7 inputs=1 outputs=0 declaring=Windows.System.Diagnostics.Telemetry.IPlatformTelemetryRegistrationSettings shape=4
52
+ in uint32 name=value
53
+
54
+ enum Windows.System.Diagnostics.Telemetry.PlatformTelemetryRegistrationStatus python_type
55
+ py PlatformTelemetryRegistrationStatus
56
+ signature enum(Windows.System.Diagnostics.Telemetry.PlatformTelemetryRegistrationStatus;i4)
57
+ constant SUCCESS 0
58
+ constant SETTINGS_OUT_OF_RANGE 1
59
+ constant UNKNOWN_FAILURE 2
@@ -1,23 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: winrt-Windows.System.Diagnostics.Telemetry
3
- Version: 3.2.1
4
- Summary: Python projection of Windows Runtime (WinRT) APIs
5
- License-Expression: MIT
6
- Project-URL: Documentation, https://pywinrt.readthedocs.io
7
- Project-URL: Repository, https://github.com/pywinrt/pywinrt
8
- Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
9
- Classifier: Operating System :: Microsoft :: Windows
10
- Classifier: Programming Language :: Python :: 3
11
- Classifier: Programming Language :: Python :: Implementation :: CPython
12
- Classifier: Intended Audience :: Developers
13
- Requires-Python: >=3.9
14
- Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime~=3.2.1.0
16
-
17
- <!-- warning: Please don't edit this file. It was automatically generated. -->
18
-
19
- # winrt-Windows.System.Diagnostics.Telemetry
20
-
21
- Windows Runtime (WinRT) APIs for for the `Windows.System.Diagnostics.Telemetry` namespace.
22
-
23
- This package provides the `winrt.windows.system.diagnostics.telemetry` module.
@@ -1,7 +0,0 @@
1
- <!-- warning: Please don't edit this file. It was automatically generated. -->
2
-
3
- # winrt-Windows.System.Diagnostics.Telemetry
4
-
5
- Windows Runtime (WinRT) APIs for for the `Windows.System.Diagnostics.Telemetry` namespace.
6
-
7
- This package provides the `winrt.windows.system.diagnostics.telemetry` module.
@@ -1,545 +0,0 @@
1
- // WARNING: Please don't edit this file. It was generated by Python/WinRT v3.2.1
2
-
3
- #include "py.Windows.System.Diagnostics.Telemetry.h"
4
-
5
- namespace py::cpp::Windows::System::Diagnostics::Telemetry
6
- {
7
- // ----- PlatformTelemetryClient class --------------------
8
-
9
- static PyObject* _new_PlatformTelemetryClient(PyTypeObject* /*unused*/, PyObject* /*unused*/, PyObject* /*unused*/) noexcept
10
- {
11
- static_assert(py::py_type<winrt::Windows::System::Diagnostics::Telemetry::PlatformTelemetryClient>::type_name);
12
- py::set_invalid_activation_error(py::py_type<winrt::Windows::System::Diagnostics::Telemetry::PlatformTelemetryClient>::type_name);
13
- return nullptr;
14
- }
15
-
16
- static PyObject* PlatformTelemetryClient_Register(PyObject* /*unused*/, PyObject* args) noexcept
17
- {
18
- auto arg_count = PyTuple_GET_SIZE(args);
19
-
20
- if (arg_count == 1)
21
- {
22
- try
23
- {
24
- static std::optional<bool> is_overload_present{};
25
-
26
- if (!is_overload_present.has_value())
27
- {
28
- is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Diagnostics.Telemetry.PlatformTelemetryClient", L"Register", 1);
29
- }
30
-
31
- if (!is_overload_present.value())
32
- {
33
- py::set_arg_count_version_error(1);
34
- return nullptr;
35
- }
36
-
37
- auto param0 = py::convert_to<winrt::hstring>(args, 0);
38
-
39
- return py::convert([&]()
40
- {
41
- auto _gil = release_gil();
42
- return winrt::Windows::System::Diagnostics::Telemetry::PlatformTelemetryClient::Register(param0);
43
- }());
44
- }
45
- catch (...)
46
- {
47
- py::to_PyErr();
48
- return nullptr;
49
- }
50
- }
51
- else
52
- {
53
- py::set_invalid_arg_count_error(arg_count);
54
- return nullptr;
55
- }
56
- }
57
-
58
- static PyObject* PlatformTelemetryClient_RegisterWithSettings(PyObject* /*unused*/, PyObject* args) noexcept
59
- {
60
- auto arg_count = PyTuple_GET_SIZE(args);
61
-
62
- if (arg_count == 2)
63
- {
64
- try
65
- {
66
- static std::optional<bool> is_overload_present{};
67
-
68
- if (!is_overload_present.has_value())
69
- {
70
- is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Diagnostics.Telemetry.PlatformTelemetryClient", L"Register", 2);
71
- }
72
-
73
- if (!is_overload_present.value())
74
- {
75
- py::set_arg_count_version_error(2);
76
- return nullptr;
77
- }
78
-
79
- auto param0 = py::convert_to<winrt::hstring>(args, 0);
80
- auto param1 = py::convert_to<winrt::Windows::System::Diagnostics::Telemetry::PlatformTelemetryRegistrationSettings>(args, 1);
81
-
82
- return py::convert([&]()
83
- {
84
- auto _gil = release_gil();
85
- return winrt::Windows::System::Diagnostics::Telemetry::PlatformTelemetryClient::Register(param0, param1);
86
- }());
87
- }
88
- catch (...)
89
- {
90
- py::to_PyErr();
91
- return nullptr;
92
- }
93
- }
94
- else
95
- {
96
- py::set_invalid_arg_count_error(arg_count);
97
- return nullptr;
98
- }
99
- }
100
-
101
- static PyMethodDef _methods_PlatformTelemetryClient[] = {
102
- { }};
103
-
104
- static PyGetSetDef _getset_PlatformTelemetryClient[] = {
105
- { }};
106
-
107
- static PyType_Slot _type_slots_PlatformTelemetryClient[] = {
108
- { Py_tp_new, reinterpret_cast<void*>(_new_PlatformTelemetryClient) },
109
- { Py_tp_methods, reinterpret_cast<void*>(_methods_PlatformTelemetryClient) },
110
- { Py_tp_getset, reinterpret_cast<void*>(_getset_PlatformTelemetryClient) },
111
- { }};
112
-
113
- static PyType_Spec type_spec_PlatformTelemetryClient = {
114
- "winrt._winrt_windows_system_diagnostics_telemetry.PlatformTelemetryClient",
115
- 0,
116
- 0,
117
- Py_TPFLAGS_DEFAULT,
118
- _type_slots_PlatformTelemetryClient};
119
-
120
- static PyGetSetDef getset_PlatformTelemetryClient_Static[] = {
121
- { }};
122
-
123
- static PyMethodDef methods_PlatformTelemetryClient_Static[] = {
124
- { "register", reinterpret_cast<PyCFunction>(PlatformTelemetryClient_Register), METH_VARARGS, nullptr },
125
- { "register_with_settings", reinterpret_cast<PyCFunction>(PlatformTelemetryClient_RegisterWithSettings), METH_VARARGS, nullptr },
126
- { }};
127
-
128
- static PyType_Slot type_slots_PlatformTelemetryClient_Static[] =
129
- {
130
- { Py_tp_base, reinterpret_cast<void*>(&PyType_Type) },
131
- { Py_tp_getset, reinterpret_cast<void*>(getset_PlatformTelemetryClient_Static) },
132
- { Py_tp_methods, reinterpret_cast<void*>(methods_PlatformTelemetryClient_Static) },
133
- { }
134
- };
135
-
136
- static PyType_Spec type_spec_PlatformTelemetryClient_Static = {
137
- "winrt._winrt_windows_system_diagnostics_telemetry.PlatformTelemetryClient_Static",
138
- static_cast<int>(PyType_Type.tp_basicsize),
139
- static_cast<int>(PyType_Type.tp_itemsize),
140
- Py_TPFLAGS_DEFAULT,
141
- type_slots_PlatformTelemetryClient_Static};
142
-
143
- // ----- PlatformTelemetryRegistrationResult class --------------------
144
-
145
- static PyObject* _new_PlatformTelemetryRegistrationResult(PyTypeObject* /*unused*/, PyObject* /*unused*/, PyObject* /*unused*/) noexcept
146
- {
147
- static_assert(py::py_type<winrt::Windows::System::Diagnostics::Telemetry::PlatformTelemetryRegistrationResult>::type_name);
148
- py::set_invalid_activation_error(py::py_type<winrt::Windows::System::Diagnostics::Telemetry::PlatformTelemetryRegistrationResult>::type_name);
149
- return nullptr;
150
- }
151
-
152
- static void _dealloc_PlatformTelemetryRegistrationResult(py::wrapper::Windows::System::Diagnostics::Telemetry::PlatformTelemetryRegistrationResult* self) noexcept
153
- {
154
- auto tp = Py_TYPE(self);
155
- std::destroy_at(&self->obj);
156
- tp->tp_free(self);
157
- Py_DECREF(tp);
158
- }
159
-
160
- static PyObject* PlatformTelemetryRegistrationResult_get_Status(py::wrapper::Windows::System::Diagnostics::Telemetry::PlatformTelemetryRegistrationResult* self, void* /*unused*/) noexcept
161
- {
162
- try
163
- {
164
- static std::optional<bool> is_property_present{};
165
-
166
- if (!is_property_present.has_value())
167
- {
168
- is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Diagnostics.Telemetry.PlatformTelemetryRegistrationResult", L"Status");
169
- }
170
-
171
- if (!is_property_present.value())
172
- {
173
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
174
- return nullptr;
175
- }
176
-
177
- return py::convert([&]()
178
- {
179
- auto _gil = release_gil();
180
- return self->obj.Status();
181
- }());
182
- }
183
- catch (...)
184
- {
185
- py::to_PyErr();
186
- return nullptr;
187
- }
188
- }
189
-
190
- static PyObject* _assign_array_PlatformTelemetryRegistrationResult(PyObject* /*unused*/, PyObject* arg) noexcept
191
- {
192
- auto array = std::make_unique<py::ComArray<winrt::Windows::System::Diagnostics::Telemetry::PlatformTelemetryRegistrationResult>>();
193
- if (!py::cpp::_winrt::Array_Assign(arg, std::move(array)))
194
- {
195
- return nullptr;
196
- }
197
- Py_RETURN_NONE;
198
- }
199
-
200
- static PyObject* _from_PlatformTelemetryRegistrationResult(PyObject* /*unused*/, PyObject* arg) noexcept
201
- {
202
- try
203
- {
204
- auto return_value = py::convert_to<winrt::Windows::Foundation::IInspectable>(arg);
205
- return py::convert(return_value.as<winrt::Windows::System::Diagnostics::Telemetry::PlatformTelemetryRegistrationResult>());
206
- }
207
- catch (...)
208
- {
209
- py::to_PyErr();
210
- return nullptr;
211
- }
212
- }
213
-
214
- static PyMethodDef _methods_PlatformTelemetryRegistrationResult[] = {
215
- { "_assign_array_", _assign_array_PlatformTelemetryRegistrationResult, METH_O | METH_STATIC, nullptr },
216
- { "_from", reinterpret_cast<PyCFunction>(_from_PlatformTelemetryRegistrationResult), METH_O | METH_STATIC, nullptr },
217
- { }};
218
-
219
- static PyGetSetDef _getset_PlatformTelemetryRegistrationResult[] = {
220
- { "status", reinterpret_cast<getter>(PlatformTelemetryRegistrationResult_get_Status), nullptr, nullptr, nullptr },
221
- { }};
222
-
223
- static PyType_Slot _type_slots_PlatformTelemetryRegistrationResult[] = {
224
- { Py_tp_new, reinterpret_cast<void*>(_new_PlatformTelemetryRegistrationResult) },
225
- { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_PlatformTelemetryRegistrationResult) },
226
- { Py_tp_methods, reinterpret_cast<void*>(_methods_PlatformTelemetryRegistrationResult) },
227
- { Py_tp_getset, reinterpret_cast<void*>(_getset_PlatformTelemetryRegistrationResult) },
228
- { }};
229
-
230
- static PyType_Spec type_spec_PlatformTelemetryRegistrationResult = {
231
- "winrt._winrt_windows_system_diagnostics_telemetry.PlatformTelemetryRegistrationResult",
232
- sizeof(py::wrapper::Windows::System::Diagnostics::Telemetry::PlatformTelemetryRegistrationResult),
233
- 0,
234
- Py_TPFLAGS_DEFAULT,
235
- _type_slots_PlatformTelemetryRegistrationResult};
236
-
237
- // ----- PlatformTelemetryRegistrationSettings class --------------------
238
-
239
- static PyObject* _new_PlatformTelemetryRegistrationSettings(PyTypeObject* type, PyObject* args, PyObject* kwds) noexcept
240
- {
241
- if (kwds)
242
- {
243
- py::set_invalid_kwd_args_error();
244
- return nullptr;
245
- }
246
-
247
- auto arg_count = PyTuple_GET_SIZE(args);
248
- if (arg_count == 0)
249
- {
250
- try
251
- {
252
- winrt::Windows::System::Diagnostics::Telemetry::PlatformTelemetryRegistrationSettings instance{};
253
- return py::wrap(instance, type);
254
- }
255
- catch (...)
256
- {
257
- py::to_PyErr();
258
- return nullptr;
259
- }
260
- }
261
- else
262
- {
263
- py::set_invalid_arg_count_error(arg_count);
264
- return nullptr;
265
- }
266
- }
267
-
268
- static void _dealloc_PlatformTelemetryRegistrationSettings(py::wrapper::Windows::System::Diagnostics::Telemetry::PlatformTelemetryRegistrationSettings* self) noexcept
269
- {
270
- auto tp = Py_TYPE(self);
271
- std::destroy_at(&self->obj);
272
- tp->tp_free(self);
273
- Py_DECREF(tp);
274
- }
275
-
276
- static PyObject* PlatformTelemetryRegistrationSettings_get_UploadQuotaSize(py::wrapper::Windows::System::Diagnostics::Telemetry::PlatformTelemetryRegistrationSettings* self, void* /*unused*/) noexcept
277
- {
278
- try
279
- {
280
- static std::optional<bool> is_property_present{};
281
-
282
- if (!is_property_present.has_value())
283
- {
284
- is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Diagnostics.Telemetry.PlatformTelemetryRegistrationSettings", L"UploadQuotaSize");
285
- }
286
-
287
- if (!is_property_present.value())
288
- {
289
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
290
- return nullptr;
291
- }
292
-
293
- return py::convert([&]()
294
- {
295
- auto _gil = release_gil();
296
- return self->obj.UploadQuotaSize();
297
- }());
298
- }
299
- catch (...)
300
- {
301
- py::to_PyErr();
302
- return nullptr;
303
- }
304
- }
305
-
306
- static int PlatformTelemetryRegistrationSettings_put_UploadQuotaSize(py::wrapper::Windows::System::Diagnostics::Telemetry::PlatformTelemetryRegistrationSettings* self, PyObject* arg, void* /*unused*/) noexcept
307
- {
308
- if (!arg)
309
- {
310
- PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
311
- return -1;
312
- }
313
-
314
- try
315
- {
316
- static std::optional<bool> is_property_present{};
317
-
318
- if (!is_property_present.has_value())
319
- {
320
- is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Diagnostics.Telemetry.PlatformTelemetryRegistrationSettings", L"UploadQuotaSize");
321
- }
322
-
323
- if (!is_property_present.value())
324
- {
325
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
326
- return -1;
327
- }
328
-
329
- auto param0 = py::convert_to<uint32_t>(arg);
330
-
331
- {
332
- auto _gil = release_gil();
333
- self->obj.UploadQuotaSize(param0);
334
- }
335
-
336
- return 0;
337
- }
338
- catch (...)
339
- {
340
- py::to_PyErr();
341
- return -1;
342
- }
343
- }
344
-
345
- static PyObject* PlatformTelemetryRegistrationSettings_get_StorageSize(py::wrapper::Windows::System::Diagnostics::Telemetry::PlatformTelemetryRegistrationSettings* self, void* /*unused*/) noexcept
346
- {
347
- try
348
- {
349
- static std::optional<bool> is_property_present{};
350
-
351
- if (!is_property_present.has_value())
352
- {
353
- is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Diagnostics.Telemetry.PlatformTelemetryRegistrationSettings", L"StorageSize");
354
- }
355
-
356
- if (!is_property_present.value())
357
- {
358
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
359
- return nullptr;
360
- }
361
-
362
- return py::convert([&]()
363
- {
364
- auto _gil = release_gil();
365
- return self->obj.StorageSize();
366
- }());
367
- }
368
- catch (...)
369
- {
370
- py::to_PyErr();
371
- return nullptr;
372
- }
373
- }
374
-
375
- static int PlatformTelemetryRegistrationSettings_put_StorageSize(py::wrapper::Windows::System::Diagnostics::Telemetry::PlatformTelemetryRegistrationSettings* self, PyObject* arg, void* /*unused*/) noexcept
376
- {
377
- if (!arg)
378
- {
379
- PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
380
- return -1;
381
- }
382
-
383
- try
384
- {
385
- static std::optional<bool> is_property_present{};
386
-
387
- if (!is_property_present.has_value())
388
- {
389
- is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Diagnostics.Telemetry.PlatformTelemetryRegistrationSettings", L"StorageSize");
390
- }
391
-
392
- if (!is_property_present.value())
393
- {
394
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
395
- return -1;
396
- }
397
-
398
- auto param0 = py::convert_to<uint32_t>(arg);
399
-
400
- {
401
- auto _gil = release_gil();
402
- self->obj.StorageSize(param0);
403
- }
404
-
405
- return 0;
406
- }
407
- catch (...)
408
- {
409
- py::to_PyErr();
410
- return -1;
411
- }
412
- }
413
-
414
- static PyObject* _assign_array_PlatformTelemetryRegistrationSettings(PyObject* /*unused*/, PyObject* arg) noexcept
415
- {
416
- auto array = std::make_unique<py::ComArray<winrt::Windows::System::Diagnostics::Telemetry::PlatformTelemetryRegistrationSettings>>();
417
- if (!py::cpp::_winrt::Array_Assign(arg, std::move(array)))
418
- {
419
- return nullptr;
420
- }
421
- Py_RETURN_NONE;
422
- }
423
-
424
- static PyObject* _from_PlatformTelemetryRegistrationSettings(PyObject* /*unused*/, PyObject* arg) noexcept
425
- {
426
- try
427
- {
428
- auto return_value = py::convert_to<winrt::Windows::Foundation::IInspectable>(arg);
429
- return py::convert(return_value.as<winrt::Windows::System::Diagnostics::Telemetry::PlatformTelemetryRegistrationSettings>());
430
- }
431
- catch (...)
432
- {
433
- py::to_PyErr();
434
- return nullptr;
435
- }
436
- }
437
-
438
- static PyMethodDef _methods_PlatformTelemetryRegistrationSettings[] = {
439
- { "_assign_array_", _assign_array_PlatformTelemetryRegistrationSettings, METH_O | METH_STATIC, nullptr },
440
- { "_from", reinterpret_cast<PyCFunction>(_from_PlatformTelemetryRegistrationSettings), METH_O | METH_STATIC, nullptr },
441
- { }};
442
-
443
- static PyGetSetDef _getset_PlatformTelemetryRegistrationSettings[] = {
444
- { "upload_quota_size", reinterpret_cast<getter>(PlatformTelemetryRegistrationSettings_get_UploadQuotaSize), reinterpret_cast<setter>(PlatformTelemetryRegistrationSettings_put_UploadQuotaSize), nullptr, nullptr },
445
- { "storage_size", reinterpret_cast<getter>(PlatformTelemetryRegistrationSettings_get_StorageSize), reinterpret_cast<setter>(PlatformTelemetryRegistrationSettings_put_StorageSize), nullptr, nullptr },
446
- { }};
447
-
448
- static PyType_Slot _type_slots_PlatformTelemetryRegistrationSettings[] = {
449
- { Py_tp_new, reinterpret_cast<void*>(_new_PlatformTelemetryRegistrationSettings) },
450
- { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_PlatformTelemetryRegistrationSettings) },
451
- { Py_tp_methods, reinterpret_cast<void*>(_methods_PlatformTelemetryRegistrationSettings) },
452
- { Py_tp_getset, reinterpret_cast<void*>(_getset_PlatformTelemetryRegistrationSettings) },
453
- { }};
454
-
455
- static PyType_Spec type_spec_PlatformTelemetryRegistrationSettings = {
456
- "winrt._winrt_windows_system_diagnostics_telemetry.PlatformTelemetryRegistrationSettings",
457
- sizeof(py::wrapper::Windows::System::Diagnostics::Telemetry::PlatformTelemetryRegistrationSettings),
458
- 0,
459
- Py_TPFLAGS_DEFAULT,
460
- _type_slots_PlatformTelemetryRegistrationSettings};
461
-
462
- // ----- Windows.System.Diagnostics.Telemetry Initialization --------------------
463
-
464
- PyDoc_STRVAR(module_doc, "Windows.System.Diagnostics.Telemetry");
465
-
466
- static PyModuleDef module_def = {
467
- PyModuleDef_HEAD_INIT,
468
- "_winrt_windows_system_diagnostics_telemetry",
469
- module_doc,
470
- 0,
471
- nullptr,
472
- nullptr,
473
- nullptr,
474
- nullptr,
475
- nullptr};
476
- } // py::cpp::Windows::System::Diagnostics::Telemetry
477
-
478
- PyMODINIT_FUNC PyInit__winrt_windows_system_diagnostics_telemetry(void) noexcept
479
- {
480
- using namespace py::cpp::Windows::System::Diagnostics::Telemetry;
481
-
482
- if (py::import_winrt_runtime() == -1)
483
- {
484
- return nullptr;
485
- }
486
-
487
- py::pyobj_handle module{PyModule_Create(&module_def)};
488
-
489
- if (!module)
490
- {
491
- return nullptr;
492
- }
493
-
494
- auto inspectable_meta_type = py::get_inspectable_meta_type();
495
- if (!inspectable_meta_type)
496
- {
497
- return nullptr;
498
- }
499
-
500
- auto object_type = py::get_object_type();
501
- if (!object_type)
502
- {
503
- return nullptr;
504
- }
505
-
506
- py::pyobj_handle object_bases{PyTuple_Pack(1, object_type)};
507
-
508
- if (!object_bases)
509
- {
510
- return nullptr;
511
- }
512
-
513
- py::pyobj_handle PlatformTelemetryClient_Static_bases{PyTuple_Pack(1, reinterpret_cast<PyObject*>(inspectable_meta_type))};
514
- if (!PlatformTelemetryClient_Static_bases)
515
- {
516
- return nullptr;
517
- }
518
-
519
- py::pyobj_handle type_PlatformTelemetryClient_Static{PyType_FromSpecWithBases(&type_spec_PlatformTelemetryClient_Static, PlatformTelemetryClient_Static_bases.get())};
520
- if (!type_PlatformTelemetryClient_Static)
521
- {
522
- return nullptr;
523
- }
524
-
525
- py::pytype_handle PlatformTelemetryClient_type{py::register_python_type(module.get(), &type_spec_PlatformTelemetryClient, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_PlatformTelemetryClient_Static.get()))};
526
- if (!PlatformTelemetryClient_type)
527
- {
528
- return nullptr;
529
- }
530
-
531
- py::pytype_handle PlatformTelemetryRegistrationResult_type{py::register_python_type(module.get(), &type_spec_PlatformTelemetryRegistrationResult, object_bases.get(), inspectable_meta_type)};
532
- if (!PlatformTelemetryRegistrationResult_type)
533
- {
534
- return nullptr;
535
- }
536
-
537
- py::pytype_handle PlatformTelemetryRegistrationSettings_type{py::register_python_type(module.get(), &type_spec_PlatformTelemetryRegistrationSettings, object_bases.get(), inspectable_meta_type)};
538
- if (!PlatformTelemetryRegistrationSettings_type)
539
- {
540
- return nullptr;
541
- }
542
-
543
-
544
- return module.detach();
545
- }
@@ -1,46 +0,0 @@
1
- # WARNING: Please don't edit this file. It was automatically generated.
2
-
3
- [build-system]
4
- requires = ["setuptools>=78", "winrt-sdk"]
5
- build-backend = "setuptools.build_meta"
6
-
7
- [project]
8
- name = "winrt-Windows.System.Diagnostics.Telemetry"
9
- description = "Python projection of Windows Runtime (WinRT) APIs"
10
- readme = "README.md"
11
- license = "MIT"
12
- classifiers = [
13
- "Operating System :: Microsoft :: Windows",
14
- "Programming Language :: Python :: 3",
15
- "Programming Language :: Python :: Implementation :: CPython",
16
- "Intended Audience :: Developers",
17
- ]
18
- dynamic = ["version", "dependencies"]
19
- requires-python = ">=3.9"
20
-
21
- [project.urls]
22
- # Homepage = "https://github.com/pywinrt/pywinrt"
23
- Documentation = "https://pywinrt.readthedocs.io"
24
- Repository = "https://github.com/pywinrt/pywinrt"
25
- Changelog = "https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md"
26
-
27
- [tool.setuptools.dynamic]
28
- version = { file = "pywinrt-version.txt" }
29
- dependencies = { file = "requirements.txt" }
30
-
31
- [tool.setuptools.package-data]
32
- "*" = ["*.pyi", "py.typed"]
33
-
34
- [tool.cibuildwheel]
35
- # use local winrt-sdk build dependency
36
- environment = { PYTHONPATH="../../winrt-sdk/src" }
37
- # don't install winrt-sdk from PyPI
38
- build-frontend = { name = "build[uv]", args = ["--skip-dependency-check", "--no-isolation"] }
39
- before-build = "uv pip install setuptools"
40
- # don't build for PyPy
41
- skip = "pp*"
42
- # suppress warnings about ARM64 testing
43
- test-skip = "*-win_arm64"
44
-
45
- [tool.cibuildwheel.windows]
46
- archs = ["x86", "AMD64", "ARM64"]
@@ -1,3 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.2.1
2
-
3
- winrt-runtime~=3.2.1.0
@@ -1,4 +0,0 @@
1
- [egg_info]
2
- tag_build =
3
- tag_date = 0
4
-
@@ -1,33 +0,0 @@
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
- # GCC 15 complains about some things that it didn't in the past
15
- ext.extra_compile_args += ["-Wno-strict-aliasing", "-Wno-template-body"]
16
- ext.extra_link_args = ["-loleaut32"]
17
- else:
18
- raise ValueError(f"Unsupported compiler: {self.compiler.compiler_type}")
19
-
20
- build_ext.build_extension(self, ext)
21
-
22
-
23
- setup(
24
- cmdclass={"build_ext": build_ext_ex},
25
- ext_modules=[
26
- Extension(
27
- "winrt._winrt_windows_system_diagnostics_telemetry",
28
- sources=["py.Windows.System.Diagnostics.Telemetry.cpp"],
29
- include_dirs=get_include_dirs(),
30
- libraries=["windowsapp"],
31
- )
32
- ],
33
- )
@@ -1,23 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.2.1
2
-
3
- import enum
4
-
5
- import winrt.system
6
- from winrt._winrt_windows_system_diagnostics_telemetry import (
7
- PlatformTelemetryClient,
8
- PlatformTelemetryRegistrationResult,
9
- PlatformTelemetryRegistrationSettings,
10
- )
11
-
12
- __all__ = [
13
- "PlatformTelemetryRegistrationStatus",
14
- "PlatformTelemetryClient",
15
- "PlatformTelemetryRegistrationResult",
16
- "PlatformTelemetryRegistrationSettings",
17
- ]
18
-
19
- class PlatformTelemetryRegistrationStatus(enum.IntEnum):
20
- SUCCESS = 0
21
- SETTINGS_OUT_OF_RANGE = 1
22
- UNKNOWN_FAILURE = 2
23
-
@@ -1,23 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: winrt-Windows.System.Diagnostics.Telemetry
3
- Version: 3.2.1
4
- Summary: Python projection of Windows Runtime (WinRT) APIs
5
- License-Expression: MIT
6
- Project-URL: Documentation, https://pywinrt.readthedocs.io
7
- Project-URL: Repository, https://github.com/pywinrt/pywinrt
8
- Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
9
- Classifier: Operating System :: Microsoft :: Windows
10
- Classifier: Programming Language :: Python :: 3
11
- Classifier: Programming Language :: Python :: Implementation :: CPython
12
- Classifier: Intended Audience :: Developers
13
- Requires-Python: >=3.9
14
- Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime~=3.2.1.0
16
-
17
- <!-- warning: Please don't edit this file. It was automatically generated. -->
18
-
19
- # winrt-Windows.System.Diagnostics.Telemetry
20
-
21
- Windows Runtime (WinRT) APIs for for the `Windows.System.Diagnostics.Telemetry` namespace.
22
-
23
- This package provides the `winrt.windows.system.diagnostics.telemetry` module.
@@ -1,14 +0,0 @@
1
- README.md
2
- py.Windows.System.Diagnostics.Telemetry.cpp
3
- pyproject.toml
4
- pywinrt-version.txt
5
- requirements.txt
6
- setup.py
7
- winrt/_winrt_windows_system_diagnostics_telemetry.pyi
8
- winrt/windows/system/diagnostics/telemetry/__init__.py
9
- winrt/windows/system/diagnostics/telemetry/py.typed
10
- winrt_Windows.System.Diagnostics.Telemetry.egg-info/PKG-INFO
11
- winrt_Windows.System.Diagnostics.Telemetry.egg-info/SOURCES.txt
12
- winrt_Windows.System.Diagnostics.Telemetry.egg-info/dependency_links.txt
13
- winrt_Windows.System.Diagnostics.Telemetry.egg-info/requires.txt
14
- winrt_Windows.System.Diagnostics.Telemetry.egg-info/top_level.txt