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.11.18.5.24.tar.gz
(29.7 kB
view hashes)
Built Distribution
Close
Hashes for appzoo-2020.11.11.18.5.24.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 14012c261b53069c887844648b309e1721f232fff8a3778a289c2715297f4976 |
|
MD5 | 5ba401374fc48193032dacffceba3bb6 |
|
BLAKE2b-256 | 6a8db5de962a1259b13f8bec51332e2943d599b9ae56415c99aef2317cd1378a |
Close
Hashes for appzoo-2020.11.11.18.5.24-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 204a835e42637a9214189455b3e340ef75172f12586a0b2da253fd85859166e8 |
|
MD5 | 07b3c23761af5867724aa7f1154c7863 |
|
BLAKE2b-256 | c8e84876f0989bd8f4ba63979bb2c6d480774bd7f004daf1bc9d1e7c07202de1 |