description
Project description
:rocket: App :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, verbose=True)
app.add_route("/", pred1, main_key='main_key')
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.11.18.17.49.24-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 476a11a9f81b96ed6eb18d4017c1912e1592efb40d34853278cd1070fae71bbb |
|
MD5 | 1517a6ea3bd1c9c2bce5784d0f58211b |
|
BLAKE2b-256 | 7dd83f990f9044c011c497fe8d97709d74607a207d926359766b614cc7325f22 |