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.5.49.tar.gz
(30.3 kB
view hashes)
Built Distribution
Close
Hashes for appzoo-2020.11.13.15.5.49.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8aff192a4a1810a3a8a5d8ae3fdb8ca697a3933b726fa4db22ccdc41d730db2 |
|
MD5 | 2dd59bb209960939b893a8b3eb057e83 |
|
BLAKE2b-256 | 4db48a3e821d952fa9d7802fe1ac61a4ef310096782fab6a35f3615a713f21de |
Close
Hashes for appzoo-2020.11.13.15.5.49-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dcc1dc16fbbd97b5bdfe0c97294ad4dedd93d9f93a04871f9dad4f1f756ccbea |
|
MD5 | 7ce609bb12573c6f7bc2d517ea1a140c |
|
BLAKE2b-256 | 3cdcd80560e992523123d772d6855f9fb5e90f451c8727393999a182894c27bf |