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
iapp-2019.8.30.19.7.36.tar.gz
(7.7 kB
view hashes)
Built Distribution
Close
Hashes for iapp-2019.8.30.19.7.36-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71870d2b673d295e649b53de93a2d56e79cf9e3bd18aa48c4f8325a8d85301d9 |
|
MD5 | 3e6f704d666f39ee080936a854e27574 |
|
BLAKE2b-256 | 5cb294364e9b30e5407beb58e97c39997af3d88211e6b3f442ce951cf82c9c0b |