winrt-Windows.System.RemoteDesktop.Provider 2.0.0b1__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 (16) hide show
  1. winrt-Windows.System.RemoteDesktop.Provider-2.0.0b1/PKG-INFO +22 -0
  2. winrt-Windows.System.RemoteDesktop.Provider-2.0.0b1/README.md +7 -0
  3. winrt-Windows.System.RemoteDesktop.Provider-2.0.0b1/all-requirements.txt +4 -0
  4. winrt-Windows.System.RemoteDesktop.Provider-2.0.0b1/py.Windows.System.RemoteDesktop.Provider.cpp +227 -0
  5. winrt-Windows.System.RemoteDesktop.Provider-2.0.0b1/pyproject.toml +43 -0
  6. winrt-Windows.System.RemoteDesktop.Provider-2.0.0b1/pywinrt-version.txt +1 -0
  7. winrt-Windows.System.RemoteDesktop.Provider-2.0.0b1/requirements.txt +3 -0
  8. winrt-Windows.System.RemoteDesktop.Provider-2.0.0b1/setup.cfg +4 -0
  9. winrt-Windows.System.RemoteDesktop.Provider-2.0.0b1/setup.py +17 -0
  10. winrt-Windows.System.RemoteDesktop.Provider-2.0.0b1/winrt/_winrt_windows_system_remotedesktop_provider.pyi +26 -0
  11. winrt-Windows.System.RemoteDesktop.Provider-2.0.0b1/winrt/windows/system/remotedesktop/provider/__init__.py +19 -0
  12. winrt-Windows.System.RemoteDesktop.Provider-2.0.0b1/winrt_Windows.System.RemoteDesktop.Provider.egg-info/PKG-INFO +22 -0
  13. winrt-Windows.System.RemoteDesktop.Provider-2.0.0b1/winrt_Windows.System.RemoteDesktop.Provider.egg-info/SOURCES.txt +14 -0
  14. winrt-Windows.System.RemoteDesktop.Provider-2.0.0b1/winrt_Windows.System.RemoteDesktop.Provider.egg-info/dependency_links.txt +1 -0
  15. winrt-Windows.System.RemoteDesktop.Provider-2.0.0b1/winrt_Windows.System.RemoteDesktop.Provider.egg-info/requires.txt +5 -0
  16. winrt-Windows.System.RemoteDesktop.Provider-2.0.0b1/winrt_Windows.System.RemoteDesktop.Provider.egg-info/top_level.txt +1 -0
