winrt-Windows.Web.Http 2.0.0b1__tar.gz → 2.0.1__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.Web.Http-2.0.0b1 → winrt_windows_web_http-2.0.1}/PKG-INFO +11 -2
  2. winrt_windows_web_http-2.0.1/all-requirements.txt +9 -0
  3. {winrt-Windows.Web.Http-2.0.0b1 → winrt_windows_web_http-2.0.1}/py.Windows.Web.Http.cpp +1 -1
  4. {winrt-Windows.Web.Http-2.0.0b1 → winrt_windows_web_http-2.0.1}/pyproject.toml +7 -4
  5. winrt_windows_web_http-2.0.1/pywinrt-version.txt +1 -0
  6. {winrt-Windows.Web.Http-2.0.0b1 → winrt_windows_web_http-2.0.1}/requirements.txt +2 -2
  7. winrt_windows_web_http-2.0.1/setup.py +31 -0
  8. {winrt-Windows.Web.Http-2.0.0b1 → winrt_windows_web_http-2.0.1}/winrt/_winrt_windows_web_http.pyi +24 -2
  9. {winrt-Windows.Web.Http-2.0.0b1 → winrt_windows_web_http-2.0.1}/winrt/windows/web/http/__init__.py +1 -1
  10. winrt_windows_web_http-2.0.1/winrt/windows/web/http/py.typed +0 -0
  11. {winrt-Windows.Web.Http-2.0.0b1 → winrt_windows_web_http-2.0.1}/winrt_Windows.Web.Http.egg-info/PKG-INFO +11 -2
  12. {winrt-Windows.Web.Http-2.0.0b1 → winrt_windows_web_http-2.0.1}/winrt_Windows.Web.Http.egg-info/SOURCES.txt +1 -0
  13. winrt_windows_web_http-2.0.1/winrt_Windows.Web.Http.egg-info/requires.txt +10 -0
  14. winrt-Windows.Web.Http-2.0.0b1/all-requirements.txt +0 -9
  15. winrt-Windows.Web.Http-2.0.0b1/pywinrt-version.txt +0 -1
  16. winrt-Windows.Web.Http-2.0.0b1/setup.py +0 -17
  17. winrt-Windows.Web.Http-2.0.0b1/winrt_Windows.Web.Http.egg-info/requires.txt +0 -10
  18. {winrt-Windows.Web.Http-2.0.0b1 → winrt_windows_web_http-2.0.1}/README.md +0 -0
  19. {winrt-Windows.Web.Http-2.0.0b1 → winrt_windows_web_http-2.0.1}/setup.cfg +0 -0
  20. {winrt-Windows.Web.Http-2.0.0b1 → winrt_windows_web_http-2.0.1}/winrt_Windows.Web.Http.egg-info/dependency_links.txt +0 -0
  21. {winrt-Windows.Web.Http-2.0.0b1 → winrt_windows_web_http-2.0.1}/winrt_Windows.Web.Http.egg-info/top_level.txt +0 -0
@@ -1,9 +1,10 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.Web.Http
3
- Version: 2.0.0b1
3
+ Version: 2.0.1
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
5
  License: MIT
6
- Project-URL: Repository, https://github.com/pywrint/pywrinrt
6
+ Project-URL: Documentation, https://pywinrt.readthedocs.io
7
+ Project-URL: Repository, https://github.com/pywinrt/pywinrt
7
8
  Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
8
9
  Classifier: Operating System :: Microsoft :: Windows
9
10
  Classifier: Programming Language :: Python :: 3
@@ -11,7 +12,15 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
11
12
  Classifier: Intended Audience :: Developers
12
13
  Requires-Python: <3.13,>=3.9
13
14
  Description-Content-Type: text/markdown
15
+ Requires-Dist: winrt-runtime==2.0.1
14
16
  Provides-Extra: all
17
+ Requires-Dist: winrt-Windows.Foundation[all]==2.0.1; extra == "all"
18
+ Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.0.1; extra == "all"
19
+ Requires-Dist: winrt-Windows.Networking.Sockets[all]==2.0.1; extra == "all"
20
+ Requires-Dist: winrt-Windows.Security.Cryptography.Certificates[all]==2.0.1; extra == "all"
21
+ Requires-Dist: winrt-Windows.Storage.Streams[all]==2.0.1; extra == "all"
22
+ Requires-Dist: winrt-Windows.Web.Http.Filters[all]==2.0.1; extra == "all"
23
+ Requires-Dist: winrt-Windows.Web.Http.Headers[all]==2.0.1; extra == "all"
15
24
 
