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
- add 监听服务
- add rpc服务
- hive等穿透
- add thrift https://github.com/Thriftpy/thriftpy2
- add dataReport
- add plotly
- add explain
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.12.7.11.11.29.tar.gz
(107.7 kB
view hashes)
Built Distribution
Close
Hashes for appzoo-2020.12.7.11.11.29.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94c1989c5457668f76463ceb2271bcfdb2a3a129ab92b9cd45c184c40fe67fbf |
|
MD5 | 9e96ab4dabe9cfc84d582a228999003d |
|
BLAKE2b-256 | 8b8aa1568a9f75506568aa6014ac86dc701ebdace6bf4acfe8f238c4a21c2554 |
Close
Hashes for appzoo-2020.12.7.11.11.29-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 96619f9cfce34830c817dee128d3e7c9340071a2a426c967e31f750e0ccc1b84 |
|
MD5 | 748af2d27fd8342f146976488dea94bd |
|
BLAKE2b-256 | fa630318a94fac2a70da9a90563a4313c38b42fb16fcaa8e901ca7a45fd811ff |