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
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.11.10.17.54.39.tar.gz
(29.3 kB
view hashes)
Built Distribution
Close
Hashes for appzoo-2020.11.10.17.54.39.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b5118af2e2bdf927d3db8c543ad780d01529516f8e41e185974e923d9a949f43 |
|
MD5 | 27d6f75f883b452e7e93656daac42489 |
|
BLAKE2b-256 | 2c00b4e35c7af3af8f648b92fffc10cf0de1a2ceca3baa65bfaa989945479204 |
Close
Hashes for appzoo-2020.11.10.17.54.39-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c98938170c843c914e80b78ae7e3903ff1249f6cc482fba2d00e7c24cd5881ab |
|
MD5 | 7d81c01cef22260b98906095542361d3 |
|
BLAKE2b-256 | 20149c147d4d28043252d7e6a37bbb65f5e809cc844891b55a9c5f146f3f4a22 |