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.13.14.59.12.tar.gz
(30.3 kB
view hashes)
Built Distribution
Close
Hashes for appzoo-2020.11.13.14.59.12.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89b73f97d7ea3712c7591c20ef8676403aa15ea37f6dd18f1a7af0ba6fb5b496 |
|
MD5 | e837fa194312c9013470445204632dfb |
|
BLAKE2b-256 | a7d42573de9b8a7eebf0c7e2b295cb9db58474d6adbb9a0b8ee95694f4f05ec8 |
Close
Hashes for appzoo-2020.11.13.14.59.12-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 750f5761a4290f8e0f45c76a5414ced5e500de3498a41e71fa2319951fb33a30 |
|
MD5 | 48fb7382e1cf74b386c78f477f1e2d60 |
|
BLAKE2b-256 | a07cf19453a093b60a61301b43a152abcc160d86a3643b1d59f081299ccb9e64 |