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.17.19.40.tar.gz
(109.6 kB
view hashes)
Built Distribution
Close
Hashes for appzoo-2021.2.20.17.19.40.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | df16de962892795f23b975866ad2cf6cb7c3e51f8f17b46e84b480441932481d |
|
MD5 | 35ff0b3bc2968d2ed787709df759af16 |
|
BLAKE2b-256 | 5bcb67867558f64fff5ee026b20671f56a12d8dc6271c686a912f7d4ebb130d4 |
Close
Hashes for appzoo-2021.2.20.17.19.40-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 559b877d91da5ee41b348c89af627fa2a2cdabbcea02a27465e3326ff5732b5a |
|
MD5 | 3a500e0e705c3753bd35e98ee2b09caa |
|
BLAKE2b-256 | 8263818db22feab8b46a1ed65c7da539e9ac1d6b839396ed7d1068f65f217666 |