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.50.59.tar.gz
(29.4 kB
view hashes)
Built Distribution
Close
Hashes for appzoo-2020.11.10.14.50.59.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b013f43be4b9b088704fa0c8dc8dea1b4a70525799de3e19c139befb10199963 |
|
MD5 | decb4fed283a022da11432fbd597e67c |
|
BLAKE2b-256 | 8a4b46eec7b0650a5b5246b37aa10e7cdfd73304e26b440b25c9a9c0d47e5ed2 |
Close
Hashes for appzoo-2020.11.10.14.50.59-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b5311ba5941540f40e625f690506e23bc8e7d0c6e579bed2a4236113857fdfa |
|
MD5 | 721ef07ee042f3fd4634c023d622acaa |
|
BLAKE2b-256 | b4b5aa54b7c0e776d2c06b0a90c6c944e9f4cb9ecc348d4da00a7ad76882f93f |