pynghttp2:基于ctypes的libnghttp2的Asyncio Python绑定

时间:2021-05-15 15:37:13
【文件属性】:
文件名称:pynghttp2:基于ctypes的libnghttp2的Asyncio Python绑定
文件大小:35KB
文件格式:ZIP
更新时间:2021-05-15 15:37:13
Python pynghttp2 pynghttp2是基于库的ctypes的简单异步Python绑定。 您唯一需要的是系统上的libnghttp2版本。 在基于Debian的系统上,您可以简单地通过apt安装nghttp2: apt-get install libnghttp2-14 该项目是根据项目中HTTP / 2协议网关的学生工作而创建的,该项目是耐延迟网络(DTN)协议的实现。 安装 pip install pynghttp2 例子 高级API from pynghttp2 import http2 # GET request resp = await http2 . get ( 'http://localhost:64602/ping' ) content = await resp . text () assert content == 'pong' # POST request
【文件预览】:
pynghttp2-master
----README.rst(3KB)
----LICENSE.txt(1KB)
----pynghttp2()
--------sessions.py(20KB)
--------nghttp2.py(24KB)
--------http2.py(1KB)
--------__init__.py(124B)
--------bindings.py(7KB)
--------typedefs.py(23KB)
--------streams.py(7KB)
--------messages.py(8KB)
----.travis.yml(3KB)
----tox.ini(525B)
----pytest.ini(40B)
----setup.py(2KB)
----docs()
--------conf.py(5KB)
--------requirements.txt(45B)
--------quickstart.rst(32B)
--------index.rst(639B)
--------Makefile(605B)
--------api.rst(913B)
----tests()
--------test_reader.py(623B)
--------test_sessions.py(7KB)
--------test_http2.py(2KB)
--------conftest.py(3KB)
----.readthedocs.yml(51B)
----.gitignore(77B)

网友评论