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-2022.3.18.11.32.31.tar.gz
(119.9 kB
view hashes)
Built Distribution
Close
Hashes for appzoo-2022.3.18.11.32.31.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88be4e47e93e82ec85a9fbfd7cbbb1faef7194ff0aadd2f9ec0a333078f09b9f |
|
MD5 | 452ab3ec51cd977d4c639dfbd2aad545 |
|
BLAKE2b-256 | 519551e99a9174291e4221c61e71158922af653d545cd91c584cf02bad90c20e |
Close
Hashes for appzoo-2022.3.18.11.32.31-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | de10478e3614f7c6ae240ed1b1a085f9257b2b090bafa104b464c23bd4c885c2 |
|
MD5 | 8c4e47a3cb3ec87272eef36d263c65fe |
|
BLAKE2b-256 | 87bd615569a4838a23f559336e34c33e5e2d979c8243dae304324a0d76e1edd5 |