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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file iapp-2019.8.30.14.49.21.tar.gz.
File metadata
- Download URL: iapp-2019.8.30.14.49.21.tar.gz
- Upload date:
- Size: 7.1 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.32.1 CPython/3.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e2d34196a1c6c7f18c8c497e57d29d9dbed556103e3a5d3df6eb45a6b9a015cf
|
|
| MD5 |
6ec00242d1ec33061e3e55fe5a329cd9
|
|
| BLAKE2b-256 |
eefdb950118bcded58b2193ef71c90555f77ca34ad3479202cd62533101b86a6
|
File details
Details for the file iapp-2019.8.30.14.49.21-py3-none-any.whl.
File metadata
- Download URL: iapp-2019.8.30.14.49.21-py3-none-any.whl
- Upload date:
- Size: 23.0 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.32.1 CPython/3.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0f9c09cda086812a8865c2231213cc7691869a01cc5df15b2b35789f8d0abe09
|
|
| MD5 |
342ca1e1216eaff6fd6e1dcd6b218ee8
|
|
| BLAKE2b-256 |
c450fc9e2a557cd5e99f6d0f694d0521e96122c15f150869224c3995db784d3c
|