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.23.16.54.34.tar.gz
(121.0 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.23.16.54.34.tar.gz.
File metadata
- Download URL: appzoo-2022.3.23.16.54.34.tar.gz
- Upload date:
- Size: 121.0 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 |
032cb110d8e92cee1eb75f2894a9b471159458e3af90bb474755c5cce7839ddc
|
|
| MD5 |
2d94a1149537a2f1c6091892b81456e6
|
|
| BLAKE2b-256 |
a312a6e5227a33f14a1a9ab7b61fbc4ea1786693d4f7cec62d9c48153bcb15dc
|
File details
Details for the file appzoo-2022.3.23.16.54.34-py3-none-any.whl.
File metadata
- Download URL: appzoo-2022.3.23.16.54.34-py3-none-any.whl
- Upload date:
- Size: 177.7 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 |
fb7b3e36269fc86e69fee591305b8583aa88560a0ee09b25c425a8c7c9aca55f
|
|
| MD5 |
5162705a3c6eb6b76320f96090dae2f1
|
|
| BLAKE2b-256 |
05dc307f6cbf9ef5f4eb75517966dfd245ef9e0ae4d2581ccbfdc3d2c6686a38
|