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.14.49.21-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f9c09cda086812a8865c2231213cc7691869a01cc5df15b2b35789f8d0abe09 |
|
MD5 | 342ca1e1216eaff6fd6e1dcd6b218ee8 |
|
BLAKE2b-256 | c450fc9e2a557cd5e99f6d0f694d0521e96122c15f150869224c3995db784d3c |