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.12.15.46.26.tar.gz
(29.3 kB
view hashes)
Built Distribution
Close
Hashes for appzoo-2020.11.12.15.46.26.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed172f7c34089047c3291c51d1d5af2eb0a95cc0c9bebb585690f29a4f366bff |
|
MD5 | b6f156003dff4a086ab42953b9b30b5c |
|
BLAKE2b-256 | 192b4076fea87c7e2bed149f419aec8b7c6b0414c5d1cfda0133a18c14546e43 |
Close
Hashes for appzoo-2020.11.12.15.46.26-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 15c515218a639310597ac2062f31f16a71cdcfa0144404228139b3acdd3bd2a0 |
|
MD5 | 518b84ed9a2c34a205064bb885da55fc |
|
BLAKE2b-256 | 6fd4da1c97a5b8761d551edd4b147148a44a047eee05e05a8009fe72f4409b8c |