uplink-httpx
Uplink-Httpx is an asynchronous HTTP client based on HTTPX for the awesome Uplink REST library.
Use it like any other HTTP client for uplink.
import asyncio
import uplink
from uplink_httpx import HttpxClient
@uplink.headers({"Accept": "application/json"})
@uplink.returns.json()
class HttpBin(uplink.Consumer):
@uplink.get("get")
def get(self):
pass
async def demo():
httpbin = HttpBin(base_url="https://httpbin.org", client=HttpxClient())
resp = await httpbin.get()
print(resp)
# {'args': {}, 'headers': {'Accept': 'application/json', 'Accept-Encoding': 'gzip, deflate', 'Host': 'httpbin.org', 'User-Agent': 'python-httpx/0.9.5'}, ... 'url': 'https://httpbin.org/get'}
loop = asyncio.get_event_loop()
loop.run_until_complete(demo())
Features
HTTPX builds on the well-established usability of requests, and gives you:
- A requests-compatible API wherever possible. No issues between async and sync clients anymore.
- HTTP/2 and HTTP/1.1 support.
- Strict timeouts everywhere.
Metadata
Release files for uplink-httpx 2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| uplink-httpx-2.1.tar.gz | 4.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| uplink_httpx-2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.5 kB
Release files / uplink-httpx-2.1.tar.gz
| Download URL | uplink-httpx-2.1.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a63769902080f73b8a0c7baca512e355576e1e002cd4239177879743c1f2af64
|
|
BLAKE2b-256 checksum How to use checksums |
a35bf25ef1be02433a9caadda49095b4815e9b26c101c917a6954a1fd2139f84
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.9.19
|
Release files / uplink_httpx-2.1-py3-none-any.whl
| Download URL | uplink_httpx-2.1-py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0c0241c1041501868a439b127e1b9dc5c54842324c42680c1a7fe5d3ba7b6404
|
|
BLAKE2b-256 checksum How to use checksums |
d00f12613d79bb1fbe7a93c1d605d6822d13d26abf065cc5b42631ce30494b1f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.9.19
|
Security for uplink-httpx 2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.