Skip to main content

Simple Model Deploy Restful Api!

Project description

:rocket: RestfulApi :facepunch:



pip install restful_api -U


import jieba
from restful_api import Api

pred1 = lambda **kwargs: kwargs['x'] + kwargs['y']
pred2 = lambda x=1, y=1: x + y
pred3 = lambda text='小米是家不错的公司': jieba.lcut(text)

# 多服务堆叠
api = Api('/post1', pred1)
api = Api('/post2', pred2,
api = Api('/post3', pred3,


import requests
json = {'x': 1, 'y': 10}'', json=json).json()'', json=json).json()'', json=json).json()

Project details

Download files

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

Source Distribution

restful_api-0.0.4.tar.gz (2.9 kB view hashes)

Uploaded source

Built Distribution

restful_api-0.0.4-py3-none-any.whl (4.7 kB view hashes)

Uploaded py3

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