winrt-Windows.Security.Cryptography.DataProtection 2.3.0__tar.gz → 3.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (22) hide show
  1. {winrt_windows_security_cryptography_dataprotection-2.3.0 → winrt_windows_security_cryptography_dataprotection-3.1.0}/PKG-INFO +7 -7
  2. winrt_windows_security_cryptography_dataprotection-3.1.0/all-requirements.txt +4 -0
  3. {winrt_windows_security_cryptography_dataprotection-2.3.0 → winrt_windows_security_cryptography_dataprotection-3.1.0}/py.Windows.Security.Cryptography.DataProtection.cpp +37 -18
  4. {winrt_windows_security_cryptography_dataprotection-2.3.0 → winrt_windows_security_cryptography_dataprotection-3.1.0}/pyproject.toml +4 -4
  5. winrt_windows_security_cryptography_dataprotection-3.1.0/pywinrt-version.txt +1 -0
  6. {winrt_windows_security_cryptography_dataprotection-2.3.0 → winrt_windows_security_cryptography_dataprotection-3.1.0}/requirements.txt +2 -2
  7. {winrt_windows_security_cryptography_dataprotection-2.3.0 → winrt_windows_security_cryptography_dataprotection-3.1.0}/setup.py +1 -1
  8. winrt_windows_security_cryptography_dataprotection-3.1.0/winrt/_winrt_windows_security_cryptography_dataprotection.pyi +31 -0
  9. winrt_windows_security_cryptography_dataprotection-3.1.0/winrt/windows/security/cryptography/dataprotection/__init__.py +11 -0
  10. {winrt_windows_security_cryptography_dataprotection-2.3.0 → winrt_windows_security_cryptography_dataprotection-3.1.0}/winrt_Windows.Security.Cryptography.DataProtection.egg-info/PKG-INFO +7 -7
  11. winrt_windows_security_cryptography_dataprotection-3.1.0/winrt_Windows.Security.Cryptography.DataProtection.egg-info/requires.txt +5 -0
  12. winrt_windows_security_cryptography_dataprotection-2.3.0/all-requirements.txt +0 -4
  13. winrt_windows_security_cryptography_dataprotection-2.3.0/pywinrt-version.txt +0 -1
  14. winrt_windows_security_cryptography_dataprotection-2.3.0/winrt/_winrt_windows_security_cryptography_dataprotection.pyi +0 -29
  15. winrt_windows_security_cryptography_dataprotection-2.3.0/winrt/windows/security/cryptography/dataprotection/__init__.py +0 -10
  16. winrt_windows_security_cryptography_dataprotection-2.3.0/winrt_Windows.Security.Cryptography.DataProtection.egg-info/requires.txt +0 -5
  17. {winrt_windows_security_cryptography_dataprotection-2.3.0 → winrt_windows_security_cryptography_dataprotection-3.1.0}/README.md +0 -0
  18. {winrt_windows_security_cryptography_dataprotection-2.3.0 → winrt_windows_security_cryptography_dataprotection-3.1.0}/setup.cfg +0 -0
  19. {winrt_windows_security_cryptography_dataprotection-2.3.0 → winrt_windows_security_cryptography_dataprotection-3.1.0}/winrt/windows/security/cryptography/dataprotection/py.typed +0 -0
  20. {winrt_windows_security_cryptography_dataprotection-2.3.0 → winrt_windows_security_cryptography_dataprotection-3.1.0}/winrt_Windows.Security.Cryptography.DataProtection.egg-info/SOURCES.txt +0 -0
  21. {winrt_windows_security_cryptography_dataprotection-2.3.0 → winrt_windows_security_cryptography_dataprotection-3.1.0}/winrt_Windows.Security.Cryptography.DataProtection.egg-info/dependency_links.txt +0 -0
  22. {winrt_windows_security_cryptography_dataprotection-2.3.0 → winrt_windows_security_cryptography_dataprotection-3.1.0}/winrt_Windows.Security.Cryptography.DataProtection.egg-info/top_level.txt +0 -0
