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-2019.8.29.9.56.15.tar.gz
(3.7 kB
view hashes)
Built Distribution
Close
Hashes for iapp-2019.8.29.9.56.15-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ad41e6872cec628b124989c62640e2d48b7fdcf0832a9882fa7c3f980c5521a |
|
MD5 | 4e17fd9b1baa794c7b0f8a641fc81614 |
|
BLAKE2b-256 | 5bc67475bb4afe2f5bdcb0b9c3fc8236d39642b697c3a45efb5bcffc0f02a827 |