winrt-Windows.Security.Cryptography.DataProtection 2.0.1__tar.gz → 2.2.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 (21) hide show
  1. {winrt_windows_security_cryptography_dataprotection-2.0.1 → winrt_windows_security_cryptography_dataprotection-2.2.0}/PKG-INFO +5 -5
  2. winrt_windows_security_cryptography_dataprotection-2.2.0/all-requirements.txt +4 -0
  3. {winrt_windows_security_cryptography_dataprotection-2.0.1 → winrt_windows_security_cryptography_dataprotection-2.2.0}/py.Windows.Security.Cryptography.DataProtection.cpp +72 -48
  4. {winrt_windows_security_cryptography_dataprotection-2.0.1 → winrt_windows_security_cryptography_dataprotection-2.2.0}/pyproject.toml +3 -2
  5. winrt_windows_security_cryptography_dataprotection-2.2.0/pywinrt-version.txt +1 -0
  6. {winrt_windows_security_cryptography_dataprotection-2.0.1 → winrt_windows_security_cryptography_dataprotection-2.2.0}/requirements.txt +2 -2
  7. winrt_windows_security_cryptography_dataprotection-2.2.0/winrt/_winrt_windows_security_cryptography_dataprotection.pyi +29 -0
  8. {winrt_windows_security_cryptography_dataprotection-2.0.1 → winrt_windows_security_cryptography_dataprotection-2.2.0}/winrt/windows/security/cryptography/dataprotection/__init__.py +1 -1
  9. {winrt_windows_security_cryptography_dataprotection-2.0.1 → winrt_windows_security_cryptography_dataprotection-2.2.0}/winrt_Windows.Security.Cryptography.DataProtection.egg-info/PKG-INFO +5 -5
  10. winrt_windows_security_cryptography_dataprotection-2.2.0/winrt_Windows.Security.Cryptography.DataProtection.egg-info/requires.txt +5 -0
  11. winrt_windows_security_cryptography_dataprotection-2.0.1/all-requirements.txt +0 -4
  12. winrt_windows_security_cryptography_dataprotection-2.0.1/pywinrt-version.txt +0 -1
  13. winrt_windows_security_cryptography_dataprotection-2.0.1/winrt/_winrt_windows_security_cryptography_dataprotection.pyi +0 -29
  14. winrt_windows_security_cryptography_dataprotection-2.0.1/winrt_Windows.Security.Cryptography.DataProtection.egg-info/requires.txt +0 -5
  15. {winrt_windows_security_cryptography_dataprotection-2.0.1 → winrt_windows_security_cryptography_dataprotection-2.2.0}/README.md +0 -0
  16. {winrt_windows_security_cryptography_dataprotection-2.0.1 → winrt_windows_security_cryptography_dataprotection-2.2.0}/setup.cfg +0 -0
  17. {winrt_windows_security_cryptography_dataprotection-2.0.1 → winrt_windows_security_cryptography_dataprotection-2.2.0}/setup.py +0 -0
  18. {winrt_windows_security_cryptography_dataprotection-2.0.1 → winrt_windows_security_cryptography_dataprotection-2.2.0}/winrt/windows/security/cryptography/dataprotection/py.typed +0 -0
  19. {winrt_windows_security_cryptography_dataprotection-2.0.1 → winrt_windows_security_cryptography_dataprotection-2.2.0}/winrt_Windows.Security.Cryptography.DataProtection.egg-info/SOURCES.txt +0 -0
  20. {winrt_windows_security_cryptography_dataprotection-2.0.1 → winrt_windows_security_cryptography_dataprotection-2.2.0}/winrt_Windows.Security.Cryptography.DataProtection.egg-info/dependency_links.txt +0 -0
  21. {winrt_windows_security_cryptography_dataprotection-2.0.1 → winrt_windows_security_cryptography_dataprotection-2.2.0}/winrt_Windows.Security.Cryptography.DataProtection.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.Security.Cryptography.DataProtection
