./www/py-httpx, The next generation HTTP client

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 0.12.1, Package name: py37-httpx-0.12.1, Maintainer: pkgsrc-users

HTTPX is a fully featured HTTP client for Python 3, which provides sync and
async APIs, and support for both HTTP/1.1 and HTTP/2.


Required to run:
[devel/py-setuptools] [converters/py-chardet] [www/py-idna] [security/py-certifi] [www/py-h2] [www/py-h11] [lang/python37] [misc/py-sniffio] [www/py-rfc3986] [www/py-hstspreload]

Required to build:
[pkgtools/cwrappers]

Master sites:

SHA1: 04a592716343537a70e8472a9b738eef09a785d2
RMD160: 2f40a9a603160d705a29ae0d0de52234506a0dca
Filesize: 65.565 KB

Version history: (Expand)


CVS history: (Expand)


   2020-03-20 08:43:06 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-httpx: updated to 0.12.1

0.12.1:

Fixed
* Resolved packaging issue, where additional files were being included.
   2020-03-10 08:36:17 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-httpx: updated to 0.12.0

0.12.0:

The 0.12 release tightens up the API expectations for httpx by switching to \ 
private module names to enforce better clarity around public API.

All imports of httpx should import from the top-level package only, such as from \ 
httpx import Request, rather than importing from privately namespaced modules \ 
such as from httpx._models import Request.

Added
Support making response body available to auth classes with .requires_response_body.
Export NetworkError exception.
Add support for NO_PROXY environment variable.

Changed
Switched to private module names.
Drop redirect looping detection and the RedirectLoop exception, instead using \ 
TooManyRedirects.
Drop backend=... parameter on AsyncClient, in favour of always autodetecting \ 
trio/asyncio.

Fixed
Support basic auth credentials in proxy URLs.
Fix httpx.Proxy(url, mode="FORWARD_ONLY") configuration.
Fallback to setting headers as UTF-8 if no encoding is specified.
Close proxy dispatches classes on client close.
Support custom cert parameters even if verify=False.
Don't support invalid dict-of-dicts form data in data=....
   2020-01-20 12:50:48 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-httpx: updated to 0.11.1

0.11.1:
Fixed
* Fixed usage of `proxies=...` on `Client()`.
* Support both `zlib` and `deflate` style encodings on `Content-Encoding: deflate`.
* Fix for streaming a redirect response body with `allow_redirects=False`.
* Handle redirect with malformed Location headers missing host.
   2020-01-14 17:10:53 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-httpx: updated to 0.11.0

0.11.0:

The 0.11 release reintroduces our sync support, so that `httpx` now supports \ 
both a standard thread-concurrency API, and an async API.

Existing async `httpx` users that are upgrading to 0.11 should ensure that:

* Async codebases should always use a client instance to make requests, instead \ 
of the top-level API.
* The async client is named as `httpx.AsyncClient()`, instead of `httpx.Client()`.
* When instantiating proxy configurations use the `httpx.Proxy()` class, instead \ 
of the previous `httpx.HTTPProxy()`. This new configuration class works for \ 
configuring both sync and async clients.

We believe the API is now pretty much stable, and are aiming for a 1.0 release \ 
sometime on or before April 2020.

Changed
- Top level API such as `httpx.get(url, ...)`, `httpx.post(url, ...)`, \ 
`httpx.request(method, url, ...)` becomes synchronous.
- Added `httpx.Client()` for synchronous clients, with `httpx.AsyncClient` being \ 
used for async clients.
- Switched to `proxies=httpx.Proxy(...)` for proxy configuration.
- Network connection errors are wrapped in `httpx.NetworkError`, rather than \ 
exposing lower-level exception types directly.

Removed
- The `request.url.origin` property and `httpx.Origin` class are no longer available.
- The per-request `cert`, `verify`, and `trust_env` arguments are escalated from \ 
raising errors if used, to no longer being available. These arguments should be \ 
used on a per-client instance instead, or in the top-level API.
- The `stream` argument has escalated from raising an error when used, to no \ 
longer being available. Use the `client.stream(...)` or `httpx.stream()` \ 
streaming API instead.

Fixed
- Redirect loop detection matches against `(method, url)` rather than `url`.
   2020-01-08 21:54:27 by Adam Ciarcinski | Files touched by this commit (4)
Log message:
py-httpx: added version 0.10.1

HTTPX is a fully featured HTTP client for Python 3, which provides sync and
async APIs, and support for both HTTP/1.1 and HTTP/2.