: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.1565836593
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.1565836593.tar.gz | 3.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| iapp-0.0.1565836593-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.4 kB
Release files / iapp-0.0.1565836593.tar.gz
| Download URL | iapp-0.0.1565836593.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8cea44570f3533ff753c1738d5ab171f7077a4bd477456bb312d5d880f7e804a
|
|
BLAKE2b-256 checksum How to use checksums |
33f809c30214468c97527167b34d379373096bfba2791f1581cd251ea1fcd631
|
| 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.1565836593-py3-none-any.whl
| Download URL | iapp-0.0.1565836593-py3-none-any.whl |
|---|---|
| Size | 4.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6217adcf46459ad2489ea326d18fea699ebbd0419159673d5670576445882128
|
|
BLAKE2b-256 checksum How to use checksums |
cda6483dfb37bb7a87e1fe8158158fe5bf796aa22b853864706b4cd2d6bd7ad6
|
| 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
|