METADATA 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. Metadata-Version: 2.2
  2. Name: hpack
  3. Version: 4.1.0
  4. Summary: Pure-Python HPACK header encoding
  5. Author-email: Cory Benfield <cory@lukasa.co.uk>
  6. Maintainer-email: Thomas Kriechbaumer <thomas@kriechbaumer.name>
  7. License: The MIT License (MIT)
  8. Copyright (c) 2014 Cory Benfield
  9. Permission is hereby granted, free of charge, to any person obtaining a copy
  10. of this software and associated documentation files (the "Software"), to deal
  11. in the Software without restriction, including without limitation the rights
  12. to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  13. copies of the Software, and to permit persons to whom the Software is
  14. furnished to do so, subject to the following conditions:
  15. The above copyright notice and this permission notice shall be included in
  16. all copies or substantial portions of the Software.
  17. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  18. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  19. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  20. AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  21. LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  22. OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  23. THE SOFTWARE.
  24. Project-URL: Homepage, https://github.com/python-hyper/hpack/
  25. Project-URL: Bug Reports, https://github.com/python-hyper/hpack/issues
  26. Project-URL: Source, https://github.com/python-hyper/hpack/
  27. Project-URL: Documentation, https://python-hyper.org/
  28. Classifier: Development Status :: 5 - Production/Stable
  29. Classifier: Intended Audience :: Developers
  30. Classifier: License :: OSI Approved :: MIT License
  31. Classifier: Programming Language :: Python
  32. Classifier: Programming Language :: Python :: 3 :: Only
  33. Classifier: Programming Language :: Python :: 3
  34. Classifier: Programming Language :: Python :: 3.9
  35. Classifier: Programming Language :: Python :: 3.10
  36. Classifier: Programming Language :: Python :: 3.11
  37. Classifier: Programming Language :: Python :: 3.12
  38. Classifier: Programming Language :: Python :: 3.13
  39. Classifier: Programming Language :: Python :: Implementation :: CPython
  40. Classifier: Programming Language :: Python :: Implementation :: PyPy
  41. Requires-Python: >=3.9
  42. Description-Content-Type: text/x-rst
  43. License-File: LICENSE
  44. ========================================
  45. hpack: HTTP/2 Header Encoding for Python
  46. ========================================
  47. .. image:: https://github.com/python-hyper/hpack/workflows/CI/badge.svg
  48. :target: https://github.com/python-hyper/hpack/actions
  49. :alt: Build Status
  50. .. image:: https://codecov.io/gh/python-hyper/hpack/branch/master/graph/badge.svg
  51. :target: https://codecov.io/gh/python-hyper/hpack
  52. :alt: Code Coverage
  53. .. image:: https://readthedocs.org/projects/hpack/badge/?version=latest
  54. :target: https://hpack.readthedocs.io/en/latest/
  55. :alt: Documentation Status
  56. .. image:: https://img.shields.io/badge/chat-join_now-brightgreen.svg
  57. :target: https://gitter.im/python-hyper/community
  58. :alt: Chat community
  59. .. image:: https://raw.github.com/python-hyper/documentation/master/source/logo/hyper-black-bg-white.png
  60. This module contains a pure-Python HTTP/2 header encoding (HPACK) logic for use
  61. in Python programs that implement HTTP/2.
  62. Documentation
  63. =============
  64. Documentation is available at https://hpack.readthedocs.io .
  65. Quickstart:
  66. .. code-block:: python
  67. from hpack import Encoder, Decoder
  68. headers = [
  69. (':method', 'GET'),
  70. (':path', '/jimiscool/'),
  71. ('X-Some-Header', 'some_value'),
  72. ]
  73. e = Encoder()
  74. encoded_bytes = e.encode(headers)
  75. d = Decoder()
  76. decoded_headers = d.decode(encoded_bytes)
  77. Contributing
  78. ============
  79. ``hpack`` welcomes contributions from anyone! Unlike many other projects we are
  80. happy to accept cosmetic contributions and small contributions, in addition to
  81. large feature requests and changes.
  82. Before you contribute (either by opening an issue or filing a pull request),
  83. please `read the contribution guidelines`_.
  84. .. _read the contribution guidelines: http://hyper.readthedocs.org/en/development/contributing.html
  85. License
  86. =======
  87. ``hpack`` is made available under the MIT License. For more details, see the
  88. ``LICENSE`` file in the repository.
  89. Authors
  90. =======
  91. ``hpack`` is maintained by Cory Benfield, with contributions from others. For
  92. more details about the contributors, please see ``CONTRIBUTORS.rst``.