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.44.44.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd95c17ba7b8105e339e76471f3fc152bd2ea4cdb2648ebb08b0f1e4193ee881 |
|
MD5 | fe0959b808ff281af4fbdce5b0fb7034 |
|
BLAKE2b-256 | f5b0eef646e9416087649dc9f1e74ebb072824cbd43b9738ba1212b280f1054a |
Close
Hashes for appzoo-2020.11.10.13.44.44-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c37d941896a6a386ad5ab0973dd68beee62ce97150f3c36f04b428ba12b97ba3 |
|
MD5 | ba6ad26daad23d78a3bb4c8489a95bce |
|
BLAKE2b-256 | 3fb870a35d926dd77b9a5bd1e4081acdb53929cdad1bf3f7ab4c148e772a312e |