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.13.15.2.49.tar.gz
(30.3 kB
view hashes)
Built Distribution
Close
Hashes for appzoo-2020.11.13.15.2.49.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 393e2ccd4ccfb9854858a4b3a6c91fa059454b803fb655f92c767dcb64a71aa7 |
|
MD5 | 4f4f927a6937ac915af1f60e39420c65 |
|
BLAKE2b-256 | 5bed3ce5df065a67666efa5a63ce4008b867f8c5b7cd80906e50e028d5719ad3 |
Close
Hashes for appzoo-2020.11.13.15.2.49-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7497ff77f33eb05a5419a584dd27108a091e04d3d59b1da4d7336fe6b5faaf07 |
|
MD5 | 3153426411fc6f9842cd90448a908eb3 |
|
BLAKE2b-256 | de8c8d0bc72dd09390b2e47263c112d9f48e14cf7d0036f8b7948b3fa2ed311c |