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
appzoo-2020.11.19.17.12.14.tar.gz
(30.9 kB
view hashes)
Built Distribution
Close
Hashes for appzoo-2020.11.19.17.12.14.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | de781ccd637367d13e39daa8adc4c5398da01da6daa835d57728bf7352b869c9 |
|
MD5 | 810ba7dd90a02ba9a950d8ba0f02b91d |
|
BLAKE2b-256 | 486f0592cc87d096b848390e550f7b69a438c71cf9c474a90126c23b49a020e5 |
Close
Hashes for appzoo-2020.11.19.17.12.14-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8af5af47c101eae97f7614efb38a0ff463c33325d33322ef37f72fd803bc5485 |
|
MD5 | 3abba7f9965f84aced5120356b5e1e59 |
|
BLAKE2b-256 | 700b9c22aa1f8193cf3fe7eb5f323172ddc607aec9c66624b3754b91f568d4ef |