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.14.25.35.tar.gz
(29.3 kB
view hashes)
Built Distribution
Close
Hashes for appzoo-2020.11.12.14.25.35.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e8c1b04a600c5235399aea22c8f8241edb84df9e6d4df5fdd6838a0b805b58b |
|
MD5 | 9e1f111fd78bef8d5423fa06eb22c6f5 |
|
BLAKE2b-256 | 2e4acb94fbaeff59939a971d3899bd83678bc5e15ffce783211d02790fcc1cd4 |
Close
Hashes for appzoo-2020.11.12.14.25.35-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 51fbb8bd84faa3e19377e04f2e02a976e1555f2a71c5826b991eba46969e09e2 |
|
MD5 | 04d1c76c861a61ece04d4c2055fb6c53 |
|
BLAKE2b-256 | 03afa123e447a680edbcec31a163c16b03a2b107787db00a3a8b7cea0db184c7 |