@@ -1,8 +1,8 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: winrt-Windows.Security.Cryptography.DataProtection
3
- Version: 2.3.0
3
+ Version: 3.1.0
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
- License: MIT
5
+ License-Expression: MIT
6
6
  Project-URL: Documentation, https://pywinrt.readthedocs.io
7
7
  Project-URL: Repository, https://github.com/pywinrt/pywinrt
8
8
  Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
@@ -10,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.14,>=3.9
13
+ Requires-Python: >=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==2.3.0
15
+ Requires-Dist: winrt-runtime==3.1.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.Foundation[all]==2.3.0; extra == "all"
18
- Requires-Dist: winrt-Windows.Storage.Streams[all]==2.3.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.Foundation[all]==3.1.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Storage.Streams[all]==3.1.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 v3.1.0
2
+
3
+ winrt-Windows.Foundation[all]==3.1.0
4
+ winrt-Windows.Storage.Streams[all]==3.1.0
@@ -1,4 +1,4 @@
1
- // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
1
+ // WARNING: Please don't edit this file. It was generated by Python/WinRT v3.1.0
2
2
 
3
3
  #include "py.Windows.Security.Cryptography.DataProtection.h"
4
4
 
@@ -8,13 +8,13 @@ namespace py::cpp::Windows::Security::Cryptography::DataProtection
8
8
 
9
9
  static PyObject* _new_DataProtectionProvider(PyTypeObject* type, PyObject* args, PyObject* kwds) noexcept
