• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

docs/H19-Sep-2020-2,0711,504

examples/H19-Sep-2020-2,8592,112

src/H19-Sep-2020-5,8914,314

test/H19-Sep-2020-10,1528,262

visualizer/H19-Sep-2020-277220

CHANGELOG.rstH A D19-Sep-202028.8 KiB774603

LICENSEH A D15-Mar-20201.1 KiB2217

MANIFEST.inH A D02-Aug-2020256 109

MakefileH A D11-Sep-202068 64

PKG-INFOH A D19-Sep-20203.9 KiB9976

README.rstH A D15-Aug-20202.5 KiB7755

setup.cfgH A D19-Sep-2020348 2620

setup.pyH A D06-Sep-20201.7 KiB5747

tox.iniH A D19-Sep-20201.3 KiB6960

README.rst

1===============================
2hyper-h2: HTTP/2 Protocol Stack
3===============================
4
5.. image:: https://github.com/python-hyper/hyper-h2/workflows/CI/badge.svg
6    :target: https://github.com/python-hyper/hyper-h2/actions
7    :alt: Build Status
8.. image:: https://codecov.io/gh/python-hyper/hyper-h2/branch/master/graph/badge.svg
9    :target: https://codecov.io/gh/python-hyper/hyper-h2
10    :alt: Code Coverage
11.. image:: https://readthedocs.org/projects/hyper-h2/badge/?version=latest
12    :target: https://hyper-h2.readthedocs.io/en/latest/
13    :alt: Documentation Status
14.. image:: https://img.shields.io/badge/chat-join_now-brightgreen.svg
15    :target: https://gitter.im/python-hyper/community
16    :alt: Chat community
17
18.. image:: https://raw.github.com/Lukasa/hyper/development/docs/source/images/hyper.png
19
20This repository contains a pure-Python implementation of a HTTP/2 protocol
21stack. It's written from the ground up to be embeddable in whatever program you
22choose to use, ensuring that you can speak HTTP/2 regardless of your
23programming paradigm.
24
25You use it like this:
26
27.. code-block:: python
28
29    import h2.connection
30    import h2.config
31
32    config = h2.config.H2Configuration()
33    conn = h2.connection.H2Connection(config=config)
34    conn.send_headers(stream_id=stream_id, headers=headers)
35    conn.send_data(stream_id, data)
36    socket.sendall(conn.data_to_send())
37    events = conn.receive_data(socket_data)
38
39This repository does not provide a parsing layer, a network layer, or any rules
40about concurrency. Instead, it's a purely in-memory solution, defined in terms
41of data actions and HTTP/2 frames. This is one building block of a full Python
42HTTP implementation.
43
44To install it, just run:
45
46.. code-block:: console
47
48    $ pip install h2
49
50Documentation
51=============
52
53Documentation is available at https://hyper-h2.readthedocs.io/ .
54
55Contributing
56============
57
58``hyper-h2`` welcomes contributions from anyone! Unlike many other projects we
59are happy to accept cosmetic contributions and small contributions, in addition
60to large feature requests and changes.
61
62Before you contribute (either by opening an issue or filing a pull request),
63please `read the contribution guidelines`_.
64
65.. _read the contribution guidelines: http://python-hyper.org/en/latest/contributing.html
66
67License
68=======
69
70``hyper-h2`` is made available under the MIT License. For more details, see the
71``LICENSE`` file in the repository.
72
73Authors
74=======
75
76``hyper-h2`` is maintained by Cory Benfield, with contributions from others.
77