Up to [cvs.NetBSD.org] / pkgsrc / net / py-geventhttpclient
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
py-geventhttpclient: updated to 2.6.1
2.6.1 (2026-10-09)
Added
- Python 3.15 is supported explicitly
2.6.0 (2026-10-05)
Added
- Type annotations across the package, with a `py.typed` marker
- Basic auth added: `BasicAuth("user", "pass")`, or the `requests`-style
`("user", "pass")` tuple, on a `Session` or a single request
- `geventhttpclient.httpx`, an httpx-compatible client on the same engine
- Requests compatibility improved: `history`, `elapsed`, `cookies`,
`links`, `encoding`, `iter_content()`, `iter_lines()`, `json()`,
`bool()`, `close()` and `raise_for_status` with the response attached
- `insecure` on `UserAgent`, for TLS targets without a verified chain
- `CompatRequest` derives from `urllib.request.Request`, so cookie jars
work without workarounds
Changed
- Header field names and values are `str` instead of `bytes`
- Multi-value headers send one field line per element (RFC 9110)
- Redirect resolution follows RFC 3986; other schemes raise
`UnsupportedRedirectSchemeError`
- Retries after a transmission error are limited to idempotent methods
- Empty bodies on POST, PUT and PATCH send `Content-Length: 0`
- `check_hostname`, `cert_file` and `key_file` are deprecated in favour of
a custom SSL context; `check_hostname` now defaults to `True`
- Require `gevent>=25.9`
Fixed
- The request head is validated and encoded as latin-1, like
`http.client`, instead of allowing header smuggling
- `requests` and `urllib3` work again through the `httplib` shim
- Error statuses and redirects come through the httplib2 wrapper
- 307/308 redirects resend the body, and `Authorization` is dropped when
a redirect leaves the origin
- `URL.redirect` keeps the base path and query
- Requests retain semicolon path parameters, including after redirects
- `follow_redirects=False` is honoured by the `httpx.Client` shortcuts
Removed
- `Headers.iteroriginal()` and `Headers.iget()`; use `items()` and
`getlist()`
- The unmaintained `oauth2` extra
Fix PLIST after py-setuptools update; bump depends and revision
py-geventhttpclient: updated to 2.3.1 2.3.1 Fix locust backwards compatibility 2.3.0 Clean up readme and example code Fix for 179 and improved multipart form handling requests compatibility layer Fixed 186 and improved package build Add pre-commit hooks Add requests compatibility to README
py-geventhttpclient: updated to 2.0.11 2.0.11 Support Python 3.12
py-geventhttpclient: update to 1.5.1 adds support for brotli encoded content.
A high performance, concurrent HTTP client library for python using gevent. gevent.httplib support was removed in gevent 1.0, geventhttpclient now provides that missing functionality. geventhttpclient uses a fast http parser, written in C, originating from nginx, extracted and modified by Joyent. geventhttpclient has been specifically designed for high concurrency, streaming and support HTTP 1.1 persistent connections. More generally it is designed for efficiently pulling from REST APIs and streaming APIs like Twitter's. Safe SSL support is provided by default. geventhttpclient depends on the certifi CA Bundle. This is the same CA Bundle which ships with the Requests codebase, and is derived from Mozilla Firefox's canonical set.