: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()
Metadata
Release files for iapp 0.0.1565836325
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| iapp-0.0.1565836325.tar.gz | 3.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| iapp-0.0.1565836325-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.3 kB
Release files / iapp-0.0.1565836325.tar.gz
| Download URL | iapp-0.0.1565836325.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0287a682a2ce3d75776bc17649136ba922f863643d2fdf77a7ee9dd45f900367
|
|
BLAKE2b-256 checksum How to use checksums |
466c630e28568eebe58212819c6f633492b2143bc80feab5f64a4309b9b1e1cc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / iapp-0.0.1565836325-py3-none-any.whl
| Download URL | iapp-0.0.1565836325-py3-none-any.whl |
|---|---|
| Size | 4.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4a2ee520652549e046ba826cc3cddc425e7e99ff929c24a4a287a151b04172cc
|
|
BLAKE2b-256 checksum How to use checksums |
32c35d4c8ecfe53cb5b199b50ff06b8e3c1aa7b1b2b5252c5d2c2c5cdab9d67a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|