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()
- FastApi
app-run - fastapi demo.py
app-run - fastapi -- --help
- Streamlit App
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
Built Distribution
Close
Hashes for appzoo-2020.11.5.21.4.21-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f126a048db53ab6daca6cd82411fae4bc15b96e9f19bf30c64e7cdaa5bd9a5b6 |
|
MD5 | adfe8e3276a347dfddd355a0df7c9639 |
|
BLAKE2b-256 | 3d9ce726037a679b97ae005d20c89b5f5173bdeebf6b72e154bf361a9601df02 |