Skip to content

dalf/hpack_nghttp2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Experimental Python hpack implementation using nghttp2.

The API is nearly compatible with hpack. (httpx runs without issues).

It requires Cython because nghttp2pyx requires some updates:

  • to raise hpack.exceptions.* instead of a generic Exception
  • to handle the sentive flag

About speed:

  • the encoder is about 20 times faster
  • the decoder is about 10 times faster

How to install

python -m pip install git+https://github.com/dalf/hpack_nghttp2.git

Warning: it will replace the existing the hpack module

Not implemented

  • hpack.exceptions.InvalidTableIndex : never raised
  • hpack.exceptions.InvalidTableSizeError : never raised

About

Python hpack package using nghttp2

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages