Registry / http-networking / hyper
library0.7.0pypypi✓ verified 21d ago

Hyper is a Python library designed to provide an HTTP/2 client. While it aimed to offer benefits like improved speed and lower bandwidth usage, the project is no longer maintained. The current and final version is 0.7.0, and there is no ongoing release cadence.

pip install hyper
INSTALL
IMPORT
SIG · HYPER
H
hyper
http-networkingpythonv0.7.0
Install
1.8s avg
Import
105ms
Disk
18MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.7.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.022s · 20.1MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.8s · import 0.020s · 21MB
18MB installed
● package 18MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

HTTPConnection
from hyper import HTTPConnection
from hyper import HTTPConnection

This example demonstrates how to make a basic GET request to an HTTP/2 testing service using `hyper.HTTPConnection`. The API is designed to be similar to Python's built-in `http.client`.

from hyper import HTTPConnection conn = HTTPConnection('http2bin.org:443') conn.request('GET', '/get') resp = conn.get_response() print(resp.read().decode('utf-8'))
Debug
Known issues
breakingThe `hyper` project is officially unmaintained. No further updates will be published, and potential security issues will not be addressed. It is strongly recommended to use actively maintained alternatives like `HTTPX` for new projects.
fix
Migrate to an actively maintained HTTP client library, such as `HTTPX` or `requests`.
affects: 0.7.0 and earlier
gotchaThe library was considered 'early alpha' even at version 0.7.0, with a warning that users would encounter bugs and 'many rough edges'. Expect unstable behavior and potential issues.
fix
No direct fix other than moving to a more stable and maintained library. If continuing to use `hyper`, proceed with extreme caution and thorough testing.
affects: All versions (0.x.x)
breakingVersion 0.6.0 significantly changed the HTTP/2 state machine logic by replacing it with `hyper-h2`. This 'dramatically changed the behaviour of the library' and was noted to likely introduce new bugs.
fix
If upgrading from versions prior to 0.6.0, extensive re-testing is necessary. Given the unmaintained status, downgrading is not recommended as a long-term solution. Migration to a new library is the best approach.
affects: 0.6.0 onwards
gotchaFor Python versions older than 3.4 (or 2.7.9), `hyper` relies on `PyOpenSSL` for modern TLS support. Installing `PyOpenSSL` may require building it against OpenSSL 1.0.1 or later, which can be non-trivial. Follow `cryptography` project's OpenSSL installation instructions, replacing references to `cryptography` with `hyper`.
fix
Ensure `PyOpenSSL` is correctly installed and linked to an appropriate OpenSSL version, or preferably, use Python 3.4+ where TLS support is automatically provided by the standard library.
affects: <3.4 and <2.7.9
Upgrade
Version history
0.7.0latest on PyPI · released Sep 27, 2016
Audit
Dependencies
PyOpenSSLrequiredRequired for modern TLS support on Python versions older than 3.4 (or 2.7.9).
Agent activity
25 hits · last 30 days
node
22
Resources
hyper — pip install hyper · libregistry