gunicorn_thrift:节俭的应用程序和gunicorn的工作者!

时间:2021-02-19 17:43:41
【文件属性】:
文件名称:gunicorn_thrift:节俭的应用程序和gunicorn的工作者!
文件大小:27KB
文件格式:ZIP
更新时间:2021-02-19 17:43:41
python thrift thrift-server gevent gunicorn-thrift gunicorn_thrift 节俭的应用程序和古尼康的工人! 因此,一个多进程的python节俭服务器! 为什么? 正常重新加载/关闭。 在运行时管理工作人员编号。 以及其他所有gunicorn提供的。 支持平台 Python 2.7,所有辅助类 Python 3.4 +, thriftpy_sync和thriftpy_gevent工作者类(Python 3不支持使用Thrift工具包生成的代码) 例子 thrift 生成节俭文件: % thrift --out tests/pingpong_sdk --gen py:new_style,utf8strings tests/pingpong.thrift 写节俭的应用程序。 #! /usr/bin/env python # tests/app.py # -*- coding: utf-8 -*- from pingpong
【文件预览】:
gunicorn_thrift-master
----MANIFEST.in(210B)
----requirements_py27.txt(107B)
----gunicorn_thrift()
--------gevent_worker.py(2KB)
--------config.py(4KB)
--------thriftapp.py(2KB)
--------utils.py(1010B)
--------thriftpy_sync_worker.py(3KB)
--------thriftpy_gevent_worker.py(8KB)
--------__init__.py(23B)
--------six.py(1KB)
--------sync_worker.py(2KB)
----.travis.yml(465B)
----tox.ini(296B)
----LICENSE(1KB)
----setup.py(3KB)
----README.md(4KB)
----test_requirements_py27.txt(61B)
----tests()
--------gunicorn_timeout_config.py(77B)
--------test_sync_worker.py(2KB)
--------pingpong.thrift(223B)
--------pingpong_sdk()
--------thrift_app.py(336B)
--------__init__.py(213B)
--------test_thriftpy_sync_worker.py(1KB)
--------six.py(178B)
--------thriftpy_app.py(543B)
--------test_thriftpy_gevent_worker.py(1KB)
--------conftest.py(8KB)
--------test_gevent_worker.py(2KB)
--------gunicorn_config.py(181B)
----.gitignore(743B)
----test_requirements_py3x.txt(49B)
----.coveragerc(49B)
----requirements_py3x.txt(72B)
----CHANGELOG(88B)

网友评论