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-2021.11.10.15.55.47.tar.gz
(118.1 kB
view hashes)
Built Distribution
Close
Hashes for appzoo-2021.11.10.15.55.47.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71a01581bf756a4d87db0bda69f0b61b5fa309573ed0e2e977b22ae9e63a056c |
|
MD5 | 67c205bbdf5fd07751af0654165bb669 |
|
BLAKE2b-256 | 75982e56c4fc51fc759a6f0ae5b8ca1acbd0e6426571814c57d269d494ddfcbf |
Close
Hashes for appzoo-2021.11.10.15.55.47-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 031d8466594ebc842856c07b36556b8023cab977a556be2411843e72f9260608 |
|
MD5 | da3bdb77c75ec2db3fcc576d9845e5df |
|
BLAKE2b-256 | c772f9821e2f848ae6a96f5fdd5e7e54dc4ca1cdc168c61cd6efbe91ebc5ea30 |