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
iapp-2019.12.10.13.55.23.tar.gz
(12.3 kB
view hashes)
Built Distribution
Close
Hashes for iapp-2019.12.10.13.55.23-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e91733d00b1aa85354fe9fad4ac26126f51df08724ed509c3f71350d33ea461 |
|
MD5 | 773e930202ff45d1740dc19a7e5c8aa7 |
|
BLAKE2b-256 | ee17958a754f3dd62c47406a6b4200c2b247cadf4827fc0899967cf89eb83662 |