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.2.20.18.26.47.tar.gz
(109.7 kB
view hashes)
Built Distribution
Close
Hashes for appzoo-2021.2.20.18.26.47.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d43bf94fbc0012b8a09ff1593f90e1269df03ddabb25484b8b97b8ad4564975e |
|
MD5 | 89be1b8362dffe9fb345f9167cc5b432 |
|
BLAKE2b-256 | 2f16aabda4c1ab6b70ad38c7df041d09aa92377118a3028b68c328640a322834 |
Close
Hashes for appzoo-2021.2.20.18.26.47-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 271e787da7fd0beb62e5a8702de8571b2404be506f91875666fd253042e1cba3 |
|
MD5 | fd66eb7ccfd2e080a32fd2d865a3f21f |
|
BLAKE2b-256 | 411873e93cdab039bf2e105f5f1e2d2140fcb49c41bae3309be1e836589c06f3 |