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(debug=True)
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
Built Distribution
Close
Hashes for iapp-2019.8.30.19.48.43-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f901e8256498ccd261ac0493e93f4f02e603b6d2ef2f427b53984ca492ff85a |
|
MD5 | 4017d8e85938bc381488db4c5452dc89 |
|
BLAKE2b-256 | 5a5939344f695a8483d68155300f92cac619e173c1ff57ea63211c0f3f7a3e6c |