description
Project description
:rocket: RestfulApi :facepunch:
模型部署
Install
pip install iapp -U
Usage
import jieba
from iapp import App
pred1 = lambda **kwargs: kwargs['x'] + kwargs['y']
pred2 = lambda x=1, y=1: x - y
pred3 = lambda text='小米是家不错的公司': jieba.lcut(text)
app = App()
app.add_route("/f1", pred1, version="1")
app.add_route("/f2", pred2, version="2")
app.add_route("/f3", pred3, version="3")
app.run()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
iapp-0.0.1565245778.tar.gz
(3.2 kB
view hashes)
Built Distribution
Close
Hashes for iapp-0.0.1565245778-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a34168575b00c1de5ce92b652da8032368fad1ea61507f462868851cdd7c878a |
|
MD5 | a3062db5c2ec83da94000e475d040526 |
|
BLAKE2b-256 | 87e3f3013fcd60a204d3b843eceb429f92e06bd607c261a359eecc9cbfde182c |