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.14.35.21.tar.gz
(29.4 kB
view hashes)
Built Distribution
Close
Hashes for appzoo-2020.11.10.14.35.21.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60407121dcd5abc3eff8bb99905edee3af6c3b0fcd520c969a081d77e7c3a1ce |
|
MD5 | ae03642ea13a4754cefb6da400ec768c |
|
BLAKE2b-256 | 7693fdb9599d4df2db663884aabc8f5669471e39d95872f164b296aabe4ce262 |
Close
Hashes for appzoo-2020.11.10.14.35.21-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d49a40ab9ba8c8260a1fba2a82a7b3b683518a76df29212e1b75e5464b2de45 |
|
MD5 | da6dcc1ce113bb86a497d020b4a85a88 |
|
BLAKE2b-256 | be2fc3f42eec66386927c5f53d07f5a03c2fd84fdae0bf33cd006dc12ebb3781 |