Skip to main content


Project description

Downloads Open in Streamlit

:rocket: AppZoo :facepunch:


pip install -U appzoo


  • 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") # appcli easy-run ./apps
  • 带缓存
def post_func(kwargs: str):
    return kwargs

  • Fast Api
app-run - fastapi
app-run - fastapi -- --help
app-run - streamlit
app-run - streamlit -- --help


对于RESTful API的URL具体设计的规范如下: 1.不用大写字母,所有单词使用英文且小写。 2.连字符用中杠"-“而不用下杠”_" 3.正确使用 “/“表示层级关系,URL的层级不要过深,并且越靠前的层级应该相对越稳定 4.结尾不要包含正斜杠分隔符”/” 5.URL中不出现动词,用请求方式表示动作 6.资源表示用复数不要用单数 7.不要使用文件扩展名


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-2023. (6.6 MB view hashes)

Uploaded Source

Built Distribution

AppZoo-2023. (6.7 MB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page