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.11.27.18.53.20.tar.gz
(10.7 kB
view details)
Built Distribution
File details
Details for the file iapp-2019.11.27.18.53.20.tar.gz
.
File metadata
- Download URL: iapp-2019.11.27.18.53.20.tar.gz
- Upload date:
- Size: 10.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.36.1 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3dc09d1aedefdac2ab0ed6aa1e1ec67f634de0b8b1c03f682dcfd032826108f |
|
MD5 | 7402829e1c53d039204b8e069f75f426 |
|
BLAKE2b-256 | 402f1f095583d5ef4cd6294e71fa626b6a3e30de22e7460652e30e7eefb641cc |
File details
Details for the file iapp-2019.11.27.18.53.20-py3-none-any.whl
.
File metadata
- Download URL: iapp-2019.11.27.18.53.20-py3-none-any.whl
- Upload date:
- Size: 34.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.36.1 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6be0651f0d15615ec96699ffc484f0d162479e72a00af28892bdf83d51c20a7c |
|
MD5 | 3def11ccc3dabf8b5fc295ce60f6d6ac |
|
BLAKE2b-256 | 48b45402a6604483ef38b5e6237c897328619fbe93825030264fa6f636bf4688 |