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-2020.12.28.10.57.1.tar.gz
(108.0 kB
view hashes)
Built Distribution
Close
Hashes for appzoo-2020.12.28.10.57.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 01ae96fe7764936b4cb240de9abab2eb45c2f0899d7b5ee8ecd97c5e9dfdfc93 |
|
MD5 | 425848649676fee460b6b6ea51b2b7a9 |
|
BLAKE2b-256 | 101fd160f4ea8a05a689dc2558a7f392da08aa74b9568f03e67dd252d53afe17 |
Close
Hashes for appzoo-2020.12.28.10.57.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | efcd88775c13db263f6e09554705e3728866bba965c1b011c3a381bc7cb611c3 |
|
MD5 | 154eafe89784c7814cb8c9bbf407e067 |
|
BLAKE2b-256 | 7f3e3c2660d6099c2de0fdc07890033179360c07749899abd6267fd8c54ee969 |