3
- Version: 2.0.1
3
+ Version: 2.2.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,12 +10,12 @@ 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.0.1
15
+ Requires-Dist: winrt-runtime==2.2.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.Foundation[all]==2.0.1; extra == "all"
18
- Requires-Dist: winrt-Windows.Storage.Streams[all]==2.0.1; extra == "all"
17
+ Requires-Dist: winrt-Windows.Foundation[all]==2.2.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Storage.Streams[all]==2.2.0; extra == "all"
19
19
 
20
20
  <!-- warning: Please don't edit this file. It was automatically generated. -->
21
21
 
@@ -0,0 +1,4 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
+
3
+ winrt-Windows.Foundation[all]==2.2.0
4
+ winrt-Windows.Storage.Streams[all]==2.2.0
@@ -1,8 +1,7 @@
1
- // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.1
1
+ // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
2
 
3
3
  #include "py.Windows.Security.Cryptography.DataProtection.h"
4
4
 
5
-
6
5
  namespace py::cpp::Windows::Security::Cryptography::DataProtection
7
6
  {
8
7
  // ----- DataProtectionProvider class --------------------
@@ -22,7 +21,7 @@ namespace py::cpp::Windows::Security::Cryptography::DataProtection
22
21
  {
23
22
  auto param0 = py::convert_to<winrt::hstring>(args, 0);
24
23
 
25
- winrt::Windows::Security::Cryptography::DataProtection::DataProtectionProvider instance{ param0 };
24
+ winrt::Windows::Security::Cryptography::DataProtection::DataProtectionProvider instance{param0};
26
25
  return py::wrap(instance, type);
27
26
  }
28
27
  catch (...)
@@ -35,7 +34,7 @@ namespace py::cpp::Windows::Security::Cryptography::DataProtection
35
34
  {
36
35
  try
37
36
  {
38
- winrt::Windows::Security::Cryptography::DataProtection::DataProtectionProvider instance{ };
37
+ winrt::Windows::Security::Cryptography::DataProtection::DataProtectionProvider instance{};
39
38
  return py::wrap(instance, type);
40
39
  }
41
40
  catch (...)
@@ -65,14 +64,21 @@ namespace py::cpp::Windows::Security::Cryptography::DataProtection
65
64
 
66
65
  if (arg_count == 1)
67
66
  {
68
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Cryptography.DataProtection.DataProtectionProvider", L"ProtectAsync", 1))
69
- {
70
- py::set_arg_count_version_error(1);
71
- return nullptr;
72
- }
73
-
74
67
  try
75
68
  {
69
+ static std::optional<bool> is_overload_present{};
70
+
71
+ if (!is_overload_present.has_value())
72
+ {
73
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Cryptography.DataProtection.DataProtectionProvider", L"ProtectAsync", 1);
74
+ }
75
+
76
+ if (!is_overload_present.value())
77
+ {
78
+ py::set_arg_count_version_error(1);
79
+ return nullptr;
80
+ }
81
+
76
82
  auto param0 = py::convert_to<winrt::Windows::Storage::Streams::IBuffer>(args, 0);
77
83
 
78
84
  return py::convert(self->obj.ProtectAsync(param0));
@@ -96,14 +102,21 @@ namespace py::cpp::Windows::Security::Cryptography::DataProtection
96
102
 
97
103
  if (arg_count == 2)
98
104
  {
99
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Cryptography.DataProtection.DataProtectionProvider", L"ProtectStreamAsync", 2))
100
- {
101
- py::set_arg_count_version_error(2);
102
- return nullptr;
103
- }
104
-
105
105
  try
106
106
  {
107
+ static std::optional<bool> is_overload_present{};
108
+
109
+ if (!is_overload_present.has_value())
110
+ {
111
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Cryptography.DataProtection.DataProtectionProvider", L"ProtectStreamAsync", 2);
112
+ }
113
+
114
+ if (!is_overload_present.value())
115
+ {
116
+ py::set_arg_count_version_error(2);
117
+ return nullptr;
118
+ }
119
+
107
120
  auto param0 = py::convert_to<winrt::Windows::Storage::Streams::IInputStream>(args, 0);
108
121
  auto param1 = py::convert_to<winrt::Windows::Storage::Streams::IOutputStream>(args, 1);
109
122
 
@@ -128,14 +141,21 @@ namespace py::cpp::Windows::Security::Cryptography::DataProtection
128
141
 
129
142
  if (arg_count == 1)
130
143
  {
131
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Cryptography.DataProtection.DataProtectionProvider", L"UnprotectAsync", 1))
132
- {
133
- py::set_arg_count_version_error(1);
134
- return nullptr;
135
- }
136
-
137
144
  try
138
145
  {
146
+ static std::optional<bool> is_overload_present{};
147
+
148
+ if (!is_overload_present.has_value())
149
+ {
150
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Cryptography.DataProtection.DataProtectionProvider", L"UnprotectAsync", 1);
151
+ }
152
+
153
+ if (!is_overload_present.value())
154
+ {
155
+ py::set_arg_count_version_error(1);
156
+ return nullptr;
157
+ }
158
+
139
159
  auto param0 = py::convert_to<winrt::Windows::Storage::Streams::IBuffer>(args, 0);
140
160
 
141
161
  return py::convert(self->obj.UnprotectAsync(param0));
@@ -159,14 +179,21 @@ namespace py::cpp::Windows::Security::Cryptography::DataProtection
159
179
 
160
180
  if (arg_count == 2)
161
181
  {
162
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Cryptography.DataProtection.DataProtectionProvider", L"UnprotectStreamAsync", 2))
163
- {
164
- py::set_arg_count_version_error(2);
165
- return nullptr;
166
- }
167
-
168
182
  try
169
183
  {
184
+ static std::optional<bool> is_overload_present{};
185
+
186
+ if (!is_overload_present.has_value())
187
+ {
188
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Cryptography.DataProtection.DataProtectionProvider", L"UnprotectStreamAsync", 2);
189
+ }
190
+
191
+ if (!is_overload_present.value())
192
+ {
193
+ py::set_arg_count_version_error(2);
194
+ return nullptr;
195
+ }
196
+
170
197
  auto param0 = py::convert_to<winrt::Windows::Storage::Streams::IInputStream>(args, 0);
171
198
  auto param1 = py::convert_to<winrt::Windows::Storage::Streams::IOutputStream>(args, 1);
172
199
 
@@ -223,39 +250,35 @@ namespace py::cpp::Windows::Security::Cryptography::DataProtection
223
250
  { }
224
251
  };
225
252
 
226
- static PyType_Slot _type_slots_DataProtectionProvider[] =
227
- {
253
+ static PyType_Slot _type_slots_DataProtectionProvider[] = {
228
254
  { Py_tp_new, reinterpret_cast<void*>(_new_DataProtectionProvider) },
229
255
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_DataProtectionProvider) },
230
256
  { Py_tp_methods, reinterpret_cast<void*>(_methods_DataProtectionProvider) },
231
257
  { Py_tp_getset, reinterpret_cast<void*>(_getset_DataProtectionProvider) },
232
- { },
258
+ { }
233
259
  };
234
260
 
235
- static PyType_Spec type_spec_DataProtectionProvider =
236
- {
261
+ static PyType_Spec type_spec_DataProtectionProvider = {
237
262
  "winrt._winrt_windows_security_cryptography_dataprotection.DataProtectionProvider",
238
263
  sizeof(py::wrapper::Windows::Security::Cryptography::DataProtection::DataProtectionProvider),
239
264
  0,
240
265
  Py_TPFLAGS_DEFAULT,
241
- _type_slots_DataProtectionProvider
242
- };
266
+ _type_slots_DataProtectionProvider};
243
267
 
244
268
  // ----- Windows.Security.Cryptography.DataProtection Initialization --------------------
245
- PyDoc_STRVAR(module_doc, "Windows::Security::Cryptography::DataProtection");
246
269
 
270
+ PyDoc_STRVAR(module_doc, "Windows.Security.Cryptography.DataProtection");
247
271
 
248
- static PyModuleDef module_def
249
- = {PyModuleDef_HEAD_INIT,
250
- "_winrt_windows_security_cryptography_dataprotection",
251
- module_doc,
252
- 0,
253
- nullptr,
254
- nullptr,
255
- nullptr,
256
- nullptr,
257
- nullptr};
258
-
272
+ static PyModuleDef module_def = {
273
+ PyModuleDef_HEAD_INIT,
274
+ "_winrt_windows_security_cryptography_dataprotection",
275
+ module_doc,
276
+ 0,
277
+ nullptr,
278
+ nullptr,
279
+ nullptr,
280
+ nullptr,
281
+ nullptr};
259
282
  } // py::cpp::Windows::Security::Cryptography::DataProtection
260
283
 
261
284
  PyMODINIT_FUNC PyInit__winrt_windows_security_cryptography_dataprotection(void) noexcept
@@ -287,7 +310,8 @@ PyMODINIT_FUNC PyInit__winrt_windows_security_cryptography_dataprotection(void)
287
310
  return nullptr;
288
311
  }
289
312
 
290
- if (py::register_python_type(module.get(), &type_spec_DataProtectionProvider, object_bases.get(), nullptr) == -1)
313
+ py::pytype_handle DataProtectionProvider_type{py::register_python_type(module.get(), &type_spec_DataProtectionProvider, object_bases.get(), nullptr)};
314
+ if (!DataProtectionProvider_type)
291
315
  {
292
316
  return nullptr;
293
317
  }
@@ -16,7 +16,7 @@ classifiers = [
16
16
  "Intended Audience :: Developers",
17
17
  ]
18
18
  dynamic = ["version", "dependencies", "optional-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"
@@ -36,7 +36,8 @@ optional-dependencies.all = { file = "all-requirements.txt" }
36
36
  # use local winrt-sdk build dependency
37
37
  environment = { PYTHONPATH="../winrt-sdk/src" }
38
38
  # don't install winrt-sdk from PyPI
39
- build-frontend = { name = "build", args = ["--skip-dependency-check", "--no-isolation"] }
39
+ build-frontend = { name = "build[uv]", args = ["--skip-dependency-check", "--no-isolation"] }
40
+ before-build = "uv pip install setuptools"
40
41
  # don't build for PyPy
41
42
  skip = "pp*"
42
43
  # suppress warnings about ARM64 testing
@@ -1,3 +1,3 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.1
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
2
 
3
- winrt-runtime==2.0.1
3
+ winrt-runtime==2.2.0
@@ -0,0 +1,29 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
+
3
+ import datetime
4
+ import sys
5
+ import types
6
+ import typing
7
+ import uuid as _uuid
8
+ from builtins import property as _property
9
+
10
+ import winrt._winrt
11
+ import winrt.system
12
+ import winrt.windows.foundation as windows_foundation
13
+ import winrt.windows.storage.streams as windows_storage_streams
14
+
15
+ Self = typing.TypeVar('Self')
16
+
17
+ @typing.final
18
+ class DataProtectionProvider(winrt.system.Object):
19
+ @staticmethod
20
+ def _from(obj: winrt.system.Object, /) -> DataProtectionProvider: ...
21
+ @typing.overload
22
+ def __new__(cls: typing.Type[DataProtectionProvider], protection_descriptor: str) -> DataProtectionProvider: ...
23
+ @typing.overload
24
+ def __new__(cls: typing.Type[DataProtectionProvider]) -> DataProtectionProvider: ...
25
+ def protect_async(self, data: typing.Optional[windows_storage_streams.IBuffer], /) -> windows_foundation.IAsyncOperation[windows_storage_streams.IBuffer]: ...
26
+ def protect_stream_async(self, src: typing.Optional[windows_storage_streams.IInputStream], dest: typing.Optional[windows_storage_streams.IOutputStream], /) -> windows_foundation.IAsyncAction: ...
27
+ def unprotect_async(self, data: typing.Optional[windows_storage_streams.IBuffer], /) -> windows_foundation.IAsyncOperation[windows_storage_streams.IBuffer]: ...
28
+ def unprotect_stream_async(self, src: typing.Optional[windows_storage_streams.IInputStream], dest: typing.Optional[windows_storage_streams.IOutputStream], /) -> windows_foundation.IAsyncAction: ...
29
+
@@ -1,4 +1,4 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.1
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
2
 
3
3
  import winrt.system
4
4
  from winrt import _winrt_windows_security_cryptography_dataprotection
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.Security.Cryptography.DataProtection
3
- Version: 2.0.1
3
+ Version: 2.2.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,12 +10,12 @@ 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.0.1
15
+ Requires-Dist: winrt-runtime==2.2.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.Foundation[all]==2.0.1; extra == "all"
18
- Requires-Dist: winrt-Windows.Storage.Streams[all]==2.0.1; extra == "all"
17
+ Requires-Dist: winrt-Windows.Foundation[all]==2.2.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Storage.Streams[all]==2.2.0; extra == "all"
19
19
 
20
20
  <!-- warning: Please don't edit this file. It was automatically generated. -->
21
21
 
@@ -0,0 +1,5 @@
1
+ winrt-runtime==2.2.0
2
+
3
+ [all]
4
+ winrt-Windows.Foundation[all]==2.2.0
5
+ winrt-Windows.Storage.Streams[all]==2.2.0
@@ -1,4 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.1
2
-
3
- winrt-Windows.Foundation[all]==2.0.1
4
- winrt-Windows.Storage.Streams[all]==2.0.1
@@ -1,29 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.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.storage.streams
14
-
15
- Self = typing.TypeVar('Self')
16
-
17
- @typing.final
18
- class DataProtectionProvider(winrt.system.Object):
19
- @staticmethod
20
- def _from(obj: winrt.system.Object, /) -> DataProtectionProvider: ...
21
- @typing.overload
22
- def __new__(cls: typing.Type[DataProtectionProvider], protection_descriptor: str) -> DataProtectionProvider:...
23
- @typing.overload
24
- def __new__(cls: typing.Type[DataProtectionProvider]) -> DataProtectionProvider:...
25
- def protect_async(self, data: typing.Optional[winrt.windows.storage.streams.IBuffer], /) -> winrt.windows.foundation.IAsyncOperation[winrt.windows.storage.streams.IBuffer]: ...
26
- def protect_stream_async(self, src: typing.Optional[winrt.windows.storage.streams.IInputStream], dest: typing.Optional[winrt.windows.storage.streams.IOutputStream], /) -> winrt.windows.foundation.IAsyncAction: ...
27
- def unprotect_async(self, data: typing.Optional[winrt.windows.storage.streams.IBuffer], /) -> winrt.windows.foundation.IAsyncOperation[winrt.windows.storage.streams.IBuffer]: ...
28
- def unprotect_stream_async(self, src: typing.Optional[winrt.windows.storage.streams.IInputStream], dest: typing.Optional[winrt.windows.storage.streams.IOutputStream], /) -> winrt.windows.foundation.IAsyncAction: ...
29
-
@@ -1,5 +0,0 @@
1
- winrt-runtime==2.0.1
2
-
3
- [all]
4
- winrt-Windows.Foundation[all]==2.0.1
5
- winrt-Windows.Storage.Streams[all]==2.0.1