5

Python3.5 版本应该如何快速搭建 web 服务?

 3 years ago
source link: https://www.v2ex.com/t/797020
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

V2EX  ›  Python

Python3.5 版本应该如何快速搭建 web 服务?

  Richard14 · 2 天前 · 1617 次点击

如题,生产环境有一套嵌入式 python,基于 3.5 版本不能修改。想要通过 web 服务进行控制,而且最好不依赖第三方库,有什么代码可以快速实现一个基础的基于 http (或者 tcp )进行远程调用的服务吗?

第 1 条附言  ·  1 天前

贴个条更新一下目前的信息:

1、aiohttp可以在3.5运行,不好用

2、bottle我试了,但是因为内核线程管理策略的原因,平台导致效率应该会比异步低很多,不过应该也堪用。bottle的问题是,本身没法支持ssl协议,http在大量通信的情况下可能出现错误。。。试了试安装旧版本的werkzeug和openssl这些,openssl我没有安装成功


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK