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.19.10.45.54.tar.gz
(109.6 kB
view hashes)
Built Distribution
Close
Hashes for appzoo-2021.2.19.10.45.54.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f04aaea2ff6201de4f97b5a54883ea671e8d4c23c5e3e04c308f4dc6629d119e |
|
MD5 | b95715830fae31a988b1c77c835e5770 |
|
BLAKE2b-256 | 979b59a49a742d5b19def79cae093038b9248f2275f4dd6907945a4e4c315b46 |
Close
Hashes for appzoo-2021.2.19.10.45.54-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c12dd73949706ee0a5a4ae2463fce2094e5190ab19b253e2839584a0e0af92a |
|
MD5 | 60130a94f90052c64350e54ee7c5de3d |
|
BLAKE2b-256 | b65f7eec0e55b8820ab222f2ba3d0dd6c454944cea828c5d0fbf8f9dfaac3687 |