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

Uploaded Source

Built Distribution

iapp-2019.12.10.13.55.23-py3-none-any.whl (39.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: iapp-2019.12.10.13.55.23.tar.gz
  • Upload date:
  • Size: 12.3 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.12.10.13.55.23.tar.gz
Algorithm Hash digest
SHA256 53d51e7c6bf698305a17fa089c9e351a71527d59bcbde9e73822e3b2bb44b19f
MD5 3ff51bdb9eccd4595d16754ddcd593b5
BLAKE2b-256 d634a4041d3dfd7fd23c9303cf3637634001b61b58fc9302142d3d3e9c790746

See more details on using hashes here.

File details

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

File metadata

  • Download URL: iapp-2019.12.10.13.55.23-py3-none-any.whl
  • Upload date:
  • Size: 39.7 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.12.10.13.55.23-py3-none-any.whl
Algorithm Hash digest
SHA256 9e91733d00b1aa85354fe9fad4ac26126f51df08724ed509c3f71350d33ea461
MD5 773e930202ff45d1740dc19a7e5c8aa7
BLAKE2b-256 ee17958a754f3dd62c47406a6b4200c2b247cadf4827fc0899967cf89eb83662

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