Skip to main content

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

Download files

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

Source Distribution

fast_model_server-1.3.0.tar.gz (26.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fast_model_server-1.3.0-py2.py3-none-any.whl (36.9 kB view details)

Uploaded Python 2Python 3

File details

Details for the file fast_model_server-1.3.0.tar.gz.

File metadata

  • Download URL: fast_model_server-1.3.0.tar.gz
  • Upload date:
  • Size: 26.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.5

File hashes

Hashes for fast_model_server-1.3.0.tar.gz
Algorithm Hash digest
SHA256 192ad91bc7f354b8b999867b5f6da812285ebacbf931855039e01ca6e9a64c08
MD5 edbfc271888b56cc3603ad05c7c6eb66
BLAKE2b-256 7099459fa40b1d266e383682bd2c2f1a428135631557b4cbfea3c810a4e5c776

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fast_model_server-1.3.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 1ee95ed278e831286855290860825381b193351793cfe976923eb0bdb6923e24
MD5 88415e40a8712fa016d35683556c045c
BLAKE2b-256 c304b4f672f226495f0add96d2a1cb3e40209b42c8416f1c2e8d028ce3c3c6d2

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.3.0 This release

2 files

1.2.4.0

1 file

1.2.3.0

2 files

1.2.1.0

1 file

1.2.0.0

1 file

1.1.0.2

1 file

1.1.0.1

1 file

1.1.0.0

1 file

1.0.0.1

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page