winrt-Windows.System.RemoteDesktop.Input 2.1.0__tar.gz → 2.3.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 (19) hide show
  1. {winrt_windows_system_remotedesktop_input-2.1.0 → winrt_windows_system_remotedesktop_input-2.3.0}/PKG-INFO +3 -3
  2. {winrt_windows_system_remotedesktop_input-2.1.0 → winrt_windows_system_remotedesktop_input-2.3.0}/py.Windows.System.RemoteDesktop.Input.cpp +111 -10
  3. {winrt_windows_system_remotedesktop_input-2.1.0 → winrt_windows_system_remotedesktop_input-2.3.0}/pyproject.toml +3 -2
  4. winrt_windows_system_remotedesktop_input-2.3.0/pywinrt-version.txt +1 -0
  5. {winrt_windows_system_remotedesktop_input-2.1.0 → winrt_windows_system_remotedesktop_input-2.3.0}/requirements.txt +2 -2
  6. {winrt_windows_system_remotedesktop_input-2.1.0 → winrt_windows_system_remotedesktop_input-2.3.0}/winrt/_winrt_windows_system_remotedesktop_input.pyi +7 -2
  7. winrt_windows_system_remotedesktop_input-2.3.0/winrt/windows/system/remotedesktop/input/__init__.py +29 -0
  8. {winrt_windows_system_remotedesktop_input-2.1.0 → winrt_windows_system_remotedesktop_input-2.3.0}/winrt_Windows.System.RemoteDesktop.Input.egg-info/PKG-INFO +3 -3
  9. winrt_windows_system_remotedesktop_input-2.3.0/winrt_Windows.System.RemoteDesktop.Input.egg-info/requires.txt +1 -0
  10. winrt_windows_system_remotedesktop_input-2.1.0/pywinrt-version.txt +0 -1
  11. winrt_windows_system_remotedesktop_input-2.1.0/winrt/windows/system/remotedesktop/input/__init__.py +0 -15
  12. winrt_windows_system_remotedesktop_input-2.1.0/winrt_Windows.System.RemoteDesktop.Input.egg-info/requires.txt +0 -1
  13. {winrt_windows_system_remotedesktop_input-2.1.0 → winrt_windows_system_remotedesktop_input-2.3.0}/README.md +0 -0
  14. {winrt_windows_system_remotedesktop_input-2.1.0 → winrt_windows_system_remotedesktop_input-2.3.0}/setup.cfg +0 -0
  15. {winrt_windows_system_remotedesktop_input-2.1.0 → winrt_windows_system_remotedesktop_input-2.3.0}/setup.py +0 -0
  16. {winrt_windows_system_remotedesktop_input-2.1.0 → winrt_windows_system_remotedesktop_input-2.3.0}/winrt/windows/system/remotedesktop/input/py.typed +0 -0
  17. {winrt_windows_system_remotedesktop_input-2.1.0 → winrt_windows_system_remotedesktop_input-2.3.0}/winrt_Windows.System.RemoteDesktop.Input.egg-info/SOURCES.txt +0 -0
  18. {winrt_windows_system_remotedesktop_input-2.1.0 → winrt_windows_system_remotedesktop_input-2.3.0}/winrt_Windows.System.RemoteDesktop.Input.egg-info/dependency_links.txt +0 -0
  19. {winrt_windows_system_remotedesktop_input-2.1.0 → winrt_windows_system_remotedesktop_input-2.3.0}/winrt_Windows.System.RemoteDesktop.Input.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.System.RemoteDesktop.Input
3
- Version: 2.1.0
3
+ Version: 2.3.0
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
5
  License: MIT
6
6
  Project-URL: Documentation, https://pywinrt.readthedocs.io
@@ -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.13,>=3.9
13
+ Requires-Python: <3.14,>=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==2.1.0
15
+ Requires-Dist: winrt-runtime==2.3.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.1.0
1
+ // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
2
2
 
3
3
  #include "py.Windows.System.RemoteDesktop.Input.h"
4
4
 
@@ -15,14 +15,31 @@ namespace py::cpp::Windows::System::RemoteDesktop::Input
15
15
  }
16
16
 
17
17
  auto arg_count = PyTuple_Size(args);
