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.18.6.9.tar.gz
(29.7 kB
view hashes)
Built Distribution
Close
Hashes for appzoo-2020.11.11.18.6.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c228409ba158bd6776723e043cf1c48b6b2792f38f6252a63c7256bf749d9e43 |
|
MD5 | ecbe18658987025fdc29e9a6e32e90bb |
|
BLAKE2b-256 | db757076bdc37f4dda383f5f5915e69f0f36ed0ad4b247a37fb1cb2eaecccdf7 |