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.13.15.17.7.tar.gz
(30.3 kB
view hashes)
Built Distribution
Close
Hashes for appzoo-2020.11.13.15.17.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a2b91e30b9e41b7c7c60095cb9f78c5d68784ff4c94412f8edcdc227ca1787a |
|
MD5 | e285af5be8a8b2460d1e5acfcbd06052 |
|
BLAKE2b-256 | e1ed189647d706fb29d2bc563a72ef2d43ec716d5e00dad1a8e4a85d0ddc2f4f |
Close
Hashes for appzoo-2020.11.13.15.17.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 33d4da62ba9085a47de8d214a645ce60f4f05671d6522531eb877e4ed3ce1570 |
|
MD5 | 45a07c81239a4fed20ad193580665b30 |
|
BLAKE2b-256 | 254eb96ab8649e83438826ccbfca3e4c5e4acf5add0026380be1b8cbb8d6ca8b |