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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

iapp-0.0.1565836593-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: iapp-0.0.1565836593.tar.gz
  • Upload date:
  • Size: 3.2 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.9.1 tqdm/4.32.1 CPython/3.6.8

File hashes

Hashes for iapp-0.0.1565836593.tar.gz
Algorithm Hash digest
SHA256 8cea44570f3533ff753c1738d5ab171f7077a4bd477456bb312d5d880f7e804a
MD5 d51a2819ab1c2407e532a96c3ddcaf6c
BLAKE2b-256 33f809c30214468c97527167b34d379373096bfba2791f1581cd251ea1fcd631

See more details on using hashes here.

File details

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

File metadata

  • Download URL: iapp-0.0.1565836593-py3-none-any.whl
  • Upload date:
  • Size: 4.2 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.9.1 tqdm/4.32.1 CPython/3.6.8

File hashes

Hashes for iapp-0.0.1565836593-py3-none-any.whl
Algorithm Hash digest
SHA256 6217adcf46459ad2489ea326d18fea699ebbd0419159673d5670576445882128
MD5 1e7d310504f53e7e95783f33cc4a1ca2
BLAKE2b-256 cda6483dfb37bb7a87e1fe8158158fe5bf796aa22b853864706b4cd2d6bd7ad6

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