description
Project description
:rocket: AppZoo :facepunch:
Install
pip install -U appzoo
Usage
- Rest Api
import jieba
from appzoo 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(verbose=True)
app.add_route("/", pred1, result_key='result')
app.add_route("/f1", pred1, version="1")
app.add_route("/f2", pred2, version="2")
app.add_route("/f3", pred3, version="3")
app.run()
- Fast Api
app-run - fastapi demo.py
app-run - fastapi -- --help
app-run - streamlit demo.py
app-run - streamlit -- --help
TODO
- add logger
- add scheduler
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 appzoo-2020.11.10.14.54.49.tar.gz.
File metadata
- Download URL: appzoo-2020.11.10.14.54.49.tar.gz
- Upload date:
- Size: 29.3 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.42.0 CPython/3.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9ff5892bb31ef1af60c69289204e0219bc4fad569d1cc085d318df0f1dce8946
|
|
| MD5 |
0f6043b62d68bb5c97e513e621067711
|
|
| BLAKE2b-256 |
eebfc3ceaaba351732c9058857de61c3ba6034483d9d23a3f38624f5a5ed38d3
|
File details
Details for the file appzoo-2020.11.10.14.54.49-py3-none-any.whl.
File metadata
- Download URL: appzoo-2020.11.10.14.54.49-py3-none-any.whl
- Upload date:
- Size: 51.7 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.42.0 CPython/3.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b4228fa648c43a98476f735221b696294378c2b1849f4b27ead049c0a4ed35db
|
|
| MD5 |
68e571605c868c9404f1d785f0a6c9bf
|
|
| BLAKE2b-256 |
b7d1e67ddcd182272a94101a6f74d66672f46119cd2d5e48b84395a6b68b2e56
|