Skip to main content

Pure-Python HPACK header encoding

Project description

Build Status Code Coverage Documentation Status Chat community https://raw.github.com/python-hyper/documentation/master/source/logo/hyper-black-bg-white.png

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.

Authors

hpack is maintained by Cory Benfield, with contributions from others. For more details about the contributors, please see CONTRIBUTORS.rst.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hpack-4.2.0.tar.gz (51.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hpack-4.2.0-py3-none-any.whl (34.2 kB view details)

Uploaded Python 3

File details

Details for the file hpack-4.2.0.tar.gz.

File metadata

  • Download URL: hpack-4.2.0.tar.gz
  • Upload date:
  • Size: 51.3 kB
  • Tags: Source
  • Uploaded using 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}

File hashes

Hashes for hpack-4.2.0.tar.gz
Algorithm Hash digest
SHA256 0895cfa3b5531fc65fe439c05eb65144f123bf7a394fcaa56aa423548d8e45c0
MD5 b9e407d481be0790533689779b6b86ca
BLAKE2b-256 265bfcabf6028144a8723726318b07a32c2f3314acdff6265743cf08a344b18e

See more details on using hashes here.

File details

Details for the file hpack-4.2.0-py3-none-any.whl.

File metadata

  • Download URL: hpack-4.2.0-py3-none-any.whl
  • Upload date:
  • Size: 34.2 kB
  • Tags: Python 3
  • Uploaded using 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}

File hashes

Hashes for hpack-4.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 858ac0b02280fa582b5080d68db0899c62a80375e0e5413a74970c5e518b6986
MD5 bcb7631568f74d61ad6129087e8ec291
BLAKE2b-256 71b44a9fcfb2aef6ba44d9073ecd301443aa00b3dac95de5619f2a7de7ec8a91

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page