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.11.14.54.27.tar.gz
(29.4 kB
view hashes)
Built Distribution
Close
Hashes for appzoo-2020.11.11.14.54.27.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f0ccfa05921e3ce7514fbab8d109ed1e610aa6e00b9736fd55097e9068d76bb9 |
|
MD5 | 119496ce7d56d2fc49602564cd4ed081 |
|
BLAKE2b-256 | 5a153b51c6720ce1e001416eb25c0edc3a9dd685b36e0fed2a987ca3b4607d3a |
Close
Hashes for appzoo-2020.11.11.14.54.27-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bcc60e72a5fdd0161e9eb2cc7fa12ad4c88e5ff04eab553352912385068a6def |
|
MD5 | 381c0efbd7012c8b1918e33a6481b33e |
|
BLAKE2b-256 | 04defb4b596664195eb679ad3bf50d4f0544bbc270e626e5bededb40310ec89c |