Skip to main content

: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()
app.add_route("/f1", pred1, version="1")
app.add_route("/f2", pred2, version="2")
app.add_route("/f3", pred3, version="3")

app.run()

Metadata

Release files for iapp 0.0.1565245778

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for iapp 0.0.1565245778
File Size Uploaded
iapp-0.0.1565245778.tar.gz 3.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for iapp 0.0.1565245778
File Interpreter ABI Platform
iapp-0.0.1565245778-py3-none-any.whl Python 3 none any Details

Total release size: 7.3 kB

Release files / iapp-0.0.1565245778.tar.gz

Download URL iapp-0.0.1565245778.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
f7a09e57e1122e0a9aa9147cfd8007546adc48c86530a1181e27c563c1646ede
BLAKE2b-256 checksum
How to use checksums
65fdb42ba44563f0797feb1876ff7f773bbafdae83f6508ca379f331d6436e51
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / iapp-0.0.1565245778-py3-none-any.whl

Download URL iapp-0.0.1565245778-py3-none-any.whl
Size 4.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a34168575b00c1de5ce92b652da8032368fad1ea61507f462868851cdd7c878a
BLAKE2b-256 checksum
How to use checksums
87e3f3013fcd60a204d3b843eceb429f92e06bd607c261a359eecc9cbfde182c
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.0.1565245778 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page