Skip to main content

description

Project description

:rocket: RestfulApi :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)
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.8.30.14.22.20.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

iapp-2019.8.30.14.22.20-py3-none-any.whl (23.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: iapp-2019.8.30.14.22.20.tar.gz
  • Upload date:
  • Size: 7.1 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.32.1 CPython/3.6.8

File hashes

Hashes for iapp-2019.8.30.14.22.20.tar.gz
Algorithm Hash digest
SHA256 42b6fdfcb7d6e4193f64a65a2a91e11ec7ee496422e357a917011a6181ce692a
MD5 af8fe0a4765795183bf18970e53b62ff
BLAKE2b-256 a43fe661d4886e1f34a07dd1436258eb4adb99cfc8ddf4e24f5490b11d4cf16d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: iapp-2019.8.30.14.22.20-py3-none-any.whl
  • Upload date:
  • Size: 23.0 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.32.1 CPython/3.6.8

File hashes

Hashes for iapp-2019.8.30.14.22.20-py3-none-any.whl
Algorithm Hash digest
SHA256 a0f66e21cebba89de3f26873382497ca4b854f5ebca748132681e73f4c580747
MD5 a73e856dea858eb9ee97c16afbd9a75a
BLAKE2b-256 9b43bd32f62e4e0845b13a7c7f8808a985e2b598d3adee5101caee1f1c6d3b7d

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