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.23.16.54.34.tar.gz (121.0 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.23.16.54.34-py3-none-any.whl (177.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: appzoo-2022.3.23.16.54.34.tar.gz
  • Upload date:
  • Size: 121.0 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.23.16.54.34.tar.gz
Algorithm Hash digest
SHA256 032cb110d8e92cee1eb75f2894a9b471159458e3af90bb474755c5cce7839ddc
MD5 2d94a1149537a2f1c6091892b81456e6
BLAKE2b-256 a312a6e5227a33f14a1a9ab7b61fbc4ea1786693d4f7cec62d9c48153bcb15dc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: appzoo-2022.3.23.16.54.34-py3-none-any.whl
  • Upload date:
  • Size: 177.7 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.23.16.54.34-py3-none-any.whl
Algorithm Hash digest
SHA256 fb7b3e36269fc86e69fee591305b8583aa88560a0ee09b25c425a8c7c9aca55f
MD5 5162705a3c6eb6b76320f96090dae2f1
BLAKE2b-256 05dc307f6cbf9ef5f4eb75517966dfd245ef9e0ae4d2581ccbfdc3d2c6686a38

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