httpcore2 2.11.0__tar.gz → 2.13.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.
- {httpcore2-2.11.0 → httpcore2-2.13.0}/CHANGELOG.md +16 -0
- {httpcore2-2.11.0 → httpcore2-2.13.0}/PKG-INFO +18 -2
- {httpcore2-2.11.0 → httpcore2-2.13.0}/httpcore2/_utils.py +7 -11
- {httpcore2-2.11.0 → httpcore2-2.13.0}/pyproject.toml +2 -2
- {httpcore2-2.11.0 → httpcore2-2.13.0}/.gitignore +0 -0
- {httpcore2-2.11.0 → httpcore2-2.13.0}/LICENSE.md +0 -0
- {httpcore2-2.11.0 → httpcore2-2.13.0}/README.md +0 -0
- {httpcore2-2.11.0 → httpcore2-2.13.0}/httpcore2/__init__.py +0 -0
- {httpcore2-2.11.0 → httpcore2-2.13.0}/httpcore2/_api.py +0 -0
- {httpcore2-2.11.0 → httpcore2-2.13.0}/httpcore2/_async/__init__.py +0 -0
- {httpcore2-2.11.0 → httpcore2-2.13.0}/httpcore2/_async/connection.py +0 -0
- {httpcore2-2.11.0 → httpcore2-2.13.0}/httpcore2/_async/connection_pool.py +0 -0
- {httpcore2-2.11.0 → httpcore2-2.13.0}/httpcore2/_async/http11.py +0 -0
- {httpcore2-2.11.0 → httpcore2-2.13.0}/httpcore2/_async/http2.py +0 -0
- {httpcore2-2.11.0 → httpcore2-2.13.0}/httpcore2/_async/http_proxy.py +0 -0
- {httpcore2-2.11.0 → httpcore2-2.13.0}/httpcore2/_async/interfaces.py +0 -0
- {httpcore2-2.11.0 → httpcore2-2.13.0}/httpcore2/_async/socks_proxy.py +0 -0
- {httpcore2-2.11.0 → httpcore2-2.13.0}/httpcore2/_backends/__init__.py +0 -0
- {httpcore2-2.11.0 → httpcore2-2.13.0}/httpcore2/_backends/anyio.py +0 -0
- {httpcore2-2.11.0 → httpcore2-2.13.0}/httpcore2/_backends/auto.py +0 -0
- {httpcore2-2.11.0 → httpcore2-2.13.0}/httpcore2/_backends/base.py +0 -0
- {httpcore2-2.11.0 → httpcore2-2.13.0}/httpcore2/_backends/mock.py +0 -0
- {httpcore2-2.11.0 → httpcore2-2.13.0}/httpcore2/_backends/sync.py +0 -0
- {httpcore2-2.11.0 → httpcore2-2.13.0}/httpcore2/_backends/trio.py +0 -0
- {httpcore2-2.11.0 → httpcore2-2.13.0}/httpcore2/_exceptions.py +0 -0
- {httpcore2-2.11.0 → httpcore2-2.13.0}/httpcore2/_models.py +0 -0
- {httpcore2-2.11.0 → httpcore2-2.13.0}/httpcore2/_ssl.py +0 -0
- {httpcore2-2.11.0 → httpcore2-2.13.0}/httpcore2/_sync/__init__.py +0 -0
- {httpcore2-2.11.0 → httpcore2-2.13.0}/httpcore2/_sync/connection.py +0 -0
- {httpcore2-2.11.0 → httpcore2-2.13.0}/httpcore2/_sync/connection_pool.py +0 -0
- {httpcore2-2.11.0 → httpcore2-2.13.0}/httpcore2/_sync/http11.py +0 -0
- {httpcore2-2.11.0 → httpcore2-2.13.0}/httpcore2/_sync/http2.py +0 -0
- {httpcore2-2.11.0 → httpcore2-2.13.0}/httpcore2/_sync/http_proxy.py +0 -0
- {httpcore2-2.11.0 → httpcore2-2.13.0}/httpcore2/_sync/interfaces.py +0 -0
- {httpcore2-2.11.0 → httpcore2-2.13.0}/httpcore2/_sync/socks_proxy.py +0 -0
- {httpcore2-2.11.0 → httpcore2-2.13.0}/httpcore2/_synchronization.py +0 -0
- {httpcore2-2.11.0 → httpcore2-2.13.0}/httpcore2/_trace.py +0 -0
- {httpcore2-2.11.0 → httpcore2-2.13.0}/httpcore2/py.typed +0 -0
|
@@ -4,6 +4,22 @@ All notable changes to this project will be documented in this file.
|
|
|
4
4
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|
6
6
|
|
|
7
|
+
## 2.13.0 (September 14th, 2026)
|
|
8
|
+
|
|
9
|
+
### Changed
|
|
10
|
+
|
|
11
|
+
* Require Trio 0.34.0 or later for the `trio` extra.
|
|
12
|
+
([#1179](https://github.com/pydantic/httpx2/pull/1179))
|
|
13
|
+
|
|
14
|
+
### Fixed
|
|
15
|
+
|
|
16
|
+
* Avoid nested async generator finalization errors when streamed responses are abandoned early.
|
|
17
|
+
([#1204](https://github.com/pydantic/httpx2/pull/1204))
|
|
18
|
+
|
|
19
|
+
## 2.12.0 (August 18th, 2026)
|
|
20
|
+
|
|
21
|
+
No changes since `2.11.0`. Version bumped to stay in lockstep with `httpx2`.
|
|
22
|
+
|
|
7
23
|
## 2.11.0 (August 18th, 2026)
|
|
8
24
|
|
|
9
25
|
### Changed
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: httpcore2
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.13.0
|
|
4
4
|
Summary: A minimal low-level HTTP client.
|
|
5
5
|
Project-URL: Changelog, https://github.com/pydantic/httpx2/blob/main/src/httpcore2/CHANGELOG.md
|
|
6
6
|
Project-URL: Homepage, https://github.com/pydantic/httpx2
|
|
@@ -36,7 +36,7 @@ Requires-Dist: h2<5,>=3; extra == 'http2'
|
|
|
36
36
|
Provides-Extra: socks
|
|
37
37
|
Requires-Dist: socksio==1.*; extra == 'socks'
|
|
38
38
|
Provides-Extra: trio
|
|
39
|
-
Requires-Dist: trio<1.0,>=0.
|
|
39
|
+
Requires-Dist: trio<1.0,>=0.34.0; extra == 'trio'
|
|
40
40
|
Description-Content-Type: text/markdown
|
|
41
41
|
|
|
42
42
|
# HTTPCore 2
|
|
@@ -152,6 +152,22 @@ All notable changes to this project will be documented in this file.
|
|
|
152
152
|
|
|
153
153
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|
154
154
|
|
|
155
|
+
## 2.13.0 (September 14th, 2026)
|
|
156
|
+
|
|
157
|
+
### Changed
|
|
158
|
+
|
|
159
|
+
* Require Trio 0.34.0 or later for the `trio` extra.
|
|
160
|
+
([#1179](https://github.com/pydantic/httpx2/pull/1179))
|
|
161
|
+
|
|
162
|
+
### Fixed
|
|
163
|
+
|
|
164
|
+
* Avoid nested async generator finalization errors when streamed responses are abandoned early.
|
|
165
|
+
([#1204](https://github.com/pydantic/httpx2/pull/1204))
|
|
166
|
+
|
|
167
|
+
## 2.12.0 (August 18th, 2026)
|
|
168
|
+
|
|
169
|
+
No changes since `2.11.0`. Version bumped to stay in lockstep with `httpx2`.
|
|
170
|
+
|
|
155
171
|
## 2.11.0 (August 18th, 2026)
|
|
156
172
|
|
|
157
173
|
### Changed
|
|
@@ -5,15 +5,14 @@ import socket
|
|
|
5
5
|
import sys
|
|
6
6
|
import typing
|
|
7
7
|
from collections.abc import (
|
|
8
|
-
AsyncGenerator,
|
|
9
8
|
AsyncIterable,
|
|
10
9
|
AsyncIterator,
|
|
11
10
|
Generator,
|
|
12
11
|
Iterable,
|
|
13
12
|
Iterator,
|
|
14
13
|
)
|
|
15
|
-
from contextlib import
|
|
16
|
-
from
|
|
14
|
+
from contextlib import AbstractAsyncContextManager, aclosing, contextmanager, nullcontext
|
|
15
|
+
from types import AsyncGeneratorType
|
|
17
16
|
|
|
18
17
|
T = typing.TypeVar("T")
|
|
19
18
|
|
|
@@ -48,18 +47,15 @@ def is_socket_readable(sock: socket.socket | None) -> bool:
|
|
|
48
47
|
return bool(p.poll(0))
|
|
49
48
|
|
|
50
49
|
|
|
51
|
-
|
|
52
|
-
async def safe_async_iterate(
|
|
50
|
+
def safe_async_iterate(
|
|
53
51
|
iterable_or_iterator: AsyncIterable[T] | AsyncIterator[T], /
|
|
54
|
-
) ->
|
|
52
|
+
) -> AbstractAsyncContextManager[AsyncIterator[T]]:
|
|
55
53
|
iterator = (
|
|
56
54
|
iterable_or_iterator if isinstance(iterable_or_iterator, AsyncIterator) else iterable_or_iterator.__aiter__()
|
|
57
55
|
)
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
if isasyncgen(iterator):
|
|
62
|
-
await iterator.aclose()
|
|
56
|
+
if isinstance(iterator, AsyncGeneratorType):
|
|
57
|
+
return aclosing(iterator)
|
|
58
|
+
return nullcontext(iterator)
|
|
63
59
|
|
|
64
60
|
|
|
65
61
|
@contextmanager
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
requires = [
|
|
3
3
|
"hatchling",
|
|
4
4
|
"hatch-fancy-pypi-readme",
|
|
5
|
-
"uv-dynamic-versioning>=0.14.
|
|
5
|
+
"uv-dynamic-versioning>=0.14.1",
|
|
6
6
|
]
|
|
7
7
|
build-backend = "hatchling.build"
|
|
8
8
|
|
|
@@ -49,7 +49,7 @@ dependencies = ["truststore>=0.10", "h11>=0.16"]
|
|
|
49
49
|
[project.optional-dependencies]
|
|
50
50
|
http2 = ["h2>=3,<5"]
|
|
51
51
|
socks = ["socksio==1.*"]
|
|
52
|
-
trio = ["trio>=0.
|
|
52
|
+
trio = ["trio>=0.34.0,<1.0"]
|
|
53
53
|
asyncio = ["anyio>=4.5.0,<5.0"]
|
|
54
54
|
|
|
55
55
|
[project.urls]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|