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-0.0.1565836325.tar.gz
(3.2 kB
view hashes)
Built Distribution
Close
Hashes for iapp-0.0.1565836325-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a2ee520652549e046ba826cc3cddc425e7e99ff929c24a4a287a151b04172cc |
|
MD5 | 41e6dfd0e8f3af015a0dd384268ce9cc |
|
BLAKE2b-256 | 32c35d4c8ecfe53cb5b199b50ff06b8e3c1aa7b1b2b5252c5d2c2c5cdab9d67a |