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.28.19.5.2.tar.gz
(126.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file appzoo-2022.3.28.19.5.2.tar.gz.
File metadata
- Download URL: appzoo-2022.3.28.19.5.2.tar.gz
- Upload date:
- Size: 126.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/3.10.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
604ec5333684cd544e5360a796b17a5d4303c84c2dd91325ae3a488d1104060d
|
|
| MD5 |
3219beddafc6e914ca513713cf1e7b3c
|
|
| BLAKE2b-256 |
c2cef54dbf27f56c2b72c23c514412fb6b7def9be2021e7fc5e9eb2d1ab024ea
|
File details
Details for the file appzoo-2022.3.28.19.5.2-py3-none-any.whl.
File metadata
- Download URL: appzoo-2022.3.28.19.5.2-py3-none-any.whl
- Upload date:
- Size: 189.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/3.10.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7690995e0fda07c3e171bb7e83011fde1561ea0de697edb5679da5edb9fe4840
|
|
| MD5 |
604e27d532d1b227a93fa64fe0e89f5e
|
|
| BLAKE2b-256 |
444a8ebed9e0857d3e5ccf3e1c37268c0d02512cface8595745dca712bebb088
|