为将来构建的基于协同路由的h2 web后端框架。
hyper2web的Python项目详细描述
===
hyper2web
==
super fast http2 framework for progressive web application
installation
代码块::console
$由于已知问题,请手动安装curio
$pip install git+https://github.com/dabeaz/curio.git
$pip install hyper2web
这是安装hyper2web的首选方法,因为它将始终安装最新的稳定版本。
这个“python安装指南”可以指导您完成整个过程。_ pip:https://pip.pypa.io
_Python installation guide: http://docs.python-guide.org/en/latest/starting/installation/
Dependency
##########
Python3.6
h2
curio
Quick Start
###########
Assuming you have a directory structure like::
your project/
--public/
--index.html
--index.js
…
--app.py
代码块:来自hyper2web导入应用程序的python
响应:
将接收到的数据发送回客户端
等待响应。发送(request.stream.data)
app.post('name',post\u echo)
app.up()
代码块:console
$python app.py
就这样!
如果您只想提供静态文件,它只有两行!
…代码块::来自hyper2web import app的python
app.app(port=5000.up()
_ hyper2web.readthedocs.io:http://hyper2web.readthedocs.io
代码块::console
$python-m unittest discover test
********************
2017年4月23日,星期天,我醒来觉得无聊,决定创建自己的http2网络框架。
对我来说,这将是一个超级学习和有趣的项目。
===
history
==
>0.0.0(2017-06-08)
----
*PYPI上的第一个版本。
hyper2web
==
super fast http2 framework for progressive web application
installation
代码块::console
$由于已知问题,请手动安装curio
$pip install git+https://github.com/dabeaz/curio.git
$pip install hyper2web
这是安装hyper2web的首选方法,因为它将始终安装最新的稳定版本。
这个“python安装指南”可以指导您完成整个过程。_ pip:https://pip.pypa.io
_Python installation guide: http://docs.python-guide.org/en/latest/starting/installation/
Dependency
##########
Python3.6
h2
curio
Quick Start
###########
Assuming you have a directory structure like::
your project/
--public/
--index.html
--index.js
…
--app.py
代码块:来自hyper2web导入应用程序的python
响应:
将接收到的数据发送回客户端
等待响应。发送(request.stream.data)
app.up()
代码块:console
$python app.py
就这样!
如果您只想提供静态文件,它只有两行!
…代码块::来自hyper2web import app的python
app.app(port=5000.up()
代码块::console
$python-m unittest discover test
********************
2017年4月23日,星期天,我醒来觉得无聊,决定创建自己的http2网络框架。
对我来说,这将是一个超级学习和有趣的项目。
===
history
==
>0.0.0(2017-06-08)
----
*PYPI上的第一个版本。