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.10.15.32.10.tar.gz
(29.3 kB
view hashes)
Built Distribution
Close
Hashes for appzoo-2020.11.10.15.32.10.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2e6dfda1fda407ead1b466a8d60ca65a39465260e094c57ed6b8223bcd9fb16 |
|
MD5 | 99f03da01da0077c91f0bc2ecaf907fa |
|
BLAKE2b-256 | 4179a8d06393f3a03c4e2aa182ae4f8011bcd6d4a0f46489f2f1f57ed4caca19 |
Close
Hashes for appzoo-2020.11.10.15.32.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c87a9900ec22ee423b72d38044e723f8ca30456b95d16a93e188a136060f5ed |
|
MD5 | 9448f612dd8adf2bdb2eda21c766f68f |
|
BLAKE2b-256 | e41e0725d691dfc7481b0ea0a9c9cc939fad9cb9e60600cbfac0243b55725e34 |