This module contains a pure-Python HTTP/2 header encoding (HPACK) logic for use in Python programs that implement HTTP/2.
Documentation
Documentation is available at https://hpack.readthedocs.io .
Quickstart:
from hpack import Encoder, Decoder
headers = [
(':method', 'GET'),
(':path', '/jimiscool/'),
('X-Some-Header', 'some_value'),
]
e = Encoder()
encoded_bytes = e.encode(headers)
d = Decoder()
decoded_headers = d.decode(encoded_bytes)
Contributing
hpack welcomes contributions from anyone! Unlike many other projects we are happy to accept cosmetic contributions and small contributions, in addition to large feature requests and changes.
Before you contribute (either by opening an issue or filing a pull request), please read the contribution guidelines.
License
hpack is made available under the MIT License. For more details, see the LICENSE file in the repository.
Release files for hpack 4.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| hpack-4.2.0.tar.gz | 51.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hpack-4.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 85.5 kB
Release files / hpack-4.2.0.tar.gz
| Download URL | hpack-4.2.0.tar.gz |
|---|---|
| Size | 51.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0895cfa3b5531fc65fe439c05eb65144f123bf7a394fcaa56aa423548d8e45c0
|
|
BLAKE2b-256 checksum How to use checksums |
265bfcabf6028144a8723726318b07a32c2f3314acdff6265743cf08a344b18e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.23 {"installer":{"name":"uv","version":"0.11.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / hpack-4.2.0-py3-none-any.whl
| Download URL | hpack-4.2.0-py3-none-any.whl |
|---|---|
| Size | 34.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
858ac0b02280fa582b5080d68db0899c62a80375e0e5413a74970c5e518b6986
|
|
BLAKE2b-256 checksum How to use checksums |
71b44a9fcfb2aef6ba44d9073ecd301443aa00b3dac95de5619f2a7de7ec8a91
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.23 {"installer":{"name":"uv","version":"0.11.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|