Metadata-Version: 2.5
Name: httpnex
Version: 0.1.1
Summary: httpnex - a fork of HTTPX, the next generation HTTP client.
Project-URL: Homepage, https://pypi.org/project/httpnex/
Project-URL: Upstream (HTTPX), https://github.com/encode/httpx
Author: httpnex contributors
License-Expression: BSD-3-Clause
License-File: LICENSE.md
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Web Environment
Classifier: Framework :: AsyncIO
Classifier: Framework :: Trio
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Internet :: WWW/HTTP
Requires-Python: >=3.10
Requires-Dist: anyio
Requires-Dist: certifi
Requires-Dist: httpcore==1.*
Requires-Dist: httpx
Requires-Dist: idna
Provides-Extra: brotli
Requires-Dist: brotli; (platform_python_implementation == 'CPython') and extra == 'brotli'
Requires-Dist: brotlicffi; (platform_python_implementation != 'CPython') and extra == 'brotli'
Provides-Extra: cli
Requires-Dist: click==8.*; extra == 'cli'
Requires-Dist: pygments==2.*; extra == 'cli'
Requires-Dist: rich<15,>=10; extra == 'cli'
Provides-Extra: http2
Requires-Dist: h2<5,>=3; extra == 'http2'
Provides-Extra: socks
Requires-Dist: socksio==1.*; extra == 'socks'
Provides-Extra: zstd
Requires-Dist: zstandard>=0.18.0; extra == 'zstd'
Description-Content-Type: text/markdown

# httpnex

**httpnex** is a fork of [HTTPX](https://github.com/encode/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

```shell
pip install httpnex
```

Optional extras:

```shell
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

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

Async:

```python
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]`):

```shell
httpnex https://www.example.org/
```

## Migrating from HTTPX

The API is the same as HTTPX вЂ” just change the import:

```python
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.

## License

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



