Skip to main content

HTTP/2 State-Machine based protocol implementation

Project description

https://raw.github.com/Lukasa/hyper/development/docs/source/images/hyper.png https://travis-ci.org/python-hyper/hyper-h2.png?branch=master

This repository contains a pure-Python implementation of a HTTP/2 protocol stack. It’s written from the ground up to be embeddable in whatever program you choose to use, ensuring that you can speak HTTP/2 regardless of your programming paradigm.

You use it like this:

import h2.connection

conn = h2.connection.Connection()
frames, stream_id = conn.send_headers(headers)
data_frames = conn.send_data(stream_id, data)
events = conn.receive_data(socket_data)

This repository does not provide a parsing layer, a network layer, or any rules about concurrency. Instead, it’s a purely in-memory solution, defined in terms of data actions and HTTP/2 frames. This is one building block of a full Python HTTP implementation.

To install it, just run:

pip install h2

Contributing

hyper-h2 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

hyper-h2 is made available under the MIT License. For more details, see the LICENSE file in the repository.

Authors

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

Release History

1.0.0 (2015-10-15)

  • First production release!

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

h2-1.0.0.tar.gz (30.2 kB view details)

Uploaded Source

Built Distribution

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

h2-1.0.0-py2.py3-none-any.whl (22.3 kB view details)

Uploaded Python 2Python 3

File details

Details for the file h2-1.0.0.tar.gz.

File metadata

  • Download URL: h2-1.0.0.tar.gz
  • Upload date:
  • Size: 30.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for h2-1.0.0.tar.gz
Algorithm Hash digest
SHA256 ab2c7f8c340922bc4521b860dccc0c5aaebba25a1f4dd541e73ff84e7b2e1c9e
MD5 52e6590c0794b980b978af21e734f950
BLAKE2b-256 957efc3d5fd40bae0ef7b068555eff5b8e043530ea995c234bd8041921daf774

See more details on using hashes here.

File details

Details for the file h2-1.0.0-py2.py3-none-any.whl.

File metadata

  • Download URL: h2-1.0.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 22.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for h2-1.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b71fd7132990c14332a568f1dbe03cfc02d5309afa286e8a7dba9105910ea3d5
MD5 1590418cf824e1d0d8e01e45e334f955
BLAKE2b-256 9e887d732fc4c9f9b01e9267570540dfd5369147b8af9d722849b92dc3991a1d

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