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.9.59.tar.gz
(29.7 kB
view hashes)
Built Distribution
Close
Hashes for appzoo-2020.11.11.18.9.59.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b08a3e80ebfba16379696dfe4fbef054d42798441bbfb0a0a93abace756466bf |
|
MD5 | 169019cb0b01a7ddf91805bbf96de830 |
|
BLAKE2b-256 | 0f2be77dadbf50247c4e336a6c93c3e112d23d7d7ffbb3db504491482b08b3ed |
Close
Hashes for appzoo-2020.11.11.18.9.59-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f6dfae959eb55cbd969e1627a17cf59713f2f966a809e17d7c41ee63f393271 |
|
MD5 | 94b18d5f4840c01b3b00b88f31af6d6e |
|
BLAKE2b-256 | d62f953164db369f5357d98ec708143f86739b4823698f3a4de4acefc68f8ab2 |