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
Built Distribution
Close
Hashes for appzoo-2020.11.10.13.31.48.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0ef1e14faeeadfab93a8058c808bbd6eaa32f7a6549a224164a8e6a82a58f8e |
|
MD5 | 1c2bf92736c6ae0f23a6a2e5fd8e924b |
|
BLAKE2b-256 | 81760972f8d8dcf2dc76dab64067f637df7cedea2396e3d8f4c30c86856d62f9 |
Close
Hashes for appzoo-2020.11.10.13.31.48-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c641764eb3ffaa4b8b1a518d95c5233689498fc55d58325a3224b8b4d2497daa |
|
MD5 | c8c6c72f545181012593a42831727a8f |
|
BLAKE2b-256 | 0226e73c1fe77803c1dde85f0512ba176a8b6ee16394d47bf3db1970a748bb53 |