18
- if (arg_count == 2)
18
+ if (arg_count == 3)
19
+ {
20
+ try
21
+ {
22
+ auto param0 = py::convert_to<winrt::guid>(args, 0);
23
+ auto param1 = py::convert_to<winrt::Windows::System::RemoteDesktop::Input::RemoteTextConnectionDataHandler>(args, 1);
24
+ auto param2 = py::convert_to<winrt::Windows::System::RemoteDesktop::Input::RemoteTextConnectionOptions>(args, 2);
25
+
26
+ winrt::Windows::System::RemoteDesktop::Input::RemoteTextConnection instance{param0, param1, param2};
27
+ return py::wrap(instance, type);
28
+ }
29
+ catch (...)
30
+ {
31
+ py::to_PyErr();
32
+ return nullptr;
33
+ }
34
+ }
35
+ else if (arg_count == 2)
19
36
  {
20
37
  try
21
38
  {
22
39
  auto param0 = py::convert_to<winrt::guid>(args, 0);
23
40
  auto param1 = py::convert_to<winrt::Windows::System::RemoteDesktop::Input::RemoteTextConnectionDataHandler>(args, 1);
24
41
 
25
- winrt::Windows::System::RemoteDesktop::Input::RemoteTextConnection instance{ param0, param1 };
42
+ winrt::Windows::System::RemoteDesktop::Input::RemoteTextConnection instance{param0, param1};
26
43
  return py::wrap(instance, type);
27
44
  }
28
45
  catch (...)
@@ -54,7 +71,14 @@ namespace py::cpp::Windows::System::RemoteDesktop::Input
54
71
  {
55
72
  try
56
73
  {
57
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.RemoteDesktop.Input.RemoteTextConnection", L"Close", 0))
74
+ static std::optional<bool> is_overload_present{};
75
+
76
+ if (!is_overload_present.has_value())
77
+ {
78
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.RemoteDesktop.Input.RemoteTextConnection", L"Close", 0);
79
+ }
80
+
81
+ if (!is_overload_present.value())
58
82
  {
59
83
  py::set_arg_count_version_error(0);
60
84
  return nullptr;
@@ -84,7 +108,14 @@ namespace py::cpp::Windows::System::RemoteDesktop::Input
84
108
  {
85
109
  try
86
110
  {
87
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.RemoteDesktop.Input.RemoteTextConnection", L"RegisterThread", 1))
111
+ static std::optional<bool> is_overload_present{};
112
+
113
+ if (!is_overload_present.has_value())
114
+ {
115
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.RemoteDesktop.Input.RemoteTextConnection", L"RegisterThread", 1);
116
+ }
117
+
118
+ if (!is_overload_present.value())
88
119
  {
89
120
  py::set_arg_count_version_error(1);
90
121
  return nullptr;
@@ -116,7 +147,14 @@ namespace py::cpp::Windows::System::RemoteDesktop::Input
116
147
  {
117
148
  try
118
149
  {
119
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.RemoteDesktop.Input.RemoteTextConnection", L"ReportDataReceived", 1))
150
+ static std::optional<bool> is_overload_present{};
151
+
152
+ if (!is_overload_present.has_value())
153
+ {
154
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.RemoteDesktop.Input.RemoteTextConnection", L"ReportDataReceived", 1);
155
+ }
156
+
157
+ if (!is_overload_present.value())
120
158
  {
121
159
  py::set_arg_count_version_error(1);
122
160
  return nullptr;
@@ -140,6 +178,46 @@ namespace py::cpp::Windows::System::RemoteDesktop::Input
140
178
  }
141
179
  }
142
180
 
181
+ static PyObject* RemoteTextConnection_ReportPredictedKeyEvent(py::wrapper::Windows::System::RemoteDesktop::Input::RemoteTextConnection* self, PyObject* args) noexcept
182
+ {
183
+ auto arg_count = PyTuple_Size(args);
184
+
185
+ if (arg_count == 2)
186
+ {
187
+ try
188
+ {
189
+ static std::optional<bool> is_overload_present{};
190
+
191
+ if (!is_overload_present.has_value())
192
+ {
193
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.RemoteDesktop.Input.RemoteTextConnection", L"ReportPredictedKeyEvent", 2);
194
+ }
195
+
196
+ if (!is_overload_present.value())
197
+ {
198
+ py::set_arg_count_version_error(2);
199
+ return nullptr;
200
+ }
201
+
202
+ auto param0 = py::convert_to<uint16_t>(args, 0);
203
+ auto param1 = py::convert_to<winrt::Windows::System::RemoteDesktop::Input::RemoteKeyEventAttributes>(args, 1);
204
+
205
+ self->obj.ReportPredictedKeyEvent(param0, param1);
206
+ Py_RETURN_NONE;
207
+ }
208
+ catch (...)
209
+ {
210
+ py::to_PyErr();
211
+ return nullptr;
212
+ }
213
+ }
214
+ else
215
+ {
216
+ py::set_invalid_arg_count_error(arg_count);
217
+ return nullptr;
218
+ }
219
+ }
220
+
143
221
  static PyObject* RemoteTextConnection_UnregisterThread(py::wrapper::Windows::System::RemoteDesktop::Input::RemoteTextConnection* self, PyObject* args) noexcept
144
222
  {
145
223
  auto arg_count = PyTuple_Size(args);
@@ -148,7 +226,14 @@ namespace py::cpp::Windows::System::RemoteDesktop::Input
148
226
  {
149
227
  try
150
228
  {
151
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.RemoteDesktop.Input.RemoteTextConnection", L"UnregisterThread", 1))
229
+ static std::optional<bool> is_overload_present{};
230
+
231
+ if (!is_overload_present.has_value())
232
+ {
233
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.RemoteDesktop.Input.RemoteTextConnection", L"UnregisterThread", 1);
234
+ }
235
+
236
+ if (!is_overload_present.value())
152
237
  {
153
238
  py::set_arg_count_version_error(1);
154
239
  return nullptr;
@@ -176,7 +261,14 @@ namespace py::cpp::Windows::System::RemoteDesktop::Input
176
261
  {
177
262
  try
178
263
  {
179
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.RemoteDesktop.Input.RemoteTextConnection", L"IsEnabled"))
264
+ static std::optional<bool> is_property_present{};
265
+
266
+ if (!is_property_present.has_value())
267
+ {
268
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.RemoteDesktop.Input.RemoteTextConnection", L"IsEnabled");
269
+ }
270
+
271
+ if (!is_property_present.value())
180
272
  {
181
273
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
182
274
  return nullptr;
@@ -201,7 +293,14 @@ namespace py::cpp::Windows::System::RemoteDesktop::Input
201
293
 
202
294
  try
203
295
  {
204
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.RemoteDesktop.Input.RemoteTextConnection", L"IsEnabled"))
296
+ static std::optional<bool> is_property_present{};
297
+
298
+ if (!is_property_present.has_value())
299
+ {
300
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.RemoteDesktop.Input.RemoteTextConnection", L"IsEnabled");
301
+ }
302
+
303
+ if (!is_property_present.value())
205
304
  {
206
305
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
207
306
  return -1;
@@ -266,6 +365,7 @@ namespace py::cpp::Windows::System::RemoteDesktop::Input
266
365
  { "close", reinterpret_cast<PyCFunction>(RemoteTextConnection_Close), METH_VARARGS, nullptr },
267
366
  { "register_thread", reinterpret_cast<PyCFunction>(RemoteTextConnection_RegisterThread), METH_VARARGS, nullptr },
268
367
  { "report_data_received", reinterpret_cast<PyCFunction>(RemoteTextConnection_ReportDataReceived), METH_VARARGS, nullptr },
368
+ { "report_predicted_key_event", reinterpret_cast<PyCFunction>(RemoteTextConnection_ReportPredictedKeyEvent), METH_VARARGS, nullptr },
269
369
  { "unregister_thread", reinterpret_cast<PyCFunction>(RemoteTextConnection_UnregisterThread), METH_VARARGS, nullptr },
270
370
  { "_assign_array_", _assign_array_RemoteTextConnection, METH_O | METH_STATIC, nullptr },
271
371
  { "_from", reinterpret_cast<PyCFunction>(_from_RemoteTextConnection), METH_O | METH_STATIC, nullptr },
@@ -339,7 +439,8 @@ PyMODINIT_FUNC PyInit__winrt_windows_system_remotedesktop_input(void) noexcept
339
439
  return nullptr;
340
440
  }
341
441
 
342
- if (py::register_python_type(module.get(), &type_spec_RemoteTextConnection, object_bases.get(), nullptr) == -1)
442
+ py::pytype_handle RemoteTextConnection_type{py::register_python_type(module.get(), &type_spec_RemoteTextConnection, object_bases.get(), nullptr)};
443
+ if (!RemoteTextConnection_type)
343
444
  {
344
445
  return nullptr;
345
446
  }
@@ -16,7 +16,7 @@ classifiers = [
16
16
  "Intended Audience :: Developers",
17
17
  ]
18
18
  dynamic = ["version", "dependencies"]
19
- requires-python = ">=3.9,<3.13"
19
+ requires-python = ">=3.9,<3.14"
20
20
 
21
21
  [project.urls]
22
22
  # Homepage = "https://github.com/pywinrt/pywinrt"
@@ -35,7 +35,8 @@ dependencies = { file = "requirements.txt" }
35
35
  # use local winrt-sdk build dependency
36
36
  environment = { PYTHONPATH="../winrt-sdk/src" }
37
37
  # don't install winrt-sdk from PyPI
38
- build-frontend = { name = "build", args = ["--skip-dependency-check", "--no-isolation"] }
38
+ build-frontend = { name = "build[uv]", args = ["--skip-dependency-check", "--no-isolation"] }
39
+ before-build = "uv pip install setuptools"
39
40
  # don't build for PyPy
40
41
  skip = "pp*"
41
42
  # suppress warnings about ARM64 testing
@@ -1,3 +1,3 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
2
2
 
3
- winrt-runtime==2.1.0
3
+ winrt-runtime==2.3.0
@@ -1,4 +1,4 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
2
2
 
3
3
  import datetime
4
4
  import sys
@@ -10,6 +10,7 @@ from builtins import property as _property
10
10
  import winrt._winrt
11
11
  import winrt.system
12
12
 
13
+ from winrt.windows.system.remotedesktop.input import RemoteKeyEventAttributes, RemoteTextConnectionOptions
13
14
  from winrt.windows.system.remotedesktop.input import RemoteTextConnectionDataHandler
14
15
 
15
16
  Self = typing.TypeVar('Self')
@@ -20,10 +21,14 @@ class RemoteTextConnection(winrt.system.Object):
20
21
  def __exit__(self, *args) -> None: ...
21
22
  @staticmethod
22
23
  def _from(obj: winrt.system.Object, /) -> RemoteTextConnection: ...
24
+ @typing.overload
25
+ def __new__(cls: typing.Type[RemoteTextConnection], connection_id: _uuid.UUID, pdu_forwarder: typing.Optional[RemoteTextConnectionDataHandler], options: RemoteTextConnectionOptions) -> RemoteTextConnection: ...
26
+ @typing.overload
23
27
  def __new__(cls: typing.Type[RemoteTextConnection], connection_id: _uuid.UUID, pdu_forwarder: typing.Optional[RemoteTextConnectionDataHandler]) -> RemoteTextConnection: ...
24
28
  def close(self) -> None: ...
25
29
  def register_thread(self, thread_id: winrt.system.UInt32, /) -> None: ...
26
- def report_data_received(self, pdu_data: winrt.system.Array[winrt.system.UInt8], /) -> None: ...
30
+ def report_data_received(self, pdu_data: typing.Union[winrt.system.Array[winrt.system.UInt8], winrt.system.ReadableBuffer], /) -> None: ...
31
+ def report_predicted_key_event(self, scan_code: winrt.system.UInt16, attributes: RemoteKeyEventAttributes, /) -> None: ...
27
32
  def unregister_thread(self, thread_id: winrt.system.UInt32, /) -> None: ...
28
33
  @_property
29
34
  def is_enabled(self) -> bool: ...
@@ -0,0 +1,29 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
2
+
3
+ import enum
4
+ import typing
5
+ import uuid as _uuid
6
+
7
+ import winrt.system
8
+ from winrt import _winrt_windows_system_remotedesktop_input
9
+
10
+ __all__ = [
11
+ "RemoteKeyEventAttributes",
12
+ "RemoteTextConnectionOptions",
13
+ "RemoteTextConnection",
14
+ "RemoteTextConnectionDataHandler",
15
+ ]
16
+
17
+ class RemoteKeyEventAttributes(enum.IntFlag):
18
+ NONE = 0x0
19
+ KEY_UP = 0x1
20
+ REPEAT = 0x2
21
+ EXTENDED = 0x4
22
+ EXTENDED1 = 0x8
23
+
24
+ class RemoteTextConnectionOptions(enum.IntFlag):
25
+ NONE = 0x0
26
+ ENABLE_PREDICTED_KEY_REPORTING = 0x1
27
+
28
+ RemoteTextConnection = _winrt_windows_system_remotedesktop_input.RemoteTextConnection
29
+ RemoteTextConnectionDataHandler = typing.Callable[[typing.Union[winrt.system.Array[winrt.system.UInt8], winrt.system.ReadableBuffer]], bool]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.System.RemoteDesktop.Input
3
- Version: 2.1.0
3
+ Version: 2.3.0
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
5
  License: MIT
6
6
  Project-URL: Documentation, https://pywinrt.readthedocs.io
@@ -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.13,>=3.9
13
+ Requires-Python: <3.14,>=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==2.1.0
15
+ Requires-Dist: winrt-runtime==2.3.0
16
16
 
17
17
  <!-- warning: Please don't edit this file. It was automatically generated. -->
18
18
 
@@ -1,15 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
2
-
3
- import typing
4
- import uuid as _uuid
5
-
6
- import winrt.system
7
- from winrt import _winrt_windows_system_remotedesktop_input
8
-
9
- __all__ = [
10
- "RemoteTextConnection",
11
- "RemoteTextConnectionDataHandler",
12
- ]
13
-
14
- RemoteTextConnection = _winrt_windows_system_remotedesktop_input.RemoteTextConnection
15
- RemoteTextConnectionDataHandler = typing.Callable[[winrt.system.Array[winrt.system.UInt8]], bool]