Fast[API] Model Server
python服务框架
快速开始
【安装】
pip install fast-model-server -U
【概念】
server---服务代码库整体框架
router---服务中的某个具体应用
【自动创建代码库】
完成fast-model-server安装后。可以使用python -m fast_model_server.main进行代码库自动构建
1、构建整个代码框架
python -m fast_model_server.main
开发者的邮箱前缀:fubo
需要创建的模块类型[server, router]:server
创建服务的路径:/Users/fubo/tmp
服务名称:nlp_parse
服务Host:0.0.0.0
服务端口:8000
服务进程数:3
成功创建服务
是否创建demo router[y/n]:n
2、在代码框架中添加新的router
python -m fast_model_server.main
开发者的邮箱前缀:fubo
需要创建的模块类型[server, router]:router
创建路由的路径:/Users/fubo/tmp/nlp_parse/routers
路由名称:demo
./nlp_parse
├── init.py
├── configs //配置文件夹
│ └── config.json
├── routers //不同任务的router
│ ├── init.py
│ └── demo //demo名称的router
│ ├── init.py
│ ├── common.py //demo router的数据字段定义
│ ├── configs //demo router的配置文件
│ │ └── config.json
│ ├── resources //demo router的资源文件
│ │ └── resources.placeholder
│ ├── router.py //demo router的接口定义
│ └── service.py //demo router的业务逻辑实现
├── server.py //服务入口
└── start.sh //服务启动脚本
测试
如何执行自动化测试
如何贡献
贡献patch流程及质量要求
维护者
owners
- fubo
committers
- fubo
Metadata
Release files for fast-model-server 1.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fast_model_server-1.3.0.tar.gz | 26.3 kB | Without provenance | Details for fast_model_server-1.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fast_model_server-1.3.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for fast_model_server-1.3.0-py2.py3-none-any.whl |
Total release size: 63.2 kB
Release files / fast_model_server-1.3.0.tar.gz
| Download URL | fast_model_server-1.3.0.tar.gz |
|---|---|
| Size | 26.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
192ad91bc7f354b8b999867b5f6da812285ebacbf931855039e01ca6e9a64c08
|
|
BLAKE2b-256 checksum How to use checksums |
7099459fa40b1d266e383682bd2c2f1a428135631557b4cbfea3c810a4e5c776
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.8.5
|
Release files / fast_model_server-1.3.0-py2.py3-none-any.whl
| Download URL | fast_model_server-1.3.0-py2.py3-none-any.whl |
|---|---|
| Size | 36.9 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
1ee95ed278e831286855290860825381b193351793cfe976923eb0bdb6923e24
|
|
BLAKE2b-256 checksum How to use checksums |
c304b4f672f226495f0add96d2a1cb3e40209b42c8416f1c2e8d028ce3c3c6d2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.8.5
|
Security for fast-model-server 1.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.