16
25
  <!-- warning: Please don't edit this file. It was automatically generated. -->
17
26
 
@@ -0,0 +1,9 @@
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.Foundation.Collections[all]==2.0.1
5
+ winrt-Windows.Networking.Sockets[all]==2.0.1
6
+ winrt-Windows.Security.Cryptography.Certificates[all]==2.0.1
7
+ winrt-Windows.Storage.Streams[all]==2.0.1
8
+ winrt-Windows.Web.Http.Filters[all]==2.0.1
9
+ winrt-Windows.Web.Http.Headers[all]==2.0.1
@@ -1,4 +1,4 @@
1
- // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.1
1
+ // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.1
2
2
 
3
3
  #include "py.Windows.Web.Http.h"
4
4
 
@@ -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", "setuptools-scm", "winrt-sdk"]
4
+ requires = ["setuptools", "winrt-sdk"]
5
5
  build-backend = "setuptools.build_meta"
6
6
 
7
7
  [project]
@@ -19,9 +19,9 @@ dynamic = ["version", "dependencies", "optional-dependencies"]
19
19
  requires-python = ">=3.9,<3.13"
20
20
 
21
21
  [project.urls]
22
- # Homepage = "https://github.com/pywrint/pywrinrt"
23
- # Documentation = "https://readthedocs.org"
24
- Repository = "https://github.com/pywrint/pywrinrt"
22
+ # Homepage = "https://github.com/pywinrt/pywinrt"
23
+ Documentation = "https://pywinrt.readthedocs.io"
24
+ Repository = "https://github.com/pywinrt/pywinrt"
25
25
  Changelog = "https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md"
26
26
 
27
27
  [tool.setuptools.dynamic]
@@ -29,6 +29,9 @@ version = { file = "pywinrt-version.txt" }
29
29
  dependencies = { file = "requirements.txt" }
30
30
  optional-dependencies.all = { file = "all-requirements.txt" }
31
31
 
32
+ [tool.setuptools.package-data]
33
+ "*" = ["*.pyi", "py.typed"]
34
+
32
35
  [tool.cibuildwheel]
33
36
  # use local winrt-sdk build dependency
34
37
  environment = { PYTHONPATH="../winrt-sdk/src" }
@@ -0,0 +1 @@
1
+ 2.0.1
@@ -1,3 +1,3 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.1
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.1
2
2
 
3
- winrt-runtime==2.0.0-beta.1
3
+ winrt-runtime==2.0.1
@@ -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_web_http",
26
+ sources=["py.Windows.Web.Http.cpp"],
27
+ include_dirs=get_include_dirs(),
28
+ libraries=["windowsapp"],
29
+ )
30
+ ],
31
+ )
@@ -1,4 +1,4 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.1
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.1
2
2
 
3
3
  import datetime
4
4
  import sys
@@ -21,6 +21,7 @@ from winrt.windows.web.http import HttpCompletionOption, HttpProgressStage, Http
21
21
 
22
22
  Self = typing.TypeVar('Self')
23
23
 
24
+ @typing.final
24
25
  class HttpProgress:
25
26
  stage: HttpProgressStage
26
27
  bytes_sent: winrt.system.UInt64
@@ -30,6 +31,7 @@ class HttpProgress:
30
31
  retries: winrt.system.UInt32
31
32
  def __init__(self, stage: HttpProgressStage, bytes_sent: winrt.system.UInt64, total_bytes_to_send: winrt.system.UInt64, bytes_received: winrt.system.UInt64, total_bytes_to_receive: winrt.system.UInt64, retries: winrt.system.UInt32) -> None: ...
32
33
 
34
+ @typing.final
33
35
  class HttpBufferContent(winrt.system.Object):
34
36
  def __enter__(self: Self) -> Self: ...
35
37
  def __exit__(self, *args) -> None: ...
@@ -51,6 +53,7 @@ class HttpBufferContent(winrt.system.Object):
51
53
  @_property
52
54
  def headers(self) -> typing.Optional[winrt.windows.web.http.headers.HttpContentHeaderCollection]: ...