10
10
  {
11
- if (kwds != nullptr)
11
+ if (kwds)
12
12
  {
13
13
  py::set_invalid_kwd_args_error();
14
14
  return nullptr;
15
15
  }
16
16
 
17
- auto arg_count = PyTuple_Size(args);
17
+ auto arg_count = PyTuple_GET_SIZE(args);
18
18
  if (arg_count == 1)
19
19
  {
20
20
  try
@@ -60,7 +60,7 @@ namespace py::cpp::Windows::Security::Cryptography::DataProtection
60
60
 
61
61
  static PyObject* DataProtectionProvider_ProtectAsync(py::wrapper::Windows::Security::Cryptography::DataProtection::DataProtectionProvider* self, PyObject* args) noexcept
62
62
  {
63
- auto arg_count = PyTuple_Size(args);
63
+ auto arg_count = PyTuple_GET_SIZE(args);
64
64
 
65
65
  if (arg_count == 1)
66
66
  {
@@ -81,7 +81,11 @@ namespace py::cpp::Windows::Security::Cryptography::DataProtection
81
81
 
82
82
  auto param0 = py::convert_to<winrt::Windows::Storage::Streams::IBuffer>(args, 0);
83
83
 
84
- return py::convert(self->obj.ProtectAsync(param0));
84
+ return py::convert([&]()
85
+ {
86
+ auto _gil = release_gil();
87
+ return self->obj.ProtectAsync(param0);
88
+ }());
85
89
  }
86
90
  catch (...)
87
91
  {
@@ -98,7 +102,7 @@ namespace py::cpp::Windows::Security::Cryptography::DataProtection
98
102
 
99
103
  static PyObject* DataProtectionProvider_ProtectStreamAsync(py::wrapper::Windows::Security::Cryptography::DataProtection::DataProtectionProvider* self, PyObject* args) noexcept
100
104
  {
101
- auto arg_count = PyTuple_Size(args);
105
+ auto arg_count = PyTuple_GET_SIZE(args);
102
106
 
103
107
  if (arg_count == 2)
104
108
  {
@@ -120,7 +124,11 @@ namespace py::cpp::Windows::Security::Cryptography::DataProtection
120
124
  auto param0 = py::convert_to<winrt::Windows::Storage::Streams::IInputStream>(args, 0);
121
125
  auto param1 = py::convert_to<winrt::Windows::Storage::Streams::IOutputStream>(args, 1);
122
126
 
123
- return py::convert(self->obj.ProtectStreamAsync(param0, param1));
127
+ return py::convert([&]()
128
+ {
129
+ auto _gil = release_gil();
130
+ return self->obj.ProtectStreamAsync(param0, param1);
131
+ }());
124
132
  }
125
133
  catch (...)
126
134
  {
@@ -137,7 +145,7 @@ namespace py::cpp::Windows::Security::Cryptography::DataProtection
137
145
 
138
146
  static PyObject* DataProtectionProvider_UnprotectAsync(py::wrapper::Windows::Security::Cryptography::DataProtection::DataProtectionProvider* self, PyObject* args) noexcept
139
147
  {
140
- auto arg_count = PyTuple_Size(args);
148
+ auto arg_count = PyTuple_GET_SIZE(args);
141
149
 
142
150
  if (arg_count == 1)
143
151
  {
@@ -158,7 +166,11 @@ namespace py::cpp::Windows::Security::Cryptography::DataProtection
158
166
 
159
167
  auto param0 = py::convert_to<winrt::Windows::Storage::Streams::IBuffer>(args, 0);
160
168
 
161
- return py::convert(self->obj.UnprotectAsync(param0));
169
+ return py::convert([&]()
170
+ {
171
+ auto _gil = release_gil();
172
+ return self->obj.UnprotectAsync(param0);
173
+ }());
162
174
  }
163
175
  catch (...)
164
176
  {
@@ -175,7 +187,7 @@ namespace py::cpp::Windows::Security::Cryptography::DataProtection
175
187
 
176
188
  static PyObject* DataProtectionProvider_UnprotectStreamAsync(py::wrapper::Windows::Security::Cryptography::DataProtection::DataProtectionProvider* self, PyObject* args) noexcept
177
189
  {
178
- auto arg_count = PyTuple_Size(args);
190
+ auto arg_count = PyTuple_GET_SIZE(args);
179
191
 
180
192
  if (arg_count == 2)
181
193
  {
@@ -197,7 +209,11 @@ namespace py::cpp::Windows::Security::Cryptography::DataProtection
197
209
  auto param0 = py::convert_to<winrt::Windows::Storage::Streams::IInputStream>(args, 0);
198
210
  auto param1 = py::convert_to<winrt::Windows::Storage::Streams::IOutputStream>(args, 1);
199
211
 
200
- return py::convert(self->obj.UnprotectStreamAsync(param0, param1));
212
+ return py::convert([&]()
213
+ {
214
+ auto _gil = release_gil();
215
+ return self->obj.UnprotectStreamAsync(param0, param1);
216
+ }());
201
217
  }
202
218
  catch (...)
203
219
  {
@@ -243,20 +259,17 @@ namespace py::cpp::Windows::Security::Cryptography::DataProtection
243
259
  { "unprotect_stream_async", reinterpret_cast<PyCFunction>(DataProtectionProvider_UnprotectStreamAsync), METH_VARARGS, nullptr },
244
260
  { "_assign_array_", _assign_array_DataProtectionProvider, METH_O | METH_STATIC, nullptr },
245
261
  { "_from", reinterpret_cast<PyCFunction>(_from_DataProtectionProvider), METH_O | METH_STATIC, nullptr },
246
- { }
247
- };
262
+ { }};
248
263
 
249
264
  static PyGetSetDef _getset_DataProtectionProvider[] = {
250
- { }
251
- };
265
+ { }};
252
266
 
253
267
  static PyType_Slot _type_slots_DataProtectionProvider[] = {
254
268
  { Py_tp_new, reinterpret_cast<void*>(_new_DataProtectionProvider) },
255
269
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_DataProtectionProvider) },
256
270
  { Py_tp_methods, reinterpret_cast<void*>(_methods_DataProtectionProvider) },
257
271
  { Py_tp_getset, reinterpret_cast<void*>(_getset_DataProtectionProvider) },
258
- { }
259
- };
272
+ { }};
260
273
 
261
274
  static PyType_Spec type_spec_DataProtectionProvider = {
262
275
  "winrt._winrt_windows_security_cryptography_dataprotection.DataProtectionProvider",
@@ -297,6 +310,12 @@ PyMODINIT_FUNC PyInit__winrt_windows_security_cryptography_dataprotection(void)
297
310
  return nullptr;
298
311
  }
299
312
 
313
+ auto inspectable_meta_type = py::get_inspectable_meta_type();
314
+ if (!inspectable_meta_type)
315
+ {
316
+ return nullptr;
317
+ }
318
+
300
319
  auto object_type = py::get_object_type();
301
320
  if (!object_type)
302
321
  {
@@ -310,7 +329,7 @@ PyMODINIT_FUNC PyInit__winrt_windows_security_cryptography_dataprotection(void)
310
329
  return nullptr;
311
330
  }
312
331
 
313
- py::pytype_handle DataProtectionProvider_type{py::register_python_type(module.get(), &type_spec_DataProtectionProvider, object_bases.get(), nullptr)};
332
+ py::pytype_handle DataProtectionProvider_type{py::register_python_type(module.get(), &type_spec_DataProtectionProvider, object_bases.get(), inspectable_meta_type)};
314
333
  if (!DataProtectionProvider_type)
315
334
  {
316
335
  return nullptr;
@@ -1,14 +1,14 @@
1
1
  # WARNING: Please don't edit this file. It was automatically generated.
2
2
 
3
3
  [build-system]
4
- requires = ["setuptools", "winrt-sdk"]
4
+ requires = ["setuptools>=78", "winrt-sdk"]
5
5
  build-backend = "setuptools.build_meta"
6
6
 
7
7
  [project]
8
8
  name = "winrt-Windows.Security.Cryptography.DataProtection"
9
9
  description = "Python projection of Windows Runtime (WinRT) APIs"
10
10
  readme = "README.md"
11
- license = { text = "MIT" }
11
+ license = "MIT"
12
12
  classifiers = [
13
13
  "Operating System :: Microsoft :: Windows",
14
14
  "Programming Language :: Python :: 3",
@@ -16,7 +16,7 @@ classifiers = [
16
16
  "Intended Audience :: Developers",
17
17
  ]
18
18
  dynamic = ["version", "dependencies", "optional-dependencies"]
19
- requires-python = ">=3.9,<3.14"
19
+ requires-python = ">=3.9"
20
20
 
21
21
  [project.urls]
22
22
  # Homepage = "https://github.com/pywinrt/pywinrt"
@@ -34,7 +34,7 @@ optional-dependencies.all = { file = "all-requirements.txt" }
34
34
 
35
35
  [tool.cibuildwheel]
36
36
  # use local winrt-sdk build dependency
37
- environment = { PYTHONPATH="../winrt-sdk/src" }
37
+ environment = { PYTHONPATH="../../winrt-sdk/src" }
38
38
  # don't install winrt-sdk from PyPI
39
39
  build-frontend = { name = "build[uv]", args = ["--skip-dependency-check", "--no-isolation"] }
40
40
  before-build = "uv pip install setuptools"
@@ -1,3 +1,3 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.1.0
2
2
 
3
- winrt-runtime==2.3.0
3
+ winrt-runtime==3.1.0
@@ -19,7 +19,7 @@ class build_ext_ex(build_ext):
19
19
 
20
20
 
21
21
  setup(
22
- cmdclass = {'build_ext': build_ext_ex},
22
+ cmdclass={"build_ext": build_ext_ex},
23
23
  ext_modules=[
24
24
  Extension(
25
25
  "winrt._winrt_windows_security_cryptography_dataprotection",
@@ -0,0 +1,31 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.1.0
2
+
3
+ import datetime
4
+ import sys
5
+ import types
6
+ import typing
7
+ import uuid as _uuid
8
+ from builtins import property as _property
9
+
10
+ import winrt._winrt
11
+ import winrt.system
12
+ 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
+ @typing.overload
20
+ def __new__(cls: typing.Type[Self], protection_descriptor: str) -> Self: ...
21
+ @typing.overload
22
+ def __new__(cls: typing.Type[Self]) -> Self: ...
23
+ # Windows.Foundation.IAsyncOperation`1<Windows.Storage.Streams.IBuffer> Windows.Security.Cryptography.DataProtection.DataProtectionProvider::ProtectAsync(Windows.Storage.Streams.IBuffer)
24
+ def protect_async(self, data: windows_storage_streams.IBuffer, /) -> windows_foundation.IAsyncOperation[windows_storage_streams.IBuffer]: ...
25
+ # Windows.Foundation.IAsyncAction Windows.Security.Cryptography.DataProtection.DataProtectionProvider::ProtectStreamAsync(Windows.Storage.Streams.IInputStream,Windows.Storage.Streams.IOutputStream)
26
+ def protect_stream_async(self, src: windows_storage_streams.IInputStream, dest: windows_storage_streams.IOutputStream, /) -> windows_foundation.IAsyncAction: ...
27
+ # Windows.Foundation.IAsyncOperation`1<Windows.Storage.Streams.IBuffer> Windows.Security.Cryptography.DataProtection.DataProtectionProvider::UnprotectAsync(Windows.Storage.Streams.IBuffer)
28
+ def unprotect_async(self, data: windows_storage_streams.IBuffer, /) -> windows_foundation.IAsyncOperation[windows_storage_streams.IBuffer]: ...
29
+ # Windows.Foundation.IAsyncAction Windows.Security.Cryptography.DataProtection.DataProtectionProvider::UnprotectStreamAsync(Windows.Storage.Streams.IInputStream,Windows.Storage.Streams.IOutputStream)
30
+ def unprotect_stream_async(self, src: windows_storage_streams.IInputStream, dest: windows_storage_streams.IOutputStream, /) -> windows_foundation.IAsyncAction: ...
31
+
@@ -0,0 +1,11 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.1.0
2
+
3
+ import winrt.system
4
+ from winrt._winrt_windows_security_cryptography_dataprotection import (
5
+ DataProtectionProvider,
6
+ )
7
+
8
+ __all__ = [
9
+ "DataProtectionProvider",
10
+ ]
11
+
@@ -1,8 +1,8 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: winrt-Windows.Security.Cryptography.DataProtection
3
- Version: 2.3.0
3
+ Version: 3.1.0
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
- License: MIT
5
+ License-Expression: MIT
6
6
  Project-URL: Documentation, https://pywinrt.readthedocs.io
7
7
  Project-URL: Repository, https://github.com/pywinrt/pywinrt
8
8
  Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
@@ -10,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.14,>=3.9
13
+ Requires-Python: >=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==2.3.0
15
+ Requires-Dist: winrt-runtime==3.1.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.Foundation[all]==2.3.0; extra == "all"
18
- Requires-Dist: winrt-Windows.Storage.Streams[all]==2.3.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.Foundation[all]==3.1.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Storage.Streams[all]==3.1.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==3.1.0
2
+
3
+ [all]
4
+ winrt-Windows.Foundation[all]==3.1.0
5
+ winrt-Windows.Storage.Streams[all]==3.1.0
@@ -1,4 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
2
-
3
- winrt-Windows.Foundation[all]==2.3.0
4
- winrt-Windows.Storage.Streams[all]==2.3.0
@@ -1,29 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
2
-
3
- import datetime
4
- import sys
5
- import types
6
- import typing
7
- import uuid as _uuid
8
- from builtins import property as _property
9
-
10
- import winrt._winrt
11
- import winrt.system
12
- 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,10 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
2
-
3
- import winrt.system
4
- from winrt import _winrt_windows_security_cryptography_dataprotection
5
-
6
- __all__ = [
7
- "DataProtectionProvider",
8
- ]
9
-
10
- DataProtectionProvider = _winrt_windows_security_cryptography_dataprotection.DataProtectionProvider
@@ -1,5 +0,0 @@
1
- winrt-runtime==2.3.0
2
-
3
- [all]
4
- winrt-Windows.Foundation[all]==2.3.0
5
- winrt-Windows.Storage.Streams[all]==2.3.0