@@ -0,0 +1,22 @@
1
+ Metadata-Version: 2.1
2
+ Name: winrt-Windows.System.RemoteDesktop.Provider
3
+ Version: 2.0.0b1
4
+ Summary: Python projection of Windows Runtime (WinRT) APIs
5
+ License: MIT
6
+ Project-URL: Repository, https://github.com/pywrint/pywrinrt
7
+ Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
8
+ Classifier: Operating System :: Microsoft :: Windows
9
+ Classifier: Programming Language :: Python :: 3
10
+ Classifier: Programming Language :: Python :: Implementation :: CPython
11
+ Classifier: Intended Audience :: Developers
12
+ Requires-Python: <3.13,>=3.9
13
+ Description-Content-Type: text/markdown
14
+ Provides-Extra: all
15
+
16
+ <!-- warning: Please don't edit this file. It was automatically generated. -->
17
+
18
+ # winrt-Windows.System.RemoteDesktop.Provider
19
+
20
+ Windows Runtime (WinRT) APIs for for the `Windows.System.RemoteDesktop.Provider` namespace.
21
+
22
+ This package provides the `winrt.windows.system.remotedesktop.provider` module.
@@ -0,0 +1,7 @@
1
+ <!-- warning: Please don't edit this file. It was automatically generated. -->
2
+
3
+ # winrt-Windows.System.RemoteDesktop.Provider
4
+
5
+ Windows Runtime (WinRT) APIs for for the `Windows.System.RemoteDesktop.Provider` namespace.
6
+
7
+ This package provides the `winrt.windows.system.remotedesktop.provider` module.
@@ -0,0 +1,4 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.1
2
+
3
+ winrt-Windows.Foundation[all]==2.0.0-beta.1
4
+ winrt-Windows.UI[all]==2.0.0-beta.1
@@ -0,0 +1,227 @@
1
+ // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.1
2
+
3
+ #include "py.Windows.System.RemoteDesktop.Provider.h"
4
+
5
+
6
+ namespace py::cpp::Windows::System::RemoteDesktop::Provider
7
+ {
8
+ // ----- RemoteDesktopConnectionInfo class --------------------
9
+
10
+ static PyObject* _new_RemoteDesktopConnectionInfo(PyTypeObject* /*unused*/, PyObject* /*unused*/, PyObject* /*unused*/) noexcept
11
+ {
12
+ static_assert(py::py_type<winrt::Windows::System::RemoteDesktop::Provider::RemoteDesktopConnectionInfo>::type_name);
13
+ py::set_invalid_activation_error(py::py_type<winrt::Windows::System::RemoteDesktop::Provider::RemoteDesktopConnectionInfo>::type_name);
14
+ return nullptr;
15
+ }
16
+
17
+ static void _dealloc_RemoteDesktopConnectionInfo(py::wrapper::Windows::System::RemoteDesktop::Provider::RemoteDesktopConnectionInfo* self) noexcept
18
+ {
19
+ auto tp = Py_TYPE(self);
20
+ std::destroy_at(&self->obj);
21
+ tp->tp_free(self);
22
+ Py_DECREF(tp);
23
+ }
24
+
25
+ static PyObject* RemoteDesktopConnectionInfo_GetForLaunchUri(PyObject* /*unused*/, PyObject* args) noexcept
26
+ {
27
+ auto arg_count = PyTuple_Size(args);
28
+
29
+ if (arg_count == 2)
30
+ {
31
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.RemoteDesktop.Provider.RemoteDesktopConnectionInfo", L"GetForLaunchUri", 2))
32
+ {
33
+ py::set_arg_count_version_error(2);
34
+ return nullptr;
35
+ }
36
+
37
+ try
38
+ {
39
+ auto param0 = py::convert_to<winrt::Windows::Foundation::Uri>(args, 0);
40
+ auto param1 = py::convert_to<winrt::Windows::UI::WindowId>(args, 1);
41
+
42
+ return py::convert(winrt::Windows::System::RemoteDesktop::Provider::RemoteDesktopConnectionInfo::GetForLaunchUri(param0, param1));
43
+ }
44
+ catch (...)
45
+ {
46
+ py::to_PyErr();
47
+ return nullptr;
48
+ }
49
+ }
50
+ else
51
+ {
52
+ py::set_invalid_arg_count_error(arg_count);
53
+ return nullptr;
54
+ }
55
+ }
56
+
57
+ static PyObject* RemoteDesktopConnectionInfo_SetConnectionStatus(py::wrapper::Windows::System::RemoteDesktop::Provider::RemoteDesktopConnectionInfo* self, PyObject* args) noexcept
58
+ {
59
+ auto arg_count = PyTuple_Size(args);
60
+
61
+ if (arg_count == 1)
62
+ {
63
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.RemoteDesktop.Provider.RemoteDesktopConnectionInfo", L"SetConnectionStatus", 1))
64
+ {
65
+ py::set_arg_count_version_error(1);
66
+ return nullptr;
67
+ }
68
+
69
+ try
70
+ {
71
+ auto param0 = py::convert_to<winrt::Windows::System::RemoteDesktop::Provider::RemoteDesktopConnectionStatus>(args, 0);
72
+
73
+ self->obj.SetConnectionStatus(param0);
74
+ Py_RETURN_NONE;
75
+ }
76
+ catch (...)
77
+ {
78
+ py::to_PyErr();
79
+ return nullptr;
80
+ }
81
+ }
82
+ else
83
+ {
84
+ py::set_invalid_arg_count_error(arg_count);
85
+ return nullptr;
86
+ }
87
+ }
88
+
89
+ static PyObject* _assign_array_RemoteDesktopConnectionInfo(PyObject* /*unused*/, PyObject* arg) noexcept
90
+ {
91
+ auto array = std::make_unique<py::ComArray<winrt::Windows::System::RemoteDesktop::Provider::RemoteDesktopConnectionInfo>>();
92
+ if (!py::cpp::_winrt::Array_Assign(arg, std::move(array)))
93
+ {
94
+ return nullptr;
95
+ }
96
+ Py_RETURN_NONE;
97
+ }
98
+
99
+ static PyObject* _from_RemoteDesktopConnectionInfo(PyObject* /*unused*/, PyObject* arg) noexcept
100
+ {
101
+ try
102
+ {
103
+ auto return_value = py::convert_to<winrt::Windows::Foundation::IInspectable>(arg);
104
+ return py::convert(return_value.as<winrt::Windows::System::RemoteDesktop::Provider::RemoteDesktopConnectionInfo>());
105
+ }
106
+ catch (...)
107
+ {
108
+ py::to_PyErr();
109
+ return nullptr;
110
+ }
111
+ }
112
+
113
+ static PyMethodDef _methods_RemoteDesktopConnectionInfo[] = {
114
+ { "set_connection_status", reinterpret_cast<PyCFunction>(RemoteDesktopConnectionInfo_SetConnectionStatus), METH_VARARGS, nullptr },
115
+ { "_assign_array_", _assign_array_RemoteDesktopConnectionInfo, METH_O | METH_STATIC, nullptr },
116
+ { "_from", reinterpret_cast<PyCFunction>(_from_RemoteDesktopConnectionInfo), METH_O | METH_STATIC, nullptr },
117
+ { }
118
+ };
119
+
120
+ static PyGetSetDef _getset_RemoteDesktopConnectionInfo[] = {
121
+ { }
122
+ };
123
+
124
+ static PyType_Slot _type_slots_RemoteDesktopConnectionInfo[] =
125
+ {
126
+ { Py_tp_new, reinterpret_cast<void*>(_new_RemoteDesktopConnectionInfo) },
127
+ { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_RemoteDesktopConnectionInfo) },
128
+ { Py_tp_methods, reinterpret_cast<void*>(_methods_RemoteDesktopConnectionInfo) },
129
+ { Py_tp_getset, reinterpret_cast<void*>(_getset_RemoteDesktopConnectionInfo) },
130
+ { },
131
+ };
132
+
133
+ static PyType_Spec type_spec_RemoteDesktopConnectionInfo =
134
+ {
135
+ "winrt._winrt_windows_system_remotedesktop_provider.RemoteDesktopConnectionInfo",
136
+ sizeof(py::wrapper::Windows::System::RemoteDesktop::Provider::RemoteDesktopConnectionInfo),
137
+ 0,
138
+ Py_TPFLAGS_DEFAULT,
139
+ _type_slots_RemoteDesktopConnectionInfo
140
+ };
141
+
142
+ static PyGetSetDef getset_RemoteDesktopConnectionInfo_Static[] = {
143
+ { }
144
+ };
145
+
146
+ static PyMethodDef methods_RemoteDesktopConnectionInfo_Static[] = {
147
+ { "get_for_launch_uri", reinterpret_cast<PyCFunction>(RemoteDesktopConnectionInfo_GetForLaunchUri), METH_VARARGS, nullptr },
148
+ { }
149
+ };
150
+
151
+ static PyType_Slot type_slots_RemoteDesktopConnectionInfo_Static[] =
152
+ {
153
+ { Py_tp_base, reinterpret_cast<void*>(&PyType_Type) },
154
+ { Py_tp_getset, reinterpret_cast<void*>(getset_RemoteDesktopConnectionInfo_Static) },
155
+ { Py_tp_methods, reinterpret_cast<void*>(methods_RemoteDesktopConnectionInfo_Static) },
156
+ { }
157
+ };
158
+
159
+ static PyType_Spec type_spec_RemoteDesktopConnectionInfo_Static =
160
+ {
161
+ "winrt._winrt_windows_system_remotedesktop_provider.RemoteDesktopConnectionInfo_Static",
162
+ static_cast<int>(PyType_Type.tp_basicsize),
163
+ static_cast<int>(PyType_Type.tp_itemsize),
164
+ Py_TPFLAGS_DEFAULT,
165
+ type_slots_RemoteDesktopConnectionInfo_Static
166
+ };
167
+
168
+ // ----- Windows.System.RemoteDesktop.Provider Initialization --------------------
169
+ PyDoc_STRVAR(module_doc, "Windows::System::RemoteDesktop::Provider");
170
+
171
+
172
+ static PyModuleDef module_def
173
+ = {PyModuleDef_HEAD_INIT,
174
+ "_winrt_windows_system_remotedesktop_provider",
175
+ module_doc,
176
+ 0,
177
+ nullptr,
178
+ nullptr,
179
+ nullptr,
180
+ nullptr,
181
+ nullptr};
182
+
183
+ } // py::cpp::Windows::System::RemoteDesktop::Provider
184
+
185
+ PyMODINIT_FUNC PyInit__winrt_windows_system_remotedesktop_provider(void) noexcept
186
+ {
187
+ using namespace py::cpp::Windows::System::RemoteDesktop::Provider;
188
+
189
+ if (py::import_winrt_runtime() == -1)
190
+ {
191
+ return nullptr;
192
+ }
193
+
194
+ py::pyobj_handle module{PyModule_Create(&module_def)};
195
+
196
+ if (!module)
197
+ {
198
+ return nullptr;
199
+ }
200
+
201
+ auto object_type = py::get_object_type();
202
+ if (!object_type)
203
+ {
204
+ return nullptr;
205
+ }
206
+
207
+ py::pyobj_handle object_bases{PyTuple_Pack(1, object_type)};
208
+
209
+ if (!object_bases)
210
+ {
211
+ return nullptr;
212
+ }
213
+
214
+ py::pyobj_handle type_RemoteDesktopConnectionInfo_Static{PyType_FromSpec(&type_spec_RemoteDesktopConnectionInfo_Static)};
215
+ if (!type_RemoteDesktopConnectionInfo_Static)
216
+ {
217
+ return nullptr;
218
+ }
219
+
220
+ if (py::register_python_type(module.get(), &type_spec_RemoteDesktopConnectionInfo, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_RemoteDesktopConnectionInfo_Static.get())) == -1)
221
+ {
222
+ return nullptr;
223
+ }
224
+
225
+
226
+ return module.detach();
227
+ }
@@ -0,0 +1,43 @@
1
+ # WARNING: Please don't edit this file. It was automatically generated.
2
+
3
+ [build-system]
4
+ requires = ["setuptools", "setuptools-scm", "winrt-sdk"]
5
+ build-backend = "setuptools.build_meta"
6
+
7
+ [project]
8
+ name = "winrt-Windows.System.RemoteDesktop.Provider"
9
+ description = "Python projection of Windows Runtime (WinRT) APIs"
10
+ readme = "README.md"
11
+ license = { text = "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", "optional-dependencies"]
19
+ requires-python = ">=3.9,<3.13"
20
+
21
+ [project.urls]
22
+ # Homepage = "https://github.com/pywrint/pywrinrt"
23
+ # Documentation = "https://readthedocs.org"
24
+ Repository = "https://github.com/pywrint/pywrinrt"
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
+ optional-dependencies.all = { file = "all-requirements.txt" }
31
+
32
+ [tool.cibuildwheel]
33
+ # use local winrt-sdk build dependency
34
+ environment = { PYTHONPATH="../winrt-sdk/src" }
35
+ # don't install winrt-sdk from PyPI
36
+ build-frontend = { name = "build", args = ["--skip-dependency-check", "--no-isolation"] }
37
+ # don't build for PyPy
38
+ skip = "pp*"
39
+ # suppress warnings about ARM64 testing
40
+ test-skip = "*-win_arm64"
41
+
42
+ [tool.cibuildwheel.windows]
43
+ archs = ["x86", "AMD64", "ARM64"]
@@ -0,0 +1,3 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.1
2
+
3
+ winrt-runtime==2.0.0-beta.1
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,17 @@
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_system_remotedesktop_provider",
10
+ sources=["py.Windows.System.RemoteDesktop.Provider.cpp"],
11
+ include_dirs=get_include_dirs(),
12
+ extra_compile_args=["/std:c++20", "/permissive-"],
13
+ libraries=["windowsapp"],
14
+ )
15
+ ],
16
+ package_data={"winrt": ["*.pyi"]},
17
+ )
@@ -0,0 +1,26 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.1
2
+
3
+ import datetime
4
+ import sys
5
+ import types
6
+ import typing
7
+ import uuid as _uuid
8
+ from builtins import property as _property
9
+
10
+ import winrt._winrt
11
+ import winrt.system
12
+ import winrt.windows.foundation
13
+ import winrt.windows.ui
14
+
15
+ from winrt.windows.system.remotedesktop.provider import RemoteDesktopConnectionStatus
16
+
17
+ Self = typing.TypeVar('Self')
18
+
19
+ class RemoteDesktopConnectionInfo_Static(type):
20
+ def get_for_launch_uri(cls, launch_uri: typing.Optional[winrt.windows.foundation.Uri], window_id: winrt.windows.ui.WindowId, /) -> typing.Optional[RemoteDesktopConnectionInfo]: ...
21
+
22
+ class RemoteDesktopConnectionInfo(winrt.system.Object, metaclass=RemoteDesktopConnectionInfo_Static):
23
+ @staticmethod
24
+ def _from(obj: winrt.system.Object, /) -> RemoteDesktopConnectionInfo: ...
25
+ def set_connection_status(self, value: RemoteDesktopConnectionStatus, /) -> None: ...
26
+
@@ -0,0 +1,19 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.1
2
+
3
+ import enum
4
+
5
+ import winrt.system
6
+ from winrt import _winrt_windows_system_remotedesktop_provider
7
+
8
+ __all__ = [
9
+ "RemoteDesktopConnectionStatus",
10
+ "RemoteDesktopConnectionInfo",
11
+ ]
12
+
13
+ class RemoteDesktopConnectionStatus(enum.IntEnum):
14
+ CONNECTING = 0
15
+ CONNECTED = 1
16
+ USER_INPUT_NEEDED = 2
17
+ DISCONNECTED = 3
18
+
19
+ RemoteDesktopConnectionInfo = _winrt_windows_system_remotedesktop_provider.RemoteDesktopConnectionInfo
@@ -0,0 +1,22 @@
1
+ Metadata-Version: 2.1
2
+ Name: winrt-Windows.System.RemoteDesktop.Provider
3
+ Version: 2.0.0b1
4
+ Summary: Python projection of Windows Runtime (WinRT) APIs
5
+ License: MIT
6
+ Project-URL: Repository, https://github.com/pywrint/pywrinrt
7
+ Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
8
+ Classifier: Operating System :: Microsoft :: Windows
9
+ Classifier: Programming Language :: Python :: 3
10
+ Classifier: Programming Language :: Python :: Implementation :: CPython
11
+ Classifier: Intended Audience :: Developers
12
+ Requires-Python: <3.13,>=3.9
13
+ Description-Content-Type: text/markdown
14
+ Provides-Extra: all
15
+
16
+ <!-- warning: Please don't edit this file. It was automatically generated. -->
17
+
18
+ # winrt-Windows.System.RemoteDesktop.Provider
19
+
20
+ Windows Runtime (WinRT) APIs for for the `Windows.System.RemoteDesktop.Provider` namespace.
21
+
22
+ This package provides the `winrt.windows.system.remotedesktop.provider` module.
@@ -0,0 +1,14 @@
1
+ README.md
2
+ all-requirements.txt
3
+ py.Windows.System.RemoteDesktop.Provider.cpp
4
+ pyproject.toml
5
+ pywinrt-version.txt
6
+ requirements.txt
7
+ setup.py
8
+ winrt/_winrt_windows_system_remotedesktop_provider.pyi
9
+ winrt/windows/system/remotedesktop/provider/__init__.py
10
+ winrt_Windows.System.RemoteDesktop.Provider.egg-info/PKG-INFO
11
+ winrt_Windows.System.RemoteDesktop.Provider.egg-info/SOURCES.txt
12
+ winrt_Windows.System.RemoteDesktop.Provider.egg-info/dependency_links.txt
13
+ winrt_Windows.System.RemoteDesktop.Provider.egg-info/requires.txt
14
+ winrt_Windows.System.RemoteDesktop.Provider.egg-info/top_level.txt
@@ -0,0 +1,5 @@
1
+ winrt-runtime==2.0.0-beta.1
2
+
3
+ [all]
4
+ winrt-Windows.Foundation[all]==2.0.0-beta.1
5
+ winrt-Windows.UI[all]==2.0.0-beta.1