Skip to main content

python基础服务框架

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

fast_model_server-1.2.1.0-py2.py3-none-any.whl (35.1 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file fast_model_server-1.2.1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for fast_model_server-1.2.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 9529c9f273cb03597c877326a573a52aab5e4f77b4b4f79662198038192d98c4
MD5 cb641cfa88ea5a76feca6059a38a49c6
BLAKE2b-256 7e89666c9a17ae68591bf488751df814635fddfb1cd9b57f30c5972f740b393e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page