h2


Nameh2 JSON
Version 4.1.0 PyPI version JSON
download
home_pagehttps://github.com/python-hyper/h2
SummaryHTTP/2 State-Machine based protocol implementation
upload_time2021-10-05 18:27:47
maintainer
docs_urlNone
authorCory Benfield
requires_python>=3.6.1
licenseMIT License
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            =========================
h2: HTTP/2 Protocol Stack
=========================

.. image:: https://github.com/python-hyper/h2/workflows/CI/badge.svg
    :target: https://github.com/python-hyper/h2/actions
    :alt: Build Status
.. image:: https://codecov.io/gh/python-hyper/h2/branch/master/graph/badge.svg
    :target: https://codecov.io/gh/python-hyper/h2
    :alt: Code Coverage
.. image:: https://readthedocs.org/projects/h2/badge/?version=latest
    :target: https://h2.readthedocs.io/en/latest/
    :alt: Documentation Status
.. image:: https://img.shields.io/badge/chat-join_now-brightgreen.svg
    :target: https://gitter.im/python-hyper/community
    :alt: Chat community

.. image:: https://raw.github.com/python-hyper/documentation/master/source/logo/hyper-black-bg-white.png

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:

.. code-block:: python

    import h2.connection
    import h2.config

    config = h2.config.H2Configuration()
    conn = h2.connection.H2Connection(config=config)
    conn.send_headers(stream_id=stream_id, headers=headers)
    conn.send_data(stream_id, data)
    socket.sendall(conn.data_to_send())
    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:

.. code-block:: console

    $ python -m pip install h2

Documentation
=============

Documentation is available at https://h2.readthedocs.io .

Contributing
============

``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`_.

.. _read the contribution guidelines: http://python-hyper.org/en/latest/contributing.html

License
=======

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

Authors
=======

``h2`` was authored by Cory Benfield and is maintained
by the members of `python-hyper <https://github.com/orgs/python-hyper/people>`_.



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/python-hyper/h2",
    "name": "h2",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6.1",
    "maintainer_email": "",
    "keywords": "",
    "author": "Cory Benfield",
    "author_email": "cory@lukasa.co.uk",
    "download_url": "https://files.pythonhosted.org/packages/2a/32/fec683ddd10629ea4ea46d206752a95a2d8a48c22521edd70b142488efe1/h2-4.1.0.tar.gz",
    "platform": "",
    "description": "=========================\nh2: HTTP/2 Protocol Stack\n=========================\n\n.. image:: https://github.com/python-hyper/h2/workflows/CI/badge.svg\n    :target: https://github.com/python-hyper/h2/actions\n    :alt: Build Status\n.. image:: https://codecov.io/gh/python-hyper/h2/branch/master/graph/badge.svg\n    :target: https://codecov.io/gh/python-hyper/h2\n    :alt: Code Coverage\n.. image:: https://readthedocs.org/projects/h2/badge/?version=latest\n    :target: https://h2.readthedocs.io/en/latest/\n    :alt: Documentation Status\n.. image:: https://img.shields.io/badge/chat-join_now-brightgreen.svg\n    :target: https://gitter.im/python-hyper/community\n    :alt: Chat community\n\n.. image:: https://raw.github.com/python-hyper/documentation/master/source/logo/hyper-black-bg-white.png\n\nThis repository contains a pure-Python implementation of a HTTP/2 protocol\nstack. It's written from the ground up to be embeddable in whatever program you\nchoose to use, ensuring that you can speak HTTP/2 regardless of your\nprogramming paradigm.\n\nYou use it like this:\n\n.. code-block:: python\n\n    import h2.connection\n    import h2.config\n\n    config = h2.config.H2Configuration()\n    conn = h2.connection.H2Connection(config=config)\n    conn.send_headers(stream_id=stream_id, headers=headers)\n    conn.send_data(stream_id, data)\n    socket.sendall(conn.data_to_send())\n    events = conn.receive_data(socket_data)\n\nThis repository does not provide a parsing layer, a network layer, or any rules\nabout concurrency. Instead, it's a purely in-memory solution, defined in terms\nof data actions and HTTP/2 frames. This is one building block of a full Python\nHTTP implementation.\n\nTo install it, just run:\n\n.. code-block:: console\n\n    $ python -m pip install h2\n\nDocumentation\n=============\n\nDocumentation is available at https://h2.readthedocs.io .\n\nContributing\n============\n\n``h2`` welcomes contributions from anyone! Unlike many other projects we\nare happy to accept cosmetic contributions and small contributions, in addition\nto large feature requests and changes.\n\nBefore you contribute (either by opening an issue or filing a pull request),\nplease `read the contribution guidelines`_.\n\n.. _read the contribution guidelines: http://python-hyper.org/en/latest/contributing.html\n\nLicense\n=======\n\n``h2`` is made available under the MIT License. For more details, see the\n``LICENSE`` file in the repository.\n\nAuthors\n=======\n\n``h2`` was authored by Cory Benfield and is maintained\nby the members of `python-hyper <https://github.com/orgs/python-hyper/people>`_.\n\n\n",
    "bugtrack_url": null,
    "license": "MIT License",
    "summary": "HTTP/2 State-Machine based protocol implementation",
    "version": "4.1.0",
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "5a1a2fda9385d17446fac8eee2f7e66d",
                "sha256": "03a46bcf682256c95b5fd9e9a99c1323584c3eec6440d379b9903d709476bc6d"
            },
            "downloads": -1,
            "filename": "h2-4.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "5a1a2fda9385d17446fac8eee2f7e66d",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6.1",
            "size": 57488,
            "upload_time": "2021-10-05T18:27:39",
            "upload_time_iso_8601": "2021-10-05T18:27:39.977236Z",
            "url": "https://files.pythonhosted.org/packages/2a/e5/db6d438da759efbb488c4f3fbdab7764492ff3c3f953132efa6b9f0e9e53/h2-4.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "4274f9619c0a43bb4ae01b6b02bf0c99",
                "sha256": "a83aca08fbe7aacb79fec788c9c0bac936343560ed9ec18b82a13a12c28d2abb"
            },
            "downloads": -1,
            "filename": "h2-4.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "4274f9619c0a43bb4ae01b6b02bf0c99",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6.1",
            "size": 2145593,
            "upload_time": "2021-10-05T18:27:47",
            "upload_time_iso_8601": "2021-10-05T18:27:47.180926Z",
            "url": "https://files.pythonhosted.org/packages/2a/32/fec683ddd10629ea4ea46d206752a95a2d8a48c22521edd70b142488efe1/h2-4.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2021-10-05 18:27:47",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "python-hyper",
    "github_project": "h2",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "tox": true,
    "lcname": "h2"
}
        
Elapsed time: 0.08022s