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
Close
Hashes for appzoo-2020.11.10.10.30.40.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 696f4b9e7007030b7fa15357a31b0471601cea2850469457ea30351d29f06fd0 |
|
MD5 | 23026c17c055add6ec3cbfab9fde5350 |
|
BLAKE2b-256 | 1b8c48151230efef19e3398f641a2864280ca9713e95824ece43112e833c6480 |
Close
Hashes for appzoo-2020.11.10.10.30.40-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce339a5bb8af306cef66a2ab1e2dcbc9f3228007a92ca6f655794351135536a6 |
|
MD5 | bdf71965edd5d2079a449d7963c3ae5d |
|
BLAKE2b-256 | 67b6dc945f368aa46164b0a7306a3a600c4bb1f4f209b0cc45e055bb2e4efe6e |