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.17.29.tar.gz
(29.7 kB
view hashes)
Built Distribution
Close
Hashes for appzoo-2020.11.11.18.17.29.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 143c7bb47dbbd59bb778f7f2743d51a76859bac80c6b3bbdd9d3fcb598f1733d |
|
MD5 | 3431b576f0dad1a99fefe754664b056e |
|
BLAKE2b-256 | 4a5f4140078a478bcccaca05c3ca7870e8b60eac57a4be791323479932546340 |
Close
Hashes for appzoo-2020.11.11.18.17.29-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e32f6b3aabb3b0bf426b2f6686628f9a0cca51b92fce023607d9bdd06b631f83 |
|
MD5 | eb093d3e92ec2badafbcfa07e5c0cc3c |
|
BLAKE2b-256 | e41384bc2e42ed039d029f664565f49f4a38a7a52bd50fe08123625a2445ce82 |