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.25.17.28.54.tar.gz
(126.3 kB
view hashes)
Built Distribution
Close
Hashes for appzoo-2022.3.25.17.28.54.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 819c9be1bf70912e5cf983b89f2a9ea978f18d1a5e9c82958976140e5b8c5140 |
|
MD5 | ee2d94d1b2deb769d2f2a78f3e4a7a16 |
|
BLAKE2b-256 | 34d9cd9505413316f51c93f68f557b279b02d1612a9db4c4d51d09643b0955a1 |
Close
Hashes for appzoo-2022.3.25.17.28.54-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dbee6b86b44eaa7ac2b2a71bcaf8d9bf6324b1779018f80b5af394a80bdd5ca0 |
|
MD5 | 5229b485cb348274d72f7733368e03bc |
|
BLAKE2b-256 | 11d0a69cbb8d8453dd5760ad2177f4834f01607737be22e0562e5a6b674a2c3e |