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.12.15.56.1.tar.gz
(29.3 kB
view hashes)
Built Distribution
Close
Hashes for appzoo-2020.11.12.15.56.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9b71c27b88c0ea71023d4e50ec22fcde1e1548279de1375a8347edfc4fd2af5 |
|
MD5 | e7576872097041ec5725c5dbc1695394 |
|
BLAKE2b-256 | ae7997a46c650ef6c78c6cb968b3be812f68da0e5d5896494b8fc09a7880e804 |
Close
Hashes for appzoo-2020.11.12.15.56.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 770f577688a7f8f85a0b632774629f7d0f0e9ca98f5256f94e869068ca0d70ff |
|
MD5 | ef8c9a57c9c7d20e53adb62d88f27a9f |
|
BLAKE2b-256 | 864ebc6825667508ecd94204d680fde3c47028755bdd0652bcddf2fe57f6e384 |