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.10.12.21.32.31.tar.gz
(116.6 kB
view hashes)
Built Distribution
Close
Hashes for appzoo-2021.10.12.21.32.31.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b26aeabb50829bac9fbc20abd253fbf4beeec703a88cf3babd9f039af874da90 |
|
MD5 | 8a0c5876c7734496c1cfb6ed83dd2940 |
|
BLAKE2b-256 | eb7095397f0157e832408a4549ca3b169e726dccf294149bf767f031af1686cf |
Close
Hashes for appzoo-2021.10.12.21.32.31-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70e31d8b031c4a66ff4f6e85067b4b8766d9fd48e5c78b31298076efc4942b85 |
|
MD5 | 51e5315b6e92a405c85cd995a0d3b892 |
|
BLAKE2b-256 | fdcf33cf9ca98fb284c8113e4efe119c0b58cbb2583901799cbf78f23d0f1581 |