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.1565836593.tar.gz
(3.2 kB
view hashes)
Built Distribution
Close
Hashes for iapp-0.0.1565836593-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6217adcf46459ad2489ea326d18fea699ebbd0419159673d5670576445882128 |
|
MD5 | 1e7d310504f53e7e95783f33cc4a1ca2 |
|
BLAKE2b-256 | cda6483dfb37bb7a87e1fe8158158fe5bf796aa22b853864706b4cd2d6bd7ad6 |