Skip to main content

description

Project description

:rocket: App :facepunch:


Install

pip install iapp -U

Usage

import jieba
from iapp 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(debug=True, verbose=True)
app.add_route("/", pred1, main_key='main_key')
app.add_route("/f1", pred1, version="1")
app.add_route("/f2", pred2, version="2")
app.add_route("/f3", pred3, version="3")

app.run()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iapp-2019.11.27.19.28.9.tar.gz (10.7 kB view details)

Uploaded Source

Built Distribution

iapp-2019.11.27.19.28.9-py3-none-any.whl (34.8 kB view details)

Uploaded Python 3

File details

Details for the file iapp-2019.11.27.19.28.9.tar.gz.

File metadata

  • Download URL: iapp-2019.11.27.19.28.9.tar.gz
  • Upload date:
  • Size: 10.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.36.1 CPython/3.6.8

File hashes

Hashes for iapp-2019.11.27.19.28.9.tar.gz
Algorithm Hash digest
SHA256 4cb98b88bf885696ab5b259df987822dfdebfc844d8bbf8ac2dc5dea86023095
MD5 96f7be2660d16e0760bcd72e2b193827
BLAKE2b-256 262d3e8b4b91ad3d1f6f56013f9419f627db04559d5a12b024d85f3fd64f1bfb

See more details on using hashes here.

File details

Details for the file iapp-2019.11.27.19.28.9-py3-none-any.whl.

File metadata

  • Download URL: iapp-2019.11.27.19.28.9-py3-none-any.whl
  • Upload date:
  • Size: 34.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.36.1 CPython/3.6.8

File hashes

Hashes for iapp-2019.11.27.19.28.9-py3-none-any.whl
Algorithm Hash digest
SHA256 1a06038ecf5976d14884eccfd27d1e849142964fe06de37bc165e944a70821b5
MD5 e672b61f71cab06de87dee082cf5e303
BLAKE2b-256 f3b2359c1f8be2923fa04bb872029ba168b392bc7dbf7b504531cca3aeec45c2

See more details on using hashes here.

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