ServiceBoot云原生微服务引擎
ServiceBoot是基于Tornado开发的开源微服务引擎(Web框架),可用于将普通Python程序封装成为可提供高并发函数式HTTP访问的云原生微服务。
ServiceBoot实现了对高并发HTTP API调用的函数化和异步化封装。开发者直接以普通Python函数的形式来编程API接口,而不需要特意设计和指定每个API对应的URL端口,也不需要掌握和使用Python和Tornado中晦涩难懂的异步编程原理和语法,即可达到高效并发处理的性能和效果,从而大大降低微服务应用的学习门槛和开发难度,提高云原生微服务应用的开发效率和运行性能。
ServiceBoot目前可提供的API接口类型和功能如下:
- 普通RESTful API(面向JSON数据格式)。
- 二进制字节流数据API。
- 文件上传API。
- 可视化Web页面访问API。
- Special API。
- WebSocket实时通信API。
在启动ServiceBoot服务时,还可根据配置启动开发者自定义的Python前端服务,例如: Gradio, Streamlit等。
开源主页
依赖包主页
依赖包安装
pip install serviceboot -i https://pypi.tuna.tsinghua.edu.cn/simple
应用举例
Metadata
Release files for serviceboot 2.1.11
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| serviceboot-2.1.11.tar.gz | 13.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| serviceboot-2.1.11-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 30.8 kB
Release files / serviceboot-2.1.11.tar.gz
| Download URL | serviceboot-2.1.11.tar.gz |
|---|---|
| Size | 13.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4009688263b27efacd002909b9b767d70da4e2df070b7f37ddc931e1f9f3572d
|
|
BLAKE2b-256 checksum How to use checksums |
b99ca7e447e06bc9e87b64097099fafd3d460c8271320b857d5953e6bb58552a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.7.8
|
Release files / serviceboot-2.1.11-py3-none-any.whl
| Download URL | serviceboot-2.1.11-py3-none-any.whl |
|---|---|
| Size | 17.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
72a1bd7b2c71e401a810c1a893ef39bbeaa5dc4107176ba260e73953cf7ab955
|
|
BLAKE2b-256 checksum How to use checksums |
4c0f155e07e1849172227634df9d7202c79217741585ad98de0eaa0b6b1d5c2d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.7.8
|