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-0.0.1565836325.tar.gz
(3.2 kB
view details)
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-0.0.1565836325.tar.gz.
File metadata
- Download URL: iapp-0.0.1565836325.tar.gz
- Upload date:
- Size: 3.2 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.9.1 tqdm/4.32.1 CPython/3.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0287a682a2ce3d75776bc17649136ba922f863643d2fdf77a7ee9dd45f900367
|
|
| MD5 |
6394f211de136bd58c97364e4ad4e9ba
|
|
| BLAKE2b-256 |
466c630e28568eebe58212819c6f633492b2143bc80feab5f64a4309b9b1e1cc
|
File details
Details for the file iapp-0.0.1565836325-py3-none-any.whl.
File metadata
- Download URL: iapp-0.0.1565836325-py3-none-any.whl
- Upload date:
- Size: 4.2 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.9.1 tqdm/4.32.1 CPython/3.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4a2ee520652549e046ba826cc3cddc425e7e99ff929c24a4a287a151b04172cc
|
|
| MD5 |
41e6dfd0e8f3af015a0dd384268ce9cc
|
|
| BLAKE2b-256 |
32c35d4c8ecfe53cb5b199b50ff06b8e3c1aa7b1b2b5252c5d2c2c5cdab9d67a
|