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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: iapp-2019.11.27.19.7.41.tar.gz
  • Upload date:
  • Size: 10.8 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.7.41.tar.gz
Algorithm Hash digest
SHA256 29339faaa7ac3d2fe661458ac33b45d02ffef7600e97f95bb54209bffe52a896
MD5 6d34d09efe854a030ce17206abbc0d4a
BLAKE2b-256 70c971ee8389569d53826d5fa83c8bc956170e20a4c9a307b46660784104f6e3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: iapp-2019.11.27.19.7.41-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.7.41-py3-none-any.whl
Algorithm Hash digest
SHA256 861385439232fb940a0cb60c43acc328b0e77ed72ed53532aa9a6d670352dec6
MD5 727151a5f078a6508645d3f3b7254d19
BLAKE2b-256 49d986eb316a9948097ff219d2ff3e33ce32e2c0aa47fbf6ffa3d53ef2dd5fae

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