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.9.2.14.3.59.tar.gz
(9.2 kB
view hashes)
Built Distribution
Close
Hashes for iapp-2019.9.2.14.3.59-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2819d5605394931d23df912dbe2195dc52d99b22714aa22994f4a1d8bee06e9b |
|
MD5 | 26f4c2a82c9a552a5c3a3f1750d2689d |
|
BLAKE2b-256 | b6582320be99ecd01685c202646a4330f4dcc06088dd1e5775d4108b5a4e692e |