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.12.16.22.8.tar.gz
(30.2 kB
view hashes)
Built Distribution
Close
Hashes for appzoo-2020.11.12.16.22.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee1702607274da8aa04e8fe5833c81c8a372c1376a978eb8f245698ed60c1adf |
|
MD5 | 1649d79c6d4c1e8cf906b04847c2d366 |
|
BLAKE2b-256 | 9ef8950bc82973ff3af92e2b63b6cf5098f707b0186584230cc16c139972d872 |
Close
Hashes for appzoo-2020.11.12.16.22.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 191287129f1eabe7f582527448d7868b4c88b725252714c876e82aef726688d2 |
|
MD5 | 23741abbe2a67f272144c289eb297a09 |
|
BLAKE2b-256 | cf8f5f0fc807d7033f6721e62d304f93bebecb651deed0cdc22cdf1fb360c09e |