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.1.0.tar.gz (51.3 kB view details)

Uploaded Source

Built Distribution

hpack-4.1.0-py3-none-any.whl (34.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hpack-4.1.0.tar.gz
  • Upload date:
  • Size: 51.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.21

File hashes

Hashes for hpack-4.1.0.tar.gz
Algorithm Hash digest
SHA256 ec5eca154f7056aa06f196a557655c5b009b382873ac8d1e66e79e87535f1dca
MD5 16e7423c5b5078c1997fa3eedd2e5935
BLAKE2b-256 2c4871de9ed269fdae9c8057e5a4c0aa7402e8bb16f2c6e90b3aa53327b113f8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hpack-4.1.0-py3-none-any.whl
  • Upload date:
  • Size: 34.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.21

File hashes

Hashes for hpack-4.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 157ac792668d995c657d93111f46b4535ed114f0c9c8d672271bbec7eae1b496
MD5 fbd10efbd10112bfe63d12ddd74cb250
BLAKE2b-256 07c680c95b1b2b94682a72cbdbfb85b81ae2daffa4291fbfa1b1464502ede10d

See more details on using hashes here.

Supported by

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