Skip to main content

description

Project description

Downloads Open in Streamlit

: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


FastAPI--依赖注入之Depends

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-2022.3.28.19.5.2.tar.gz (126.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

appzoo-2022.3.28.19.5.2-py3-none-any.whl (189.3 kB view details)

Uploaded Python 3

File details

Details for the file appzoo-2022.3.28.19.5.2.tar.gz.

File metadata

  • Download URL: appzoo-2022.3.28.19.5.2.tar.gz
  • Upload date:
  • Size: 126.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/3.10.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.3

File hashes

Hashes for appzoo-2022.3.28.19.5.2.tar.gz
Algorithm Hash digest
SHA256 604ec5333684cd544e5360a796b17a5d4303c84c2dd91325ae3a488d1104060d
MD5 3219beddafc6e914ca513713cf1e7b3c
BLAKE2b-256 c2cef54dbf27f56c2b72c23c514412fb6b7def9be2021e7fc5e9eb2d1ab024ea

See more details on using hashes here.

File details

Details for the file appzoo-2022.3.28.19.5.2-py3-none-any.whl.

File metadata

  • Download URL: appzoo-2022.3.28.19.5.2-py3-none-any.whl
  • Upload date:
  • Size: 189.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/3.10.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.3

File hashes

Hashes for appzoo-2022.3.28.19.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7690995e0fda07c3e171bb7e83011fde1561ea0de697edb5679da5edb9fe4840
MD5 604e27d532d1b227a93fa64fe0e89f5e
BLAKE2b-256 444a8ebed9e0857d3e5ccf3e1c37268c0d02512cface8595745dca712bebb088

See more details on using hashes here.

Supported by

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