winrt-Windows.Storage.Compression 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.
@@ -0,0 +1,22 @@
1
+ Metadata-Version: 2.1
2
+ Name: winrt-Windows.Storage.Compression
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.Storage.Compression
19
+
20
+ Windows Runtime (WinRT) APIs for for the `Windows.Storage.Compression` namespace.
21
+
22
+ This package provides the `winrt.windows.storage.compression` module.
@@ -0,0 +1,7 @@
1
+ <!-- warning: Please don't edit this file. It was automatically generated. -->
2
+
3
+ # winrt-Windows.Storage.Compression
4
+
5
+ Windows Runtime (WinRT) APIs for for the `Windows.Storage.Compression` namespace.
6
+
7
+ This package provides the `winrt.windows.storage.compression` 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.Storage.Streams[all]==2.0.0-beta.1
@@ -0,0 +1,559 @@
1
+ // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.1
2
+
3
+ #include "py.Windows.Storage.Compression.h"
4
+
5
+
6
+ namespace py::cpp::Windows::Storage::Compression
7
+ {
8
+ // ----- Compressor class --------------------
9
+
10
+ static PyObject* _new_Compressor(PyTypeObject* type, PyObject* args, PyObject* kwds) noexcept
11
+ {
12
+ if (kwds != nullptr)
13
+ {
14
+ py::set_invalid_kwd_args_error();
15
+ return nullptr;
16
+ }
17
+
18
+ auto arg_count = PyTuple_Size(args);
19
+ if (arg_count == 1)
20
+ {
21
+ try
22
+ {
23
+ auto param0 = py::convert_to<winrt::Windows::Storage::Streams::IOutputStream>(args, 0);
24
+
25
+ winrt::Windows::Storage::Compression::Compressor instance{ param0 };
26
+ return py::wrap(instance, type);
27
+ }
28
+ catch (...)
29
+ {
30
+ py::to_PyErr();
31
+ return nullptr;
32
+ }
33
+ }
34
+ else if (arg_count == 3)
35
+ {
36
+ try
37
+ {
38
+ auto param0 = py::convert_to<winrt::Windows::Storage::Streams::IOutputStream>(args, 0);
39
+ auto param1 = py::convert_to<winrt::Windows::Storage::Compression::CompressAlgorithm>(args, 1);
40
+ auto param2 = py::convert_to<uint32_t>(args, 2);
41
+
42
+ winrt::Windows::Storage::Compression::Compressor instance{ param0, param1, param2 };
43
+ return py::wrap(instance, type);
44
+ }
45
+ catch (...)
46
+ {
47
+ py::to_PyErr();
48
+ return nullptr;
49
+ }
50
+ }
51
+ else
52
+ {
53
+ py::set_invalid_arg_count_error(arg_count);
54
+ return nullptr;
55
+ }
56
+ }
57
+
58
+ static void _dealloc_Compressor(py::wrapper::Windows::Storage::Compression::Compressor* self) noexcept
59
+ {
60
+ auto tp = Py_TYPE(self);
61
+ std::destroy_at(&self->obj);
62
+ tp->tp_free(self);
63
+ Py_DECREF(tp);
64
+ }
65
+
66
+ static PyObject* Compressor_Close(py::wrapper::Windows::Storage::Compression::Compressor* self, PyObject* args) noexcept
67
+ {
68
+ auto arg_count = PyTuple_Size(args);
69
+
70
+ if (arg_count == 0)
71
+ {
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
+ try
79
+ {
80
+ self->obj.Close();
81
+ Py_RETURN_NONE;
82
+ }
83
+ catch (...)
84
+ {
85
+ py::to_PyErr();
86
+ return nullptr;
87
+ }
88
+ }
89
+ else
90
+ {
91
+ py::set_invalid_arg_count_error(arg_count);
92
+ return nullptr;
93
+ }
94
+ }
95
+
96
+ static PyObject* Compressor_DetachStream(py::wrapper::Windows::Storage::Compression::Compressor* self, PyObject* args) noexcept
97
+ {
98
+ auto arg_count = PyTuple_Size(args);
99
+
100
+ if (arg_count == 0)
101
+ {
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
+ try
109
+ {
110
+ return py::convert(self->obj.DetachStream());
111
+ }
112
+ catch (...)
113
+ {
114
+ py::to_PyErr();
115
+ return nullptr;
116
+ }
117
+ }
118
+ else
119
+ {
120
+ py::set_invalid_arg_count_error(arg_count);
121
+ return nullptr;
122
+ }
123
+ }
124
+
125
+ static PyObject* Compressor_FinishAsync(py::wrapper::Windows::Storage::Compression::Compressor* self, PyObject* args) noexcept
126
+ {
127
+ auto arg_count = PyTuple_Size(args);
128
+
129
+ if (arg_count == 0)
130
+ {
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
+ try
138
+ {
139
+ return py::convert(self->obj.FinishAsync());
140
+ }
141
+ catch (...)
142
+ {
143
+ py::to_PyErr();
144
+ return nullptr;
145
+ }
146
+ }
147
+ else
148
+ {
149
+ py::set_invalid_arg_count_error(arg_count);
150
+ return nullptr;
151
+ }
152
+ }
153
+
154
+ static PyObject* Compressor_FlushAsync(py::wrapper::Windows::Storage::Compression::Compressor* self, PyObject* args) noexcept
155
+ {
156
+ auto arg_count = PyTuple_Size(args);
157
+
158
+ if (arg_count == 0)
159
+ {
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
+ try
167
+ {
168
+ return py::convert(self->obj.FlushAsync());
169
+ }
170
+ catch (...)
171
+ {
172
+ py::to_PyErr();
173
+ return nullptr;
174
+ }
175
+ }
176
+ else
177
+ {
178
+ py::set_invalid_arg_count_error(arg_count);
179
+ return nullptr;
180
+ }
181
+ }
182
+
183
+ static PyObject* Compressor_WriteAsync(py::wrapper::Windows::Storage::Compression::Compressor* self, PyObject* args) noexcept
184
+ {
185
+ auto arg_count = PyTuple_Size(args);
186
+
187
+ if (arg_count == 1)
188
+ {
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
+ try
196
+ {
197
+ auto param0 = py::convert_to<winrt::Windows::Storage::Streams::IBuffer>(args, 0);
198
+
199
+ return py::convert(self->obj.WriteAsync(param0));
200
+ }
201
+ catch (...)
202
+ {
203
+ py::to_PyErr();
204
+ return nullptr;
205
+ }
206
+ }
207
+ else
208
+ {
209
+ py::set_invalid_arg_count_error(arg_count);
210
+ return nullptr;
211
+ }
212
+ }
213
+
214
+ static PyObject* _assign_array_Compressor(PyObject* /*unused*/, PyObject* arg) noexcept
215
+ {
216
+ auto array = std::make_unique<py::ComArray<winrt::Windows::Storage::Compression::Compressor>>();
217
+ if (!py::cpp::_winrt::Array_Assign(arg, std::move(array)))
218
+ {
219
+ return nullptr;
220
+ }
221
+ Py_RETURN_NONE;
222
+ }
223
+
224
+ static PyObject* _from_Compressor(PyObject* /*unused*/, PyObject* arg) noexcept
225
+ {
226
+ try
227
+ {
228
+ auto return_value = py::convert_to<winrt::Windows::Foundation::IInspectable>(arg);
229
+ return py::convert(return_value.as<winrt::Windows::Storage::Compression::Compressor>());
230
+ }
231
+ catch (...)
232
+ {
233
+ py::to_PyErr();
234
+ return nullptr;
235
+ }
236
+ }
237
+
238
+ static PyObject* _enter_Compressor(py::wrapper::Windows::Storage::Compression::Compressor* self, PyObject* /*unused*/) noexcept
239
+ {
240
+ return Py_NewRef(self);
241
+ }
242
+
243
+ static PyObject* _exit_Compressor(py::wrapper::Windows::Storage::Compression::Compressor* self, PyObject* /*unused*/) noexcept
244
+ {
245
+ try
246
+ {
247
+ self->obj.Close();
248
+ Py_RETURN_FALSE;
249
+ }
250
+ catch (...)
251
+ {
252
+ py::to_PyErr();
253
+ return nullptr;
254
+ }
255
+ }
256
+
257
+ static PyMethodDef _methods_Compressor[] = {
258
+ { "close", reinterpret_cast<PyCFunction>(Compressor_Close), METH_VARARGS, nullptr },
259
+ { "detach_stream", reinterpret_cast<PyCFunction>(Compressor_DetachStream), METH_VARARGS, nullptr },
260
+ { "finish_async", reinterpret_cast<PyCFunction>(Compressor_FinishAsync), METH_VARARGS, nullptr },
261
+ { "flush_async", reinterpret_cast<PyCFunction>(Compressor_FlushAsync), METH_VARARGS, nullptr },
262
+ { "write_async", reinterpret_cast<PyCFunction>(Compressor_WriteAsync), METH_VARARGS, nullptr },
263
+ { "_assign_array_", _assign_array_Compressor, METH_O | METH_STATIC, nullptr },
264
+ { "_from", reinterpret_cast<PyCFunction>(_from_Compressor), METH_O | METH_STATIC, nullptr },
265
+ { "__enter__", reinterpret_cast<PyCFunction>(_enter_Compressor), METH_NOARGS, nullptr },
266
+ { "__exit__", reinterpret_cast<PyCFunction>(_exit_Compressor), METH_VARARGS, nullptr },
267
+ { }
268
+ };
269
+
270
+ static PyGetSetDef _getset_Compressor[] = {
271
+ { }
272
+ };
273
+
274
+ static PyType_Slot _type_slots_Compressor[] =
275
+ {
276
+ { Py_tp_new, reinterpret_cast<void*>(_new_Compressor) },
277
+ { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_Compressor) },
278
+ { Py_tp_methods, reinterpret_cast<void*>(_methods_Compressor) },
279
+ { Py_tp_getset, reinterpret_cast<void*>(_getset_Compressor) },
280
+ { },
281
+ };
282
+
283
+ static PyType_Spec type_spec_Compressor =
284
+ {
285
+ "winrt._winrt_windows_storage_compression.Compressor",
286
+ sizeof(py::wrapper::Windows::Storage::Compression::Compressor),
287
+ 0,
288
+ Py_TPFLAGS_DEFAULT,
289
+ _type_slots_Compressor
290
+ };
291
+
292
+ // ----- Decompressor class --------------------
293
+
294
+ static PyObject* _new_Decompressor(PyTypeObject* type, PyObject* args, PyObject* kwds) noexcept
295
+ {
296
+ if (kwds != nullptr)
297
+ {
298
+ py::set_invalid_kwd_args_error();
299
+ return nullptr;
300
+ }
301
+
302
+ auto arg_count = PyTuple_Size(args);
303
+ if (arg_count == 1)
304
+ {
305
+ try
306
+ {
307
+ auto param0 = py::convert_to<winrt::Windows::Storage::Streams::IInputStream>(args, 0);
308
+
309
+ winrt::Windows::Storage::Compression::Decompressor instance{ param0 };
310
+ return py::wrap(instance, type);
311
+ }
312
+ catch (...)
313
+ {
314
+ py::to_PyErr();
315
+ return nullptr;
316
+ }
317
+ }
318
+ else
319
+ {
320
+ py::set_invalid_arg_count_error(arg_count);
321
+ return nullptr;
322
+ }
323
+ }
324
+
325
+ static void _dealloc_Decompressor(py::wrapper::Windows::Storage::Compression::Decompressor* self) noexcept
326
+ {
327
+ auto tp = Py_TYPE(self);
328
+ std::destroy_at(&self->obj);
329
+ tp->tp_free(self);
330
+ Py_DECREF(tp);
331
+ }
332
+
333
+ static PyObject* Decompressor_Close(py::wrapper::Windows::Storage::Compression::Decompressor* self, PyObject* args) noexcept
334
+ {
335
+ auto arg_count = PyTuple_Size(args);
336
+
337
+ if (arg_count == 0)
338
+ {
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
+ try
346
+ {
347
+ self->obj.Close();
348
+ Py_RETURN_NONE;
349
+ }
350
+ catch (...)
351
+ {
352
+ py::to_PyErr();
353
+ return nullptr;
354
+ }
355
+ }
356
+ else
357
+ {
358
+ py::set_invalid_arg_count_error(arg_count);
359
+ return nullptr;
360
+ }
361
+ }
362
+
363
+ static PyObject* Decompressor_DetachStream(py::wrapper::Windows::Storage::Compression::Decompressor* self, PyObject* args) noexcept
364
+ {
365
+ auto arg_count = PyTuple_Size(args);
366
+
367
+ if (arg_count == 0)
368
+ {
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
+ try
376
+ {
377
+ return py::convert(self->obj.DetachStream());
378
+ }
379
+ catch (...)
380
+ {
381
+ py::to_PyErr();
382
+ return nullptr;
383
+ }
384
+ }
385
+ else
386
+ {
387
+ py::set_invalid_arg_count_error(arg_count);
388
+ return nullptr;
389
+ }
390
+ }
391
+
392
+ static PyObject* Decompressor_ReadAsync(py::wrapper::Windows::Storage::Compression::Decompressor* self, PyObject* args) noexcept
393
+ {
394
+ auto arg_count = PyTuple_Size(args);
395
+
396
+ if (arg_count == 3)
397
+ {
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
+ try
405
+ {
406
+ auto param0 = py::convert_to<winrt::Windows::Storage::Streams::IBuffer>(args, 0);
407
+ auto param1 = py::convert_to<uint32_t>(args, 1);
408
+ auto param2 = py::convert_to<winrt::Windows::Storage::Streams::InputStreamOptions>(args, 2);
409
+
410
+ return py::convert(self->obj.ReadAsync(param0, param1, param2));
411
+ }
412
+ catch (...)
413
+ {
414
+ py::to_PyErr();
415
+ return nullptr;
416
+ }
417
+ }
418
+ else
419
+ {
420
+ py::set_invalid_arg_count_error(arg_count);
421
+ return nullptr;
422
+ }
423
+ }
424
+
425
+ static PyObject* _assign_array_Decompressor(PyObject* /*unused*/, PyObject* arg) noexcept
426
+ {
427
+ auto array = std::make_unique<py::ComArray<winrt::Windows::Storage::Compression::Decompressor>>();
428
+ if (!py::cpp::_winrt::Array_Assign(arg, std::move(array)))
429
+ {
430
+ return nullptr;
431
+ }
432
+ Py_RETURN_NONE;
433
+ }
434
+
435
+ static PyObject* _from_Decompressor(PyObject* /*unused*/, PyObject* arg) noexcept
436
+ {
437
+ try
438
+ {
439
+ auto return_value = py::convert_to<winrt::Windows::Foundation::IInspectable>(arg);
440
+ return py::convert(return_value.as<winrt::Windows::Storage::Compression::Decompressor>());
441
+ }
442
+ catch (...)
443
+ {
444
+ py::to_PyErr();
445
+ return nullptr;
446
+ }
447
+ }
448
+
449
+ static PyObject* _enter_Decompressor(py::wrapper::Windows::Storage::Compression::Decompressor* self, PyObject* /*unused*/) noexcept
450
+ {
451
+ return Py_NewRef(self);
452
+ }
453
+
454
+ static PyObject* _exit_Decompressor(py::wrapper::Windows::Storage::Compression::Decompressor* self, PyObject* /*unused*/) noexcept
455
+ {
456
+ try
457
+ {
458
+ self->obj.Close();
459
+ Py_RETURN_FALSE;
460
+ }
461
+ catch (...)
462
+ {
463
+ py::to_PyErr();
464
+ return nullptr;
465
+ }
466
+ }
467
+
468
+ static PyMethodDef _methods_Decompressor[] = {
469
+ { "close", reinterpret_cast<PyCFunction>(Decompressor_Close), METH_VARARGS, nullptr },
470
+ { "detach_stream", reinterpret_cast<PyCFunction>(Decompressor_DetachStream), METH_VARARGS, nullptr },
471
+ { "read_async", reinterpret_cast<PyCFunction>(Decompressor_ReadAsync), METH_VARARGS, nullptr },
472
+ { "_assign_array_", _assign_array_Decompressor, METH_O | METH_STATIC, nullptr },
473
+ { "_from", reinterpret_cast<PyCFunction>(_from_Decompressor), METH_O | METH_STATIC, nullptr },
474
+ { "__enter__", reinterpret_cast<PyCFunction>(_enter_Decompressor), METH_NOARGS, nullptr },
475
+ { "__exit__", reinterpret_cast<PyCFunction>(_exit_Decompressor), METH_VARARGS, nullptr },
476
+ { }
477
+ };
478
+
479
+ static PyGetSetDef _getset_Decompressor[] = {
480
+ { }
481
+ };
482
+
483
+ static PyType_Slot _type_slots_Decompressor[] =
484
+ {
485
+ { Py_tp_new, reinterpret_cast<void*>(_new_Decompressor) },
486
+ { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_Decompressor) },
487
+ { Py_tp_methods, reinterpret_cast<void*>(_methods_Decompressor) },
488
+ { Py_tp_getset, reinterpret_cast<void*>(_getset_Decompressor) },
489
+ { },
490
+ };
491
+
492
+ static PyType_Spec type_spec_Decompressor =
493
+ {
494
+ "winrt._winrt_windows_storage_compression.Decompressor",
495
+ sizeof(py::wrapper::Windows::Storage::Compression::Decompressor),
496
+ 0,
497
+ Py_TPFLAGS_DEFAULT,
498
+ _type_slots_Decompressor
499
+ };
500
+
501
+ // ----- Windows.Storage.Compression Initialization --------------------
502
+ PyDoc_STRVAR(module_doc, "Windows::Storage::Compression");
503
+
504
+
505
+ static PyModuleDef module_def
506
+ = {PyModuleDef_HEAD_INIT,
507
+ "_winrt_windows_storage_compression",
508
+ module_doc,
509
+ 0,
510
+ nullptr,
511
+ nullptr,
512
+ nullptr,
513
+ nullptr,
514
+ nullptr};
515
+
516
+ } // py::cpp::Windows::Storage::Compression
517
+
518
+ PyMODINIT_FUNC PyInit__winrt_windows_storage_compression(void) noexcept
519
+ {
520
+ using namespace py::cpp::Windows::Storage::Compression;
521
+
522
+ if (py::import_winrt_runtime() == -1)
523
+ {
524
+ return nullptr;
525
+ }
526
+
527
+ py::pyobj_handle module{PyModule_Create(&module_def)};
528
+
529
+ if (!module)
530
+ {
531
+ return nullptr;
532
+ }
533
+
534
+ auto object_type = py::get_object_type();
535
+ if (!object_type)
536
+ {
537
+ return nullptr;
538
+ }
539
+
540
+ py::pyobj_handle object_bases{PyTuple_Pack(1, object_type)};
541
+
542
+ if (!object_bases)
543
+ {
544
+ return nullptr;
545
+ }
546
+
547
+ if (py::register_python_type(module.get(), &type_spec_Compressor, object_bases.get(), nullptr) == -1)
548
+ {
549
+ return nullptr;
550
+ }
551
+
552
+ if (py::register_python_type(module.get(), &type_spec_Decompressor, object_bases.get(), nullptr) == -1)
553
+ {
554
+ return nullptr;
555
+ }
556
+
557
+
558
+ return module.detach();
559
+ }
@@ -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.Storage.Compression"
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 @@
1
+ 2.0.0-beta.1
@@ -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_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
+ package_data={"winrt": ["*.pyi"]},
17
+ )
@@ -0,0 +1,43 @@
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.storage.streams
14
+
15
+ from winrt.windows.storage.compression import CompressAlgorithm
16
+
17
+ Self = typing.TypeVar('Self')
18
+
19
+ class Compressor(winrt.system.Object):
20
+ def __enter__(self: Self) -> Self: ...
21
+ def __exit__(self, *args) -> None: ...
22
+ @staticmethod
23
+ def _from(obj: winrt.system.Object, /) -> Compressor: ...
24
+ @typing.overload
25
+ def __new__(cls: typing.Type[Compressor], underlying_stream: typing.Optional[winrt.windows.storage.streams.IOutputStream]) -> Compressor:...
26
+ @typing.overload
27
+ def __new__(cls: typing.Type[Compressor], underlying_stream: typing.Optional[winrt.windows.storage.streams.IOutputStream], algorithm: CompressAlgorithm, block_size: winrt.system.UInt32) -> Compressor:...
28
+ def close(self) -> None: ...
29
+ def detach_stream(self) -> typing.Optional[winrt.windows.storage.streams.IOutputStream]: ...
30
+ def finish_async(self) -> winrt.windows.foundation.IAsyncOperation[bool]: ...
31
+ def flush_async(self) -> winrt.windows.foundation.IAsyncOperation[bool]: ...
32
+ def write_async(self, buffer: typing.Optional[winrt.windows.storage.streams.IBuffer], /) -> winrt.windows.foundation.IAsyncOperationWithProgress[winrt.system.UInt32, winrt.system.UInt32]: ...
33
+
34
+ class Decompressor(winrt.system.Object):
35
+ def __enter__(self: Self) -> Self: ...
36
+ def __exit__(self, *args) -> None: ...
37
+ @staticmethod
38
+ def _from(obj: winrt.system.Object, /) -> Decompressor: ...
39
+ def __new__(cls: typing.Type[Decompressor], underlying_stream: typing.Optional[winrt.windows.storage.streams.IInputStream]) -> Decompressor:...
40
+ def close(self) -> None: ...
41
+ def detach_stream(self) -> typing.Optional[winrt.windows.storage.streams.IInputStream]: ...
42
+ 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]: ...
43
+
@@ -0,0 +1,23 @@
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_storage_compression
7
+
8
+ __all__ = [
9
+ "CompressAlgorithm",
10
+ "Compressor",
11
+ "Decompressor",
12
+ ]
13
+
14
+ class CompressAlgorithm(enum.IntEnum):
15
+ INVALID_ALGORITHM = 0
16
+ NULL_ALGORITHM = 1
17
+ MSZIP = 2
18
+ XPRESS = 3
19
+ XPRESS_HUFF = 4
20
+ LZMS = 5
21
+
22
+ Compressor = _winrt_windows_storage_compression.Compressor
23
+ Decompressor = _winrt_windows_storage_compression.Decompressor
@@ -0,0 +1,22 @@
1
+ Metadata-Version: 2.1
2
+ Name: winrt-Windows.Storage.Compression
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.Storage.Compression
19
+
20
+ Windows Runtime (WinRT) APIs for for the `Windows.Storage.Compression` namespace.
21
+
22
+ This package provides the `winrt.windows.storage.compression` module.
@@ -0,0 +1,14 @@
1
+ README.md
2
+ all-requirements.txt
3
+ py.Windows.Storage.Compression.cpp
4
+ pyproject.toml
5
+ pywinrt-version.txt
6
+ requirements.txt
7
+ setup.py
8
+ winrt/_winrt_windows_storage_compression.pyi
9
+ winrt/windows/storage/compression/__init__.py
10
+ winrt_Windows.Storage.Compression.egg-info/PKG-INFO
11
+ winrt_Windows.Storage.Compression.egg-info/SOURCES.txt
12
+ winrt_Windows.Storage.Compression.egg-info/dependency_links.txt
13
+ winrt_Windows.Storage.Compression.egg-info/requires.txt
14
+ winrt_Windows.Storage.Compression.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.Storage.Streams[all]==2.0.0-beta.1