winrt-Windows.Storage.Compression 2.0.0b2__tar.gz → 2.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.
- {winrt-Windows.Storage.Compression-2.0.0b2 → winrt_windows_storage_compression-2.1.0}/PKG-INFO +4 -1
- winrt_windows_storage_compression-2.1.0/all-requirements.txt +4 -0
- {winrt-Windows.Storage.Compression-2.0.0b2 → winrt_windows_storage_compression-2.1.0}/py.Windows.Storage.Compression.cpp +70 -78
- {winrt-Windows.Storage.Compression-2.0.0b2 → winrt_windows_storage_compression-2.1.0}/pyproject.toml +2 -2
- winrt_windows_storage_compression-2.1.0/pywinrt-version.txt +1 -0
- {winrt-Windows.Storage.Compression-2.0.0b2 → winrt_windows_storage_compression-2.1.0}/requirements.txt +2 -2
- winrt_windows_storage_compression-2.1.0/setup.py +31 -0
- winrt_windows_storage_compression-2.1.0/winrt/_winrt_windows_storage_compression.pyi +45 -0
- {winrt-Windows.Storage.Compression-2.0.0b2 → winrt_windows_storage_compression-2.1.0}/winrt/windows/storage/compression/__init__.py +1 -1
- winrt_windows_storage_compression-2.1.0/winrt/windows/storage/compression/py.typed +0 -0
- {winrt-Windows.Storage.Compression-2.0.0b2 → winrt_windows_storage_compression-2.1.0}/winrt_Windows.Storage.Compression.egg-info/PKG-INFO +4 -1
- {winrt-Windows.Storage.Compression-2.0.0b2 → winrt_windows_storage_compression-2.1.0}/winrt_Windows.Storage.Compression.egg-info/SOURCES.txt +1 -0
- winrt_windows_storage_compression-2.1.0/winrt_Windows.Storage.Compression.egg-info/requires.txt +5 -0
- winrt-Windows.Storage.Compression-2.0.0b2/all-requirements.txt +0 -4
- winrt-Windows.Storage.Compression-2.0.0b2/pywinrt-version.txt +0 -1
- winrt-Windows.Storage.Compression-2.0.0b2/setup.py +0 -16
- winrt-Windows.Storage.Compression-2.0.0b2/winrt/_winrt_windows_storage_compression.pyi +0 -45
- winrt-Windows.Storage.Compression-2.0.0b2/winrt_Windows.Storage.Compression.egg-info/requires.txt +0 -5
- {winrt-Windows.Storage.Compression-2.0.0b2 → winrt_windows_storage_compression-2.1.0}/README.md +0 -0
- {winrt-Windows.Storage.Compression-2.0.0b2 → winrt_windows_storage_compression-2.1.0}/setup.cfg +0 -0
- {winrt-Windows.Storage.Compression-2.0.0b2 → winrt_windows_storage_compression-2.1.0}/winrt_Windows.Storage.Compression.egg-info/dependency_links.txt +0 -0
- {winrt-Windows.Storage.Compression-2.0.0b2 → winrt_windows_storage_compression-2.1.0}/winrt_Windows.Storage.Compression.egg-info/top_level.txt +0 -0
{winrt-Windows.Storage.Compression-2.0.0b2 → winrt_windows_storage_compression-2.1.0}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.Storage.Compression
|
|
3
|
-
Version: 2.0
|
|
3
|
+
Version: 2.1.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
@@ -12,7 +12,10 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
13
|
Requires-Python: <3.13,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
+
Requires-Dist: winrt-runtime==2.1.0
|
|
15
16
|
Provides-Extra: all
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.1.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Storage.Streams[all]==2.1.0; extra == "all"
|
|
16
19
|
|
|
17
20
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
18
21
|
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.
|
|
1
|
+
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
|
|
2
2
|
|
|
3
3
|
#include "py.Windows.Storage.Compression.h"
|
|
4
4
|
|
|
5
|
-
|
|
6
5
|
namespace py::cpp::Windows::Storage::Compression
|
|
7
6
|
{
|
|
8
7
|
// ----- Compressor class --------------------
|
|
@@ -69,14 +68,14 @@ namespace py::cpp::Windows::Storage::Compression
|
|
|
69
68
|
|
|
70
69
|
if (arg_count == 0)
|
|
71
70
|
{
|
|
72
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.Compression.Compressor", L"Close", 0))
|
|
73
|
-
{
|
|
74
|
-
py::set_arg_count_version_error(0);
|
|
75
|
-
return nullptr;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
71
|
try
|
|
79
72
|
{
|
|
73
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.Compression.Compressor", L"Close", 0))
|
|
74
|
+
{
|
|
75
|
+
py::set_arg_count_version_error(0);
|
|
76
|
+
return nullptr;
|
|
77
|
+
}
|
|
78
|
+
|
|
80
79
|
self->obj.Close();
|
|
81
80
|
Py_RETURN_NONE;
|
|
82
81
|
}
|
|
@@ -99,14 +98,14 @@ namespace py::cpp::Windows::Storage::Compression
|
|
|
99
98
|
|
|
100
99
|
if (arg_count == 0)
|
|
101
100
|
{
|
|
102
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.Compression.Compressor", L"DetachStream", 0))
|
|
103
|
-
{
|
|
104
|
-
py::set_arg_count_version_error(0);
|
|
105
|
-
return nullptr;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
101
|
try
|
|
109
102
|
{
|
|
103
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.Compression.Compressor", L"DetachStream", 0))
|
|
104
|
+
{
|
|
105
|
+
py::set_arg_count_version_error(0);
|
|
106
|
+
return nullptr;
|
|
107
|
+
}
|
|
108
|
+
|
|
110
109
|
return py::convert(self->obj.DetachStream());
|
|
111
110
|
}
|
|
112
111
|
catch (...)
|
|
@@ -128,14 +127,14 @@ namespace py::cpp::Windows::Storage::Compression
|
|
|
128
127
|
|
|
129
128
|
if (arg_count == 0)
|
|
130
129
|
{
|
|
131
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.Compression.Compressor", L"FinishAsync", 0))
|
|
132
|
-
{
|
|
133
|
-
py::set_arg_count_version_error(0);
|
|
134
|
-
return nullptr;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
130
|
try
|
|
138
131
|
{
|
|
132
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.Compression.Compressor", L"FinishAsync", 0))
|
|
133
|
+
{
|
|
134
|
+
py::set_arg_count_version_error(0);
|
|
135
|
+
return nullptr;
|
|
136
|
+
}
|
|
137
|
+
|
|
139
138
|
return py::convert(self->obj.FinishAsync());
|
|
140
139
|
}
|
|
141
140
|
catch (...)
|
|
@@ -157,14 +156,14 @@ namespace py::cpp::Windows::Storage::Compression
|
|
|
157
156
|
|
|
158
157
|
if (arg_count == 0)
|
|
159
158
|
{
|
|
160
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.Compression.Compressor", L"FlushAsync", 0))
|
|
161
|
-
{
|
|
162
|
-
py::set_arg_count_version_error(0);
|
|
163
|
-
return nullptr;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
159
|
try
|
|
167
160
|
{
|
|
161
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.Compression.Compressor", L"FlushAsync", 0))
|
|
162
|
+
{
|
|
163
|
+
py::set_arg_count_version_error(0);
|
|
164
|
+
return nullptr;
|
|
165
|
+
}
|
|
166
|
+
|
|
168
167
|
return py::convert(self->obj.FlushAsync());
|
|
169
168
|
}
|
|
170
169
|
catch (...)
|
|
@@ -186,14 +185,14 @@ namespace py::cpp::Windows::Storage::Compression
|
|
|
186
185
|
|
|
187
186
|
if (arg_count == 1)
|
|
188
187
|
{
|
|
189
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.Compression.Compressor", L"WriteAsync", 1))
|
|
190
|
-
{
|
|
191
|
-
py::set_arg_count_version_error(1);
|
|
192
|
-
return nullptr;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
188
|
try
|
|
196
189
|
{
|
|
190
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.Compression.Compressor", L"WriteAsync", 1))
|
|
191
|
+
{
|
|
192
|
+
py::set_arg_count_version_error(1);
|
|
193
|
+
return nullptr;
|
|
194
|
+
}
|
|
195
|
+
|
|
197
196
|
auto param0 = py::convert_to<winrt::Windows::Storage::Streams::IBuffer>(args, 0);
|
|
198
197
|
|
|
199
198
|
return py::convert(self->obj.WriteAsync(param0));
|
|
@@ -263,7 +262,7 @@ namespace py::cpp::Windows::Storage::Compression
|
|
|
263
262
|
{ "_assign_array_", _assign_array_Compressor, METH_O | METH_STATIC, nullptr },
|
|
264
263
|
{ "_from", reinterpret_cast<PyCFunction>(_from_Compressor), METH_O | METH_STATIC, nullptr },
|
|
265
264
|
{ "__enter__", reinterpret_cast<PyCFunction>(_enter_Compressor), METH_NOARGS, nullptr },
|
|
266
|
-
{ "__exit__",
|
|
265
|
+
{ "__exit__", reinterpret_cast<PyCFunction>(_exit_Compressor), METH_VARARGS, nullptr },
|
|
267
266
|
{ }
|
|
268
267
|
};
|
|
269
268
|
|
|
@@ -271,23 +270,20 @@ namespace py::cpp::Windows::Storage::Compression
|
|
|
271
270
|
{ }
|
|
272
271
|
};
|
|
273
272
|
|
|
274
|
-
static PyType_Slot _type_slots_Compressor[] =
|
|
275
|
-
{
|
|
273
|
+
static PyType_Slot _type_slots_Compressor[] = {
|
|
276
274
|
{ Py_tp_new, reinterpret_cast<void*>(_new_Compressor) },
|
|
277
275
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_Compressor) },
|
|
278
276
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_Compressor) },
|
|
279
277
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_Compressor) },
|
|
280
|
-
{ }
|
|
278
|
+
{ }
|
|
281
279
|
};
|
|
282
280
|
|
|
283
|
-
static PyType_Spec type_spec_Compressor =
|
|
284
|
-
{
|
|
281
|
+
static PyType_Spec type_spec_Compressor = {
|
|
285
282
|
"winrt._winrt_windows_storage_compression.Compressor",
|
|
286
283
|
sizeof(py::wrapper::Windows::Storage::Compression::Compressor),
|
|
287
284
|
0,
|
|
288
285
|
Py_TPFLAGS_DEFAULT,
|
|
289
|
-
_type_slots_Compressor
|
|
290
|
-
};
|
|
286
|
+
_type_slots_Compressor};
|
|
291
287
|
|
|
292
288
|
// ----- Decompressor class --------------------
|
|
293
289
|
|
|
@@ -336,14 +332,14 @@ namespace py::cpp::Windows::Storage::Compression
|
|
|
336
332
|
|
|
337
333
|
if (arg_count == 0)
|
|
338
334
|
{
|
|
339
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.Compression.Decompressor", L"Close", 0))
|
|
340
|
-
{
|
|
341
|
-
py::set_arg_count_version_error(0);
|
|
342
|
-
return nullptr;
|
|
343
|
-
}
|
|
344
|
-
|
|
345
335
|
try
|
|
346
336
|
{
|
|
337
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.Compression.Decompressor", L"Close", 0))
|
|
338
|
+
{
|
|
339
|
+
py::set_arg_count_version_error(0);
|
|
340
|
+
return nullptr;
|
|
341
|
+
}
|
|
342
|
+
|
|
347
343
|
self->obj.Close();
|
|
348
344
|
Py_RETURN_NONE;
|
|
349
345
|
}
|
|
@@ -366,14 +362,14 @@ namespace py::cpp::Windows::Storage::Compression
|
|
|
366
362
|
|
|
367
363
|
if (arg_count == 0)
|
|
368
364
|
{
|
|
369
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.Compression.Decompressor", L"DetachStream", 0))
|
|
370
|
-
{
|
|
371
|
-
py::set_arg_count_version_error(0);
|
|
372
|
-
return nullptr;
|
|
373
|
-
}
|
|
374
|
-
|
|
375
365
|
try
|
|
376
366
|
{
|
|
367
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.Compression.Decompressor", L"DetachStream", 0))
|
|
368
|
+
{
|
|
369
|
+
py::set_arg_count_version_error(0);
|
|
370
|
+
return nullptr;
|
|
371
|
+
}
|
|
372
|
+
|
|
377
373
|
return py::convert(self->obj.DetachStream());
|
|
378
374
|
}
|
|
379
375
|
catch (...)
|
|
@@ -395,14 +391,14 @@ namespace py::cpp::Windows::Storage::Compression
|
|
|
395
391
|
|
|
396
392
|
if (arg_count == 3)
|
|
397
393
|
{
|
|
398
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.Compression.Decompressor", L"ReadAsync", 3))
|
|
399
|
-
{
|
|
400
|
-
py::set_arg_count_version_error(3);
|
|
401
|
-
return nullptr;
|
|
402
|
-
}
|
|
403
|
-
|
|
404
394
|
try
|
|
405
395
|
{
|
|
396
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.Compression.Decompressor", L"ReadAsync", 3))
|
|
397
|
+
{
|
|
398
|
+
py::set_arg_count_version_error(3);
|
|
399
|
+
return nullptr;
|
|
400
|
+
}
|
|
401
|
+
|
|
406
402
|
auto param0 = py::convert_to<winrt::Windows::Storage::Streams::IBuffer>(args, 0);
|
|
407
403
|
auto param1 = py::convert_to<uint32_t>(args, 1);
|
|
408
404
|
auto param2 = py::convert_to<winrt::Windows::Storage::Streams::InputStreamOptions>(args, 2);
|
|
@@ -472,7 +468,7 @@ namespace py::cpp::Windows::Storage::Compression
|
|
|
472
468
|
{ "_assign_array_", _assign_array_Decompressor, METH_O | METH_STATIC, nullptr },
|
|
473
469
|
{ "_from", reinterpret_cast<PyCFunction>(_from_Decompressor), METH_O | METH_STATIC, nullptr },
|
|
474
470
|
{ "__enter__", reinterpret_cast<PyCFunction>(_enter_Decompressor), METH_NOARGS, nullptr },
|
|
475
|
-
{ "__exit__",
|
|
471
|
+
{ "__exit__", reinterpret_cast<PyCFunction>(_exit_Decompressor), METH_VARARGS, nullptr },
|
|
476
472
|
{ }
|
|
477
473
|
};
|
|
478
474
|
|
|
@@ -480,39 +476,35 @@ namespace py::cpp::Windows::Storage::Compression
|
|
|
480
476
|
{ }
|
|
481
477
|
};
|
|
482
478
|
|
|
483
|
-
static PyType_Slot _type_slots_Decompressor[] =
|
|
484
|
-
{
|
|
479
|
+
static PyType_Slot _type_slots_Decompressor[] = {
|
|
485
480
|
{ Py_tp_new, reinterpret_cast<void*>(_new_Decompressor) },
|
|
486
481
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_Decompressor) },
|
|
487
482
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_Decompressor) },
|
|
488
483
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_Decompressor) },
|
|
489
|
-
{ }
|
|
484
|
+
{ }
|
|
490
485
|
};
|
|
491
486
|
|
|
492
|
-
static PyType_Spec type_spec_Decompressor =
|
|
493
|
-
{
|
|
487
|
+
static PyType_Spec type_spec_Decompressor = {
|
|
494
488
|
"winrt._winrt_windows_storage_compression.Decompressor",
|
|
495
489
|
sizeof(py::wrapper::Windows::Storage::Compression::Decompressor),
|
|
496
490
|
0,
|
|
497
491
|
Py_TPFLAGS_DEFAULT,
|
|
498
|
-
_type_slots_Decompressor
|
|
499
|
-
};
|
|
492
|
+
_type_slots_Decompressor};
|
|
500
493
|
|
|
501
494
|
// ----- Windows.Storage.Compression Initialization --------------------
|
|
502
|
-
PyDoc_STRVAR(module_doc, "Windows::Storage::Compression");
|
|
503
|
-
|
|
504
495
|
|
|
505
|
-
|
|
506
|
-
= {PyModuleDef_HEAD_INIT,
|
|
507
|
-
"_winrt_windows_storage_compression",
|
|
508
|
-
module_doc,
|
|
509
|
-
0,
|
|
510
|
-
nullptr,
|
|
511
|
-
nullptr,
|
|
512
|
-
nullptr,
|
|
513
|
-
nullptr,
|
|
514
|
-
nullptr};
|
|
496
|
+
PyDoc_STRVAR(module_doc, "Windows.Storage.Compression");
|
|
515
497
|
|
|
498
|
+
static PyModuleDef module_def = {
|
|
499
|
+
PyModuleDef_HEAD_INIT,
|
|
500
|
+
"_winrt_windows_storage_compression",
|
|
501
|
+
module_doc,
|
|
502
|
+
0,
|
|
503
|
+
nullptr,
|
|
504
|
+
nullptr,
|
|
505
|
+
nullptr,
|
|
506
|
+
nullptr,
|
|
507
|
+
nullptr};
|
|
516
508
|
} // py::cpp::Windows::Storage::Compression
|
|
517
509
|
|
|
518
510
|
PyMODINIT_FUNC PyInit__winrt_windows_storage_compression(void) noexcept
|
{winrt-Windows.Storage.Compression-2.0.0b2 → winrt_windows_storage_compression-2.1.0}/pyproject.toml
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# WARNING: Please don't edit this file. It was automatically generated.
|
|
2
2
|
|
|
3
3
|
[build-system]
|
|
4
|
-
requires = ["setuptools", "
|
|
4
|
+
requires = ["setuptools", "winrt-sdk"]
|
|
5
5
|
build-backend = "setuptools.build_meta"
|
|
6
6
|
|
|
7
7
|
[project]
|
|
@@ -30,7 +30,7 @@ dependencies = { file = "requirements.txt" }
|
|
|
30
30
|
optional-dependencies.all = { file = "all-requirements.txt" }
|
|
31
31
|
|
|
32
32
|
[tool.setuptools.package-data]
|
|
33
|
-
|
|
33
|
+
"*" = ["*.pyi", "py.typed"]
|
|
34
34
|
|
|
35
35
|
[tool.cibuildwheel]
|
|
36
36
|
# use local winrt-sdk build dependency
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.1.0
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
|
|
2
2
|
|
|
3
|
-
winrt-runtime==2.
|
|
3
|
+
winrt-runtime==2.1.0
|
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
ext.extra_link_args = ["-loleaut32"]
|
|
15
|
+
else:
|
|
16
|
+
raise ValueError(f"Unsupported compiler: {self.compiler.compiler_type}")
|
|
17
|
+
|
|
18
|
+
build_ext.build_extension(self, ext)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
setup(
|
|
22
|
+
cmdclass = {'build_ext': build_ext_ex},
|
|
23
|
+
ext_modules=[
|
|
24
|
+
Extension(
|
|
25
|
+
"winrt._winrt_windows_storage_compression",
|
|
26
|
+
sources=["py.Windows.Storage.Compression.cpp"],
|
|
27
|
+
include_dirs=get_include_dirs(),
|
|
28
|
+
libraries=["windowsapp"],
|
|
29
|
+
)
|
|
30
|
+
],
|
|
31
|
+
)
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.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
|
+
from winrt.windows.storage.compression import CompressAlgorithm
|
|
16
|
+
|
|
17
|
+
Self = typing.TypeVar('Self')
|
|
18
|
+
|
|
19
|
+
@typing.final
|
|
20
|
+
class Compressor(winrt.system.Object):
|
|
21
|
+
def __enter__(self: Self) -> Self: ...
|
|
22
|
+
def __exit__(self, *args) -> None: ...
|
|
23
|
+
@staticmethod
|
|
24
|
+
def _from(obj: winrt.system.Object, /) -> Compressor: ...
|
|
25
|
+
@typing.overload
|
|
26
|
+
def __new__(cls: typing.Type[Compressor], underlying_stream: typing.Optional[windows_storage_streams.IOutputStream]) -> Compressor: ...
|
|
27
|
+
@typing.overload
|
|
28
|
+
def __new__(cls: typing.Type[Compressor], underlying_stream: typing.Optional[windows_storage_streams.IOutputStream], algorithm: CompressAlgorithm, block_size: winrt.system.UInt32) -> Compressor: ...
|
|
29
|
+
def close(self) -> None: ...
|
|
30
|
+
def detach_stream(self) -> typing.Optional[windows_storage_streams.IOutputStream]: ...
|
|
31
|
+
def finish_async(self) -> windows_foundation.IAsyncOperation[bool]: ...
|
|
32
|
+
def flush_async(self) -> windows_foundation.IAsyncOperation[bool]: ...
|
|
33
|
+
def write_async(self, buffer: typing.Optional[windows_storage_streams.IBuffer], /) -> windows_foundation.IAsyncOperationWithProgress[winrt.system.UInt32, winrt.system.UInt32]: ...
|
|
34
|
+
|
|
35
|
+
@typing.final
|
|
36
|
+
class Decompressor(winrt.system.Object):
|
|
37
|
+
def __enter__(self: Self) -> Self: ...
|
|
38
|
+
def __exit__(self, *args) -> None: ...
|
|
39
|
+
@staticmethod
|
|
40
|
+
def _from(obj: winrt.system.Object, /) -> Decompressor: ...
|
|
41
|
+
def __new__(cls: typing.Type[Decompressor], underlying_stream: typing.Optional[windows_storage_streams.IInputStream]) -> Decompressor: ...
|
|
42
|
+
def close(self) -> None: ...
|
|
43
|
+
def detach_stream(self) -> typing.Optional[windows_storage_streams.IInputStream]: ...
|
|
44
|
+
def read_async(self, buffer: typing.Optional[windows_storage_streams.IBuffer], count: winrt.system.UInt32, options: windows_storage_streams.InputStreamOptions, /) -> windows_foundation.IAsyncOperationWithProgress[windows_storage_streams.IBuffer, winrt.system.UInt32]: ...
|
|
45
|
+
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.Storage.Compression
|
|
3
|
-
Version: 2.0
|
|
3
|
+
Version: 2.1.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
@@ -12,7 +12,10 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
13
|
Requires-Python: <3.13,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
+
Requires-Dist: winrt-runtime==2.1.0
|
|
15
16
|
Provides-Extra: all
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.1.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Storage.Streams[all]==2.1.0; extra == "all"
|
|
16
19
|
|
|
17
20
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
18
21
|
|
|
@@ -7,6 +7,7 @@ requirements.txt
|
|
|
7
7
|
setup.py
|
|
8
8
|
winrt/_winrt_windows_storage_compression.pyi
|
|
9
9
|
winrt/windows/storage/compression/__init__.py
|
|
10
|
+
winrt/windows/storage/compression/py.typed
|
|
10
11
|
winrt_Windows.Storage.Compression.egg-info/PKG-INFO
|
|
11
12
|
winrt_Windows.Storage.Compression.egg-info/SOURCES.txt
|
|
12
13
|
winrt_Windows.Storage.Compression.egg-info/dependency_links.txt
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2.0.0-beta.2
|
|
@@ -1,16 +0,0 @@
|
|
|
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_storage_compression",
|
|
10
|
-
sources=["py.Windows.Storage.Compression.cpp"],
|
|
11
|
-
include_dirs=get_include_dirs(),
|
|
12
|
-
extra_compile_args=["/std:c++20", "/permissive-"],
|
|
13
|
-
libraries=["windowsapp"],
|
|
14
|
-
)
|
|
15
|
-
],
|
|
16
|
-
)
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.2
|
|
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
|
-
from winrt.windows.storage.compression import CompressAlgorithm
|
|
16
|
-
|
|
17
|
-
Self = typing.TypeVar('Self')
|
|
18
|
-
|
|
19
|
-
@typing.final
|
|
20
|
-
class Compressor(winrt.system.Object):
|
|
21
|
-
def __enter__(self: Self) -> Self: ...
|
|
22
|
-
def __exit__(self, *args) -> None: ...
|
|
23
|
-
@staticmethod
|
|
24
|
-
def _from(obj: winrt.system.Object, /) -> Compressor: ...
|
|
25
|
-
@typing.overload
|
|
26
|
-
def __new__(cls: typing.Type[Compressor], underlying_stream: typing.Optional[winrt.windows.storage.streams.IOutputStream]) -> Compressor:...
|
|
27
|
-
@typing.overload
|
|
28
|
-
def __new__(cls: typing.Type[Compressor], underlying_stream: typing.Optional[winrt.windows.storage.streams.IOutputStream], algorithm: CompressAlgorithm, block_size: winrt.system.UInt32) -> Compressor:...
|
|
29
|
-
def close(self) -> None: ...
|
|
30
|
-
def detach_stream(self) -> typing.Optional[winrt.windows.storage.streams.IOutputStream]: ...
|
|
31
|
-
def finish_async(self) -> winrt.windows.foundation.IAsyncOperation[bool]: ...
|
|
32
|
-
def flush_async(self) -> winrt.windows.foundation.IAsyncOperation[bool]: ...
|
|
33
|
-
def write_async(self, buffer: typing.Optional[winrt.windows.storage.streams.IBuffer], /) -> winrt.windows.foundation.IAsyncOperationWithProgress[winrt.system.UInt32, winrt.system.UInt32]: ...
|
|
34
|
-
|
|
35
|
-
@typing.final
|
|
36
|
-
class Decompressor(winrt.system.Object):
|
|
37
|
-
def __enter__(self: Self) -> Self: ...
|
|
38
|
-
def __exit__(self, *args) -> None: ...
|
|
39
|
-
@staticmethod
|
|
40
|
-
def _from(obj: winrt.system.Object, /) -> Decompressor: ...
|
|
41
|
-
def __new__(cls: typing.Type[Decompressor], underlying_stream: typing.Optional[winrt.windows.storage.streams.IInputStream]) -> Decompressor:...
|
|
42
|
-
def close(self) -> None: ...
|
|
43
|
-
def detach_stream(self) -> typing.Optional[winrt.windows.storage.streams.IInputStream]: ...
|
|
44
|
-
def read_async(self, buffer: typing.Optional[winrt.windows.storage.streams.IBuffer], count: winrt.system.UInt32, options: winrt.windows.storage.streams.InputStreamOptions, /) -> winrt.windows.foundation.IAsyncOperationWithProgress[winrt.windows.storage.streams.IBuffer, winrt.system.UInt32]: ...
|
|
45
|
-
|
{winrt-Windows.Storage.Compression-2.0.0b2 → winrt_windows_storage_compression-2.1.0}/README.md
RENAMED
|
File without changes
|
{winrt-Windows.Storage.Compression-2.0.0b2 → winrt_windows_storage_compression-2.1.0}/setup.cfg
RENAMED
|
File without changes
|
|
File without changes
|