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.10.14.49.33.tar.gz
(29.4 kB
view hashes)
Built Distribution
Close
Hashes for appzoo-2020.11.10.14.49.33.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 121e2c923b12bf7b948ff3793c77c7100cd860c11889d0cb80a26e45c00bbc8a |
|
MD5 | 270ea0a4c10d7f843214c30ee0fa1fa6 |
|
BLAKE2b-256 | 74ef440a7b6ec94a9678ea2e6eccee327cd8227e2e99e84c95183aedd2fe446e |
Close
Hashes for appzoo-2020.11.10.14.49.33-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c070cb3fe9c78f716ab846dfedc395b069a54bcd5d5781c943e972f031f7e7a2 |
|
MD5 | 9bf02acebcc3f2f3f9d3da09469693c6 |
|
BLAKE2b-256 | 808363e7ab0ec865f2b560588fea9209637ec0d5e53810024c42ec3f47d33107 |