winrt-Windows.Web 2.2.0__tar.gz → 3.0.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_web-2.2.0 → winrt_windows_web-3.0.0}/PKG-INFO +5 -5
- winrt_windows_web-3.0.0/all-requirements.txt +4 -0
- {winrt_windows_web-2.2.0 → winrt_windows_web-3.0.0}/py.Windows.Web.cpp +164 -39
- {winrt_windows_web-2.2.0 → winrt_windows_web-3.0.0}/pyproject.toml +2 -2
- winrt_windows_web-3.0.0/pywinrt-version.txt +1 -0
- {winrt_windows_web-2.2.0 → winrt_windows_web-3.0.0}/requirements.txt +2 -2
- {winrt_windows_web-2.2.0 → winrt_windows_web-3.0.0}/setup.py +1 -1
- {winrt_windows_web-2.2.0 → winrt_windows_web-3.0.0}/winrt/_winrt_windows_web.pyi +10 -6
- {winrt_windows_web-2.2.0 → winrt_windows_web-3.0.0}/winrt/windows/web/__init__.py +6 -4
- {winrt_windows_web-2.2.0 → winrt_windows_web-3.0.0}/winrt_Windows.Web.egg-info/PKG-INFO +5 -5
- winrt_windows_web-3.0.0/winrt_Windows.Web.egg-info/requires.txt +5 -0
- winrt_windows_web-2.2.0/all-requirements.txt +0 -4
- winrt_windows_web-2.2.0/pywinrt-version.txt +0 -1
- winrt_windows_web-2.2.0/winrt_Windows.Web.egg-info/requires.txt +0 -5
- {winrt_windows_web-2.2.0 → winrt_windows_web-3.0.0}/README.md +0 -0
- {winrt_windows_web-2.2.0 → winrt_windows_web-3.0.0}/setup.cfg +0 -0
- {winrt_windows_web-2.2.0 → winrt_windows_web-3.0.0}/winrt/windows/web/py.typed +0 -0
- {winrt_windows_web-2.2.0 → winrt_windows_web-3.0.0}/winrt_Windows.Web.egg-info/SOURCES.txt +0 -0
- {winrt_windows_web-2.2.0 → winrt_windows_web-3.0.0}/winrt_Windows.Web.egg-info/dependency_links.txt +0 -0
- {winrt_windows_web-2.2.0 → winrt_windows_web-3.0.0}/winrt_Windows.Web.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.Web
|
|
3
|
-
Version:
|
|
3
|
+
Version: 3.0.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:
|
|
13
|
+
Requires-Python: >=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==
|
|
15
|
+
Requires-Dist: winrt-runtime==3.0.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==
|
|
18
|
-
Requires-Dist: winrt-Windows.Storage.Streams[all]==
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==3.0.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Storage.Streams[all]==3.0.0; extra == "all"
|
|
19
19
|
|
|
20
20
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
21
21
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// WARNING: Please don't edit this file. It was generated by Python/WinRT
|
|
1
|
+
// WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
|
|
2
2
|
|
|
3
3
|
#include "py.Windows.Web.h"
|
|
4
4
|
|
|
@@ -15,7 +15,7 @@ namespace py::cpp::Windows::Web
|
|
|
15
15
|
|
|
16
16
|
static PyObject* WebError_GetStatus(PyObject* /*unused*/, PyObject* args) noexcept
|
|
17
17
|
{
|
|
18
|
-
auto arg_count =
|
|
18
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
19
19
|
|
|
20
20
|
if (arg_count == 1)
|
|
21
21
|
{
|
|
@@ -36,7 +36,11 @@ namespace py::cpp::Windows::Web
|
|
|
36
36
|
|
|
37
37
|
auto param0 = py::convert_to<int32_t>(args, 0);
|
|
38
38
|
|
|
39
|
-
return py::convert(
|
|
39
|
+
return py::convert([&]()
|
|
40
|
+
{
|
|
41
|
+
auto _gil = release_gil();
|
|
42
|
+
return winrt::Windows::Web::WebError::GetStatus(param0);
|
|
43
|
+
}());
|
|
40
44
|
}
|
|
41
45
|
catch (...)
|
|
42
46
|
{
|
|
@@ -52,19 +56,16 @@ namespace py::cpp::Windows::Web
|
|
|
52
56
|
}
|
|
53
57
|
|
|
54
58
|
static PyMethodDef _methods_WebError[] = {
|
|
55
|
-
{ }
|
|
56
|
-
};
|
|
59
|
+
{ }};
|
|
57
60
|
|
|
58
61
|
static PyGetSetDef _getset_WebError[] = {
|
|
59
|
-
{ }
|
|
60
|
-
};
|
|
62
|
+
{ }};
|
|
61
63
|
|
|
62
64
|
static PyType_Slot _type_slots_WebError[] = {
|
|
63
65
|
{ Py_tp_new, reinterpret_cast<void*>(_new_WebError) },
|
|
64
66
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_WebError) },
|
|
65
67
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_WebError) },
|
|
66
|
-
{ }
|
|
67
|
-
};
|
|
68
|
+
{ }};
|
|
68
69
|
|
|
69
70
|
static PyType_Spec type_spec_WebError = {
|
|
70
71
|
"winrt._winrt_windows_web.WebError",
|
|
@@ -74,13 +75,11 @@ namespace py::cpp::Windows::Web
|
|
|
74
75
|
_type_slots_WebError};
|
|
75
76
|
|
|
76
77
|
static PyGetSetDef getset_WebError_Static[] = {
|
|
77
|
-
{ }
|
|
78
|
-
};
|
|
78
|
+
{ }};
|
|
79
79
|
|
|
80
80
|
static PyMethodDef methods_WebError_Static[] = {
|
|
81
81
|
{ "get_status", reinterpret_cast<PyCFunction>(WebError_GetStatus), METH_VARARGS, nullptr },
|
|
82
|
-
{ }
|
|
83
|
-
};
|
|
82
|
+
{ }};
|
|
84
83
|
|
|
85
84
|
static PyType_Slot type_slots_WebError_Static[] =
|
|
86
85
|
{
|
|
@@ -90,23 +89,23 @@ namespace py::cpp::Windows::Web
|
|
|
90
89
|
{ }
|
|
91
90
|
};
|
|
92
91
|
|
|
93
|
-
static PyType_Spec type_spec_WebError_Static =
|
|
94
|
-
{
|
|
92
|
+
static PyType_Spec type_spec_WebError_Static = {
|
|
95
93
|
"winrt._winrt_windows_web.WebError_Static",
|
|
96
94
|
static_cast<int>(PyType_Type.tp_basicsize),
|
|
97
95
|
static_cast<int>(PyType_Type.tp_itemsize),
|
|
98
96
|
Py_TPFLAGS_DEFAULT,
|
|
99
|
-
type_slots_WebError_Static
|
|
100
|
-
};
|
|
97
|
+
type_slots_WebError_Static};
|
|
101
98
|
|
|
102
99
|
// ----- IUriToStreamResolver interface --------------------
|
|
103
100
|
|
|
101
|
+
#if PY_VERSION_HEX < 0x030A0000
|
|
104
102
|
static PyObject* _new_IUriToStreamResolver(PyTypeObject* /*unused*/, PyObject* /*unused*/, PyObject* /*unused*/) noexcept
|
|
105
103
|
{
|
|
106
104
|
static_assert(py::py_type<winrt::Windows::Web::IUriToStreamResolver>::type_name);
|
|
107
105
|
py::set_invalid_activation_error(py::py_type<winrt::Windows::Web::IUriToStreamResolver>::type_name);
|
|
108
106
|
return nullptr;
|
|
109
107
|
}
|
|
108
|
+
#endif
|
|
110
109
|
|
|
111
110
|
static void _dealloc_IUriToStreamResolver(py::wrapper::Windows::Web::IUriToStreamResolver* self) noexcept
|
|
112
111
|
{
|
|
@@ -118,7 +117,7 @@ namespace py::cpp::Windows::Web
|
|
|
118
117
|
|
|
119
118
|
static PyObject* IUriToStreamResolver_UriToStreamAsync(py::wrapper::Windows::Web::IUriToStreamResolver* self, PyObject* args) noexcept
|
|
120
119
|
{
|
|
121
|
-
auto arg_count =
|
|
120
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
122
121
|
|
|
123
122
|
if (arg_count == 1)
|
|
124
123
|
{
|
|
@@ -139,7 +138,11 @@ namespace py::cpp::Windows::Web
|
|
|
139
138
|
|
|
140
139
|
auto param0 = py::convert_to<winrt::Windows::Foundation::Uri>(args, 0);
|
|
141
140
|
|
|
142
|
-
return py::convert(
|
|
141
|
+
return py::convert([&]()
|
|
142
|
+
{
|
|
143
|
+
auto _gil = release_gil();
|
|
144
|
+
return self->obj.UriToStreamAsync(param0);
|
|
145
|
+
}());
|
|
143
146
|
}
|
|
144
147
|
catch (...)
|
|
145
148
|
{
|
|
@@ -154,6 +157,73 @@ namespace py::cpp::Windows::Web
|
|
|
154
157
|
}
|
|
155
158
|
}
|
|
156
159
|
|
|
160
|
+
static PyMethodDef _methods_IUriToStreamResolver[] = {
|
|
161
|
+
{ "uri_to_stream_async", reinterpret_cast<PyCFunction>(IUriToStreamResolver_UriToStreamAsync), METH_VARARGS, nullptr },
|
|
162
|
+
{ }};
|
|
163
|
+
|
|
164
|
+
static PyGetSetDef _getset_IUriToStreamResolver[] = {
|
|
165
|
+
{ }};
|
|
166
|
+
|
|
167
|
+
static PyType_Slot _type_slots_IUriToStreamResolver[] = {
|
|
168
|
+
#if PY_VERSION_HEX < 0x030A0000
|
|
169
|
+
{ Py_tp_new, reinterpret_cast<void*>(_new_IUriToStreamResolver) },
|
|
170
|
+
#endif
|
|
171
|
+
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_IUriToStreamResolver) },
|
|
172
|
+
{ Py_tp_methods, reinterpret_cast<void*>(_methods_IUriToStreamResolver) },
|
|
173
|
+
{ Py_tp_getset, reinterpret_cast<void*>(_getset_IUriToStreamResolver) },
|
|
174
|
+
{ }};
|
|
175
|
+
|
|
176
|
+
static PyType_Spec type_spec_IUriToStreamResolver = {
|
|
177
|
+
"winrt._winrt_windows_web._IUriToStreamResolver",
|
|
178
|
+
sizeof(py::wrapper::Windows::Web::IUriToStreamResolver),
|
|
179
|
+
0,
|
|
180
|
+
Py_TPFLAGS_DEFAULT
|
|
181
|
+
#if PY_VERSION_HEX >= 0x030A0000
|
|
182
|
+
| Py_TPFLAGS_DISALLOW_INSTANTIATION
|
|
183
|
+
#endif
|
|
184
|
+
,
|
|
185
|
+
_type_slots_IUriToStreamResolver};
|
|
186
|
+
|
|
187
|
+
struct ImplementsIUriToStreamResolver : py::ImplementsInterfaceT<ImplementsIUriToStreamResolver, winrt::Windows::Web::IUriToStreamResolver>
|
|
188
|
+
{
|
|
189
|
+
ImplementsIUriToStreamResolver() = delete;
|
|
190
|
+
ImplementsIUriToStreamResolver(PyObject* py_obj, winrt::impl::inspectable_abi* runtime_class) : py::ImplementsInterfaceT<ImplementsIUriToStreamResolver, winrt::Windows::Web::IUriToStreamResolver>(py_obj, runtime_class)
|
|
191
|
+
{
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
auto UriToStreamAsync(winrt::Windows::Foundation::Uri const& param0)
|
|
195
|
+
{
|
|
196
|
+
try
|
|
197
|
+
{
|
|
198
|
+
py::pyobj_handle self{this->get_py_obj()};
|
|
199
|
+
|
|
200
|
+
py::pyobj_handle method{PyObject_GetAttrString(self.get(), "uri_to_stream_async")};
|
|
201
|
+
if (!method)
|
|
202
|
+
{
|
|
203
|
+
throw python_exception();
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
py::pyobj_handle py_param0{py::convert(param0)};
|
|
207
|
+
if (!py_param0)
|
|
208
|
+
{
|
|
209
|
+
throw python_exception();
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
py::pyobj_handle return_value{PyObject_CallOneArg(method.get(), py_param0.get())};
|
|
213
|
+
if (!return_value)
|
|
214
|
+
{
|
|
215
|
+
throw python_exception();
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
return py::convert_to<winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::Storage::Streams::IInputStream>>(return_value.get());
|
|
219
|
+
}
|
|
220
|
+
catch (python_exception)
|
|
221
|
+
{
|
|
222
|
+
py::write_unraisable_and_throw();
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
};
|
|
226
|
+
|
|
157
227
|
static PyObject* _assign_array_IUriToStreamResolver(PyObject* /*unused*/, PyObject* arg) noexcept
|
|
158
228
|
{
|
|
159
229
|
auto array = std::make_unique<py::ComArray<winrt::Windows::Web::IUriToStreamResolver>>();
|
|
@@ -178,31 +248,63 @@ namespace py::cpp::Windows::Web
|
|
|
178
248
|
}
|
|
179
249
|
}
|
|
180
250
|
|
|
181
|
-
static
|
|
182
|
-
|
|
251
|
+
static PyObject* _guid_ImplementsIUriToStreamResolver(PyObject* /*unused*/, PyObject* /*unused*/) noexcept
|
|
252
|
+
{
|
|
253
|
+
try
|
|
254
|
+
{
|
|
255
|
+
return py::convert(winrt::guid_of<winrt::Windows::Web::IUriToStreamResolver>());
|
|
256
|
+
}
|
|
257
|
+
catch (...)
|
|
258
|
+
{
|
|
259
|
+
py::to_PyErr();
|
|
260
|
+
return nullptr;
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
static PyObject* _make_ImplementsIUriToStreamResolver(PyObject* /*unused*/, PyObject* args) noexcept
|
|
265
|
+
{
|
|
266
|
+
try
|
|
267
|
+
{
|
|
268
|
+
PyObject* py_obj;
|
|
269
|
+
winrt::impl::inspectable_abi* runtime_class;
|
|
270
|
+
|
|
271
|
+
if (!PyArg_ParseTuple(args, "On", &py_obj, &runtime_class))
|
|
272
|
+
{
|
|
273
|
+
return nullptr;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
auto iface{std::make_unique<ImplementsIUriToStreamResolver>(py_obj, runtime_class)};
|
|
277
|
+
|
|
278
|
+
return PyLong_FromVoidPtr(iface.release());
|
|
279
|
+
}
|
|
280
|
+
catch (...)
|
|
281
|
+
{
|
|
282
|
+
py::to_PyErr();
|
|
283
|
+
return nullptr;
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
static PyMethodDef methods_ImplementsIUriToStreamResolver[] = {
|
|
183
288
|
{ "_assign_array_", _assign_array_IUriToStreamResolver, METH_O | METH_STATIC, nullptr },
|
|
184
289
|
{ "_from", reinterpret_cast<PyCFunction>(_from_IUriToStreamResolver), METH_O | METH_STATIC, nullptr },
|
|
185
|
-
{ }
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
static PyGetSetDef _getset_IUriToStreamResolver[] = {
|
|
189
|
-
{ }
|
|
190
|
-
};
|
|
290
|
+
{ "_guid_", reinterpret_cast<PyCFunction>(_guid_ImplementsIUriToStreamResolver), METH_NOARGS | METH_STATIC, nullptr },
|
|
291
|
+
{ "_make_", reinterpret_cast<PyCFunction>(_make_ImplementsIUriToStreamResolver), METH_VARARGS | METH_STATIC, nullptr },
|
|
292
|
+
{ }};
|
|
191
293
|
|
|
192
|
-
static PyType_Slot
|
|
193
|
-
{
|
|
194
|
-
{
|
|
195
|
-
{ Py_tp_methods, reinterpret_cast<void*>(_methods_IUriToStreamResolver) },
|
|
196
|
-
{ Py_tp_getset, reinterpret_cast<void*>(_getset_IUriToStreamResolver) },
|
|
197
|
-
{ }
|
|
198
|
-
};
|
|
294
|
+
static PyType_Slot type_slots_ImplementsIUriToStreamResolver[] = {
|
|
295
|
+
{ Py_tp_methods, reinterpret_cast<void*>(methods_ImplementsIUriToStreamResolver) },
|
|
296
|
+
{ }};
|
|
199
297
|
|
|
200
|
-
static PyType_Spec
|
|
298
|
+
static PyType_Spec type_spec_ImplementsIUriToStreamResolver = {
|
|
201
299
|
"winrt._winrt_windows_web.IUriToStreamResolver",
|
|
202
|
-
sizeof(py::wrapper::Windows::Web::IUriToStreamResolver),
|
|
203
300
|
0,
|
|
204
|
-
|
|
205
|
-
|
|
301
|
+
0,
|
|
302
|
+
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE
|
|
303
|
+
#if PY_VERSION_HEX >= 0x030A0000
|
|
304
|
+
| Py_TPFLAGS_DISALLOW_INSTANTIATION
|
|
305
|
+
#endif
|
|
306
|
+
,
|
|
307
|
+
type_slots_ImplementsIUriToStreamResolver};
|
|
206
308
|
|
|
207
309
|
// ----- Windows.Web Initialization --------------------
|
|
208
310
|
|
|
@@ -236,6 +338,12 @@ PyMODINIT_FUNC PyInit__winrt_windows_web(void) noexcept
|
|
|
236
338
|
return nullptr;
|
|
237
339
|
}
|
|
238
340
|
|
|
341
|
+
auto inspectable_meta_type = py::get_inspectable_meta_type();
|
|
342
|
+
if (!inspectable_meta_type)
|
|
343
|
+
{
|
|
344
|
+
return nullptr;
|
|
345
|
+
}
|
|
346
|
+
|
|
239
347
|
auto object_type = py::get_object_type();
|
|
240
348
|
if (!object_type)
|
|
241
349
|
{
|
|
@@ -249,7 +357,13 @@ PyMODINIT_FUNC PyInit__winrt_windows_web(void) noexcept
|
|
|
249
357
|
return nullptr;
|
|
250
358
|
}
|
|
251
359
|
|
|
252
|
-
py::pyobj_handle
|
|
360
|
+
py::pyobj_handle WebError_Static_bases{PyTuple_Pack(1, reinterpret_cast<PyObject*>(inspectable_meta_type))};
|
|
361
|
+
if (!WebError_Static_bases)
|
|
362
|
+
{
|
|
363
|
+
return nullptr;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
py::pyobj_handle type_WebError_Static{PyType_FromSpecWithBases(&type_spec_WebError_Static, WebError_Static_bases.get())};
|
|
253
367
|
if (!type_WebError_Static)
|
|
254
368
|
{
|
|
255
369
|
return nullptr;
|
|
@@ -267,6 +381,17 @@ PyMODINIT_FUNC PyInit__winrt_windows_web(void) noexcept
|
|
|
267
381
|
return nullptr;
|
|
268
382
|
}
|
|
269
383
|
|
|
384
|
+
py::pytype_handle ImplementsIUriToStreamResolver_type{py::register_python_type(module.get(), &type_spec_ImplementsIUriToStreamResolver, nullptr, inspectable_meta_type)};
|
|
385
|
+
if (!ImplementsIUriToStreamResolver_type)
|
|
386
|
+
{
|
|
387
|
+
return nullptr;
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
if (PyModule_AddType(module.get(), ImplementsIUriToStreamResolver_type.get()) == -1)
|
|
391
|
+
{
|
|
392
|
+
return nullptr;
|
|
393
|
+
}
|
|
394
|
+
|
|
270
395
|
|
|
271
396
|
return module.detach();
|
|
272
397
|
}
|
|
@@ -16,7 +16,7 @@ classifiers = [
|
|
|
16
16
|
"Intended Audience :: Developers",
|
|
17
17
|
]
|
|
18
18
|
dynamic = ["version", "dependencies", "optional-dependencies"]
|
|
19
|
-
requires-python = ">=3.9
|
|
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="
|
|
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"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.0.0
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
|
|
2
2
|
|
|
3
|
-
winrt-runtime==
|
|
3
|
+
winrt-runtime==3.0.0
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
|
|
2
2
|
|
|
3
3
|
import datetime
|
|
4
4
|
import sys
|
|
@@ -6,6 +6,7 @@ import types
|
|
|
6
6
|
import typing
|
|
7
7
|
import uuid as _uuid
|
|
8
8
|
from builtins import property as _property
|
|
9
|
+
from abc import abstractmethod
|
|
9
10
|
|
|
10
11
|
import winrt._winrt
|
|
11
12
|
import winrt.system
|
|
@@ -17,7 +18,8 @@ from winrt.windows.web import WebErrorStatus
|
|
|
17
18
|
Self = typing.TypeVar('Self')
|
|
18
19
|
|
|
19
20
|
@typing.final
|
|
20
|
-
class WebError_Static(
|
|
21
|
+
class WebError_Static(winrt._winrt.IInspectable_Static):
|
|
22
|
+
# Windows.Web.WebErrorStatus Windows.Web.WebError::GetStatus(System.Int32)
|
|
21
23
|
def get_status(cls, hresult: winrt.system.Int32, /) -> WebErrorStatus: ...
|
|
22
24
|
|
|
23
25
|
@typing.final
|
|
@@ -25,8 +27,10 @@ class WebError(winrt.system.Object, metaclass=WebError_Static):
|
|
|
25
27
|
pass
|
|
26
28
|
|
|
27
29
|
@typing.final
|
|
28
|
-
class
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
class _IUriToStreamResolver: ...
|
|
31
|
+
|
|
32
|
+
class IUriToStreamResolver(winrt._winrt.IInspectable):
|
|
33
|
+
# Windows.Foundation.IAsyncOperation`1<Windows.Storage.Streams.IInputStream> Windows.Web.IUriToStreamResolver::UriToStreamAsync(Windows.Foundation.Uri)
|
|
34
|
+
@abstractmethod
|
|
35
|
+
def uri_to_stream_async(self, uri: windows_foundation.Uri, /) -> windows_foundation.IAsyncOperation[windows_storage_streams.IInputStream]: ...
|
|
32
36
|
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
|
|
2
2
|
|
|
3
3
|
import enum
|
|
4
4
|
|
|
5
5
|
import winrt.system
|
|
6
|
-
from winrt import
|
|
6
|
+
from winrt._winrt_windows_web import (
|
|
7
|
+
WebError,
|
|
8
|
+
_IUriToStreamResolver,
|
|
9
|
+
IUriToStreamResolver,
|
|
10
|
+
)
|
|
7
11
|
|
|
8
12
|
__all__ = [
|
|
9
13
|
"WebErrorStatus",
|
|
@@ -68,5 +72,3 @@ class WebErrorStatus(enum.IntEnum):
|
|
|
68
72
|
GATEWAY_TIMEOUT = 504
|
|
69
73
|
HTTP_VERSION_NOT_SUPPORTED = 505
|
|
70
74
|
|
|
71
|
-
WebError = _winrt_windows_web.WebError
|
|
72
|
-
IUriToStreamResolver = _winrt_windows_web.IUriToStreamResolver
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.Web
|
|
3
|
-
Version:
|
|
3
|
+
Version: 3.0.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:
|
|
13
|
+
Requires-Python: >=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==
|
|
15
|
+
Requires-Dist: winrt-runtime==3.0.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==
|
|
18
|
-
Requires-Dist: winrt-Windows.Storage.Streams[all]==
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==3.0.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Storage.Streams[all]==3.0.0; extra == "all"
|
|
19
19
|
|
|
20
20
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
21
21
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2.2.0
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{winrt_windows_web-2.2.0 → winrt_windows_web-3.0.0}/winrt_Windows.Web.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{winrt_windows_web-2.2.0 → winrt_windows_web-3.0.0}/winrt_Windows.Web.egg-info/top_level.txt
RENAMED
|
File without changes
|