53
55
 
56
+ @typing.final
54
57
  class HttpClient(winrt.system.Object):
55
58
  def __enter__(self: Self) -> Self: ...
56
59
  def __exit__(self, *args) -> None: ...
@@ -98,6 +101,7 @@ class HttpClient(winrt.system.Object):
98
101
  @default_privacy_annotation.setter
99
102
  def default_privacy_annotation(self, value: str) -> None: ...
100
103
 
104
+ @typing.final
101
105
  class HttpCookie(winrt.system.Object):
102
106
  def __str__(self) -> str: ...
103
107
  @staticmethod
@@ -127,10 +131,12 @@ class HttpCookie(winrt.system.Object):
127
131
  @_property
128
132
  def path(self) -> str: ...
129
133
 
134
+ @typing.final
130
135
  class HttpCookieCollection(winrt.system.Object, winrt._winrt.Sequence[HttpCookie]):
131
136
  def __len__(self) -> int: ...
137
+ def __iter__(self) -> winrt.windows.foundation.collections.IIterator[HttpCookie]: ...
132
138
  @typing.overload
133
- def __getitem__(self, index: int) -> HttpCookie: ...
139
+ def __getitem__(self, index: typing.SupportsIndex) -> HttpCookie: ...
134
140
  @typing.overload
135
141
  def __getitem__(self, index: slice) -> winrt.system.Array[HttpCookie]: ...
136
142
  @staticmethod
@@ -142,6 +148,7 @@ class HttpCookieCollection(winrt.system.Object, winrt._winrt.Sequence[HttpCookie
142
148
  @_property
143
149
  def size(self) -> winrt.system.UInt32: ...
144
150
 
151
+ @typing.final
145
152
  class HttpCookieManager(winrt.system.Object):
146
153
  @staticmethod
147
154
  def _from(obj: winrt.system.Object, /) -> HttpCookieManager: ...
@@ -152,6 +159,7 @@ class HttpCookieManager(winrt.system.Object):
152
159
  @typing.overload
153
160
  def set_cookie(self, cookie: typing.Optional[HttpCookie], third_party: bool, /) -> bool: ...
154
161
 
162
+ @typing.final
155
163
  class HttpFormUrlEncodedContent(winrt.system.Object):
156
164
  def __enter__(self: Self) -> Self: ...
157
165
  def __exit__(self, *args) -> None: ...
@@ -170,6 +178,7 @@ class HttpFormUrlEncodedContent(winrt.system.Object):
170
178
  @_property
171
179
  def headers(self) -> typing.Optional[winrt.windows.web.http.headers.HttpContentHeaderCollection]: ...
172
180
 
181
+ @typing.final
173
182
  class HttpGetBufferResult(winrt.system.Object):
174
183
  def __enter__(self: Self) -> Self: ...
175
184
  def __exit__(self, *args) -> None: ...
@@ -189,6 +198,7 @@ class HttpGetBufferResult(winrt.system.Object):
189
198
  @_property
190
199
  def value(self) -> typing.Optional[winrt.windows.storage.streams.IBuffer]: ...
191
200
 
201
+ @typing.final
192
202
  class HttpGetInputStreamResult(winrt.system.Object):
193
203
  def __enter__(self: Self) -> Self: ...
194
204
  def __exit__(self, *args) -> None: ...
@@ -208,6 +218,7 @@ class HttpGetInputStreamResult(winrt.system.Object):
208
218
  @_property
209
219
  def value(self) -> typing.Optional[winrt.windows.storage.streams.IInputStream]: ...
210
220
 
221
+ @typing.final
211
222
  class HttpGetStringResult(winrt.system.Object):
212
223
  def __enter__(self: Self) -> Self: ...
213
224
  def __exit__(self, *args) -> None: ...
@@ -227,6 +238,7 @@ class HttpGetStringResult(winrt.system.Object):
227
238
  @_property
228
239
  def value(self) -> str: ...
229
240
 
241
+ @typing.final
230
242
  class HttpMethod_Static(type):
231
243
  @_property
232
244
  def delete(cls) -> typing.Optional[HttpMethod]: ...
@@ -243,6 +255,7 @@ class HttpMethod_Static(type):
243
255
  @_property
244
256
  def put(cls) -> typing.Optional[HttpMethod]: ...
245
257
 
258
+ @typing.final
246
259
  class HttpMethod(winrt.system.Object, metaclass=HttpMethod_Static):
247
260
  def __str__(self) -> str: ...
248
261
  @staticmethod
@@ -252,6 +265,7 @@ class HttpMethod(winrt.system.Object, metaclass=HttpMethod_Static):
252
265
  @_property
253
266
  def method(self) -> str: ...
254
267
 
268
+ @typing.final
255
269
  class HttpMultipartContent(winrt.system.Object):
256
270
  def __enter__(self: Self) -> Self: ...
257
271
  def __exit__(self, *args) -> None: ...
@@ -278,6 +292,7 @@ class HttpMultipartContent(winrt.system.Object):
278
292
  @_property
279
293
  def headers(self) -> typing.Optional[winrt.windows.web.http.headers.HttpContentHeaderCollection]: ...
280
294
 
295
+ @typing.final
281
296
  class HttpMultipartFormDataContent(winrt.system.Object):
282
297
  def __enter__(self: Self) -> Self: ...
283
298
  def __exit__(self, *args) -> None: ...
@@ -307,6 +322,7 @@ class HttpMultipartFormDataContent(winrt.system.Object):
307
322
  @_property
308
323
  def headers(self) -> typing.Optional[winrt.windows.web.http.headers.HttpContentHeaderCollection]: ...
309
324
 
325
+ @typing.final
310
326
  class HttpRequestMessage(winrt.system.Object):
311
327
  def __enter__(self: Self) -> Self: ...
312
328
  def __exit__(self, *args) -> None: ...
@@ -342,6 +358,7 @@ class HttpRequestMessage(winrt.system.Object):
342
358
  @privacy_annotation.setter
343
359
  def privacy_annotation(self, value: str) -> None: ...
344
360
 
361
+ @typing.final
345
362
  class HttpRequestResult(winrt.system.Object):
346
363
  def __enter__(self: Self) -> Self: ...
347
364
  def __exit__(self, *args) -> None: ...
@@ -359,6 +376,7 @@ class HttpRequestResult(winrt.system.Object):
359
376
  @_property
360
377
  def succeeded(self) -> bool: ...
361
378
 
379
+ @typing.final
362
380
  class HttpResponseMessage(winrt.system.Object):
363
381
  def __enter__(self: Self) -> Self: ...
364
382
  def __exit__(self, *args) -> None: ...
@@ -401,6 +419,7 @@ class HttpResponseMessage(winrt.system.Object):
401
419
  @_property
402
420
  def is_success_status_code(self) -> bool: ...
403
421
 
422
+ @typing.final
404
423
  class HttpStreamContent(winrt.system.Object):
405
424
  def __enter__(self: Self) -> Self: ...
406
425
  def __exit__(self, *args) -> None: ...
@@ -419,6 +438,7 @@ class HttpStreamContent(winrt.system.Object):
419
438
  @_property
420
439
  def headers(self) -> typing.Optional[winrt.windows.web.http.headers.HttpContentHeaderCollection]: ...
421
440
 
441
+ @typing.final
422
442
  class HttpStringContent(winrt.system.Object):
423
443
  def __enter__(self: Self) -> Self: ...
424
444
  def __exit__(self, *args) -> None: ...
@@ -442,6 +462,7 @@ class HttpStringContent(winrt.system.Object):
442
462
  @_property
443
463
  def headers(self) -> typing.Optional[winrt.windows.web.http.headers.HttpContentHeaderCollection]: ...
444
464
 
465
+ @typing.final
445
466
  class HttpTransportInformation(winrt.system.Object):
446
467
  def __str__(self) -> str: ...
447
468
  @staticmethod
@@ -456,6 +477,7 @@ class HttpTransportInformation(winrt.system.Object):
456
477
  @_property
457
478
  def server_intermediate_certificates(self) -> typing.Optional[winrt.windows.foundation.collections.IVectorView[winrt.windows.security.cryptography.certificates.Certificate]]: ...
458
479
 
480
+ @typing.final
459
481
  class IHttpContent(winrt.system.Object):
460
482
  def __enter__(self: Self) -> Self: ...
461
483
  def __exit__(self, *args) -> None: ...
@@ -1,4 +1,4 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.1
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.1
2
2
 
3
3
  import enum
4
4
 
@@ -1,9 +1,10 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.Web.Http
3
- Version: 2.0.0b1
3
+ Version: 2.0.1
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
5
  License: MIT
6
- Project-URL: Repository, https://github.com/pywrint/pywrinrt
6
+ Project-URL: Documentation, https://pywinrt.readthedocs.io
7
+ Project-URL: Repository, https://github.com/pywinrt/pywinrt
7
8
  Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
8
9
  Classifier: Operating System :: Microsoft :: Windows
9
10
  Classifier: Programming Language :: Python :: 3
@@ -11,7 +12,15 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
11
12
  Classifier: Intended Audience :: Developers
12
13
  Requires-Python: <3.13,>=3.9
13
14
  Description-Content-Type: text/markdown
15
+ Requires-Dist: winrt-runtime==2.0.1
14
16
  Provides-Extra: all
17
+ Requires-Dist: winrt-Windows.Foundation[all]==2.0.1; extra == "all"
18
+ Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.0.1; extra == "all"
19
+ Requires-Dist: winrt-Windows.Networking.Sockets[all]==2.0.1; extra == "all"
20
+ Requires-Dist: winrt-Windows.Security.Cryptography.Certificates[all]==2.0.1; extra == "all"
21
+ Requires-Dist: winrt-Windows.Storage.Streams[all]==2.0.1; extra == "all"
22
+ Requires-Dist: winrt-Windows.Web.Http.Filters[all]==2.0.1; extra == "all"
23
+ Requires-Dist: winrt-Windows.Web.Http.Headers[all]==2.0.1; extra == "all"
15
24
 
16
25
  <!-- warning: Please don't edit this file. It was automatically generated. -->
17
26
 
@@ -7,6 +7,7 @@ requirements.txt
7
7
  setup.py
8
8
  winrt/_winrt_windows_web_http.pyi
9
9
  winrt/windows/web/http/__init__.py
10
+ winrt/windows/web/http/py.typed
10
11
  winrt_Windows.Web.Http.egg-info/PKG-INFO
11
12
  winrt_Windows.Web.Http.egg-info/SOURCES.txt
12
13
  winrt_Windows.Web.Http.egg-info/dependency_links.txt
@@ -0,0 +1,10 @@
1
+ winrt-runtime==2.0.1
2
+
3
+ [all]
4
+ winrt-Windows.Foundation[all]==2.0.1
5
+ winrt-Windows.Foundation.Collections[all]==2.0.1
6
+ winrt-Windows.Networking.Sockets[all]==2.0.1
7
+ winrt-Windows.Security.Cryptography.Certificates[all]==2.0.1
8
+ winrt-Windows.Storage.Streams[all]==2.0.1
9
+ winrt-Windows.Web.Http.Filters[all]==2.0.1
10
+ winrt-Windows.Web.Http.Headers[all]==2.0.1
@@ -1,9 +0,0 @@
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.Foundation.Collections[all]==2.0.0-beta.1
5
- winrt-Windows.Networking.Sockets[all]==2.0.0-beta.1
6
- winrt-Windows.Security.Cryptography.Certificates[all]==2.0.0-beta.1
7
- winrt-Windows.Storage.Streams[all]==2.0.0-beta.1
8
- winrt-Windows.Web.Http.Filters[all]==2.0.0-beta.1
9
- winrt-Windows.Web.Http.Headers[all]==2.0.0-beta.1
@@ -1 +0,0 @@
1
- 2.0.0-beta.1
@@ -1,17 +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_web_http",
10
- sources=["py.Windows.Web.Http.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
- )
@@ -1,10 +0,0 @@
1
- winrt-runtime==2.0.0-beta.1
2
-
3
- [all]
4
- winrt-Windows.Foundation[all]==2.0.0-beta.1
5
- winrt-Windows.Foundation.Collections[all]==2.0.0-beta.1
6
- winrt-Windows.Networking.Sockets[all]==2.0.0-beta.1
7
- winrt-Windows.Security.Cryptography.Certificates[all]==2.0.0-beta.1
8
- winrt-Windows.Storage.Streams[all]==2.0.0-beta.1
9
- winrt-Windows.Web.Http.Filters[all]==2.0.0-beta.1
10
- winrt-Windows.Web.Http.Headers[all]==2.0.0-beta.1