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() # appcli easy-run ./apps
- 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.5.24.11.26.32.tar.gz
(130.4 kB
view hashes)
Built Distribution
Close
Hashes for appzoo-2022.5.24.11.26.32.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0bfc959218eb7f73bb25ddf5ad01ffc921ed8a3730d82e91fd149eab591fb820 |
|
MD5 | e8e1c4e7508b4e6b66d1f5d982ae9a54 |
|
BLAKE2b-256 | d22410929aa644cdd63f731c48460175e85872cc3f726c6310959a2ff3856382 |
Close
Hashes for appzoo-2022.5.24.11.26.32-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4bdaedda5e60bf1ab315d1110dc98572a1416a3a7c6687cc831464f457b15d80 |
|
MD5 | 8180b9677de9c28539644f8cbac3e61c |
|
BLAKE2b-256 | 94168c6fe734e6d4c68e4a47ea0534a389e8e73aa2f0cb43a705e39c430116df |