Skip to main content

支付宝云开发服务端SDK

安装

在云函数的requirements.txt中添加依赖:

alipay-faas-server-sdk

使用

在云函数中引用SDK,示例代码如下:

from alipay_faas_server_sdk import Cloud


def main(event, context):
    cloud = Cloud(context)
    context['logger'].info("function start ...")

    # call function test-sum
    response = cloud.callFunction("test-sum", {'x': 1, 'y': 2})
    return response.data

Release files for alipay-faas-server-sdk 0.0.3

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

Source distribution (sdist)

Source distribution for alipay-faas-server-sdk 0.0.3
File Size Uploaded
alipay_faas_server_sdk-0.0.3.tar.gz 8.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for alipay-faas-server-sdk 0.0.3
File Interpreter ABI Platform
alipay_faas_server_sdk-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 20.0 kB

Release files / alipay_faas_server_sdk-0.0.3.tar.gz

Download URL alipay_faas_server_sdk-0.0.3.tar.gz
Size 8.2 kB
Tags Source
SHA-256 checksum
How to use checksums
923e45a1cb49864c18dc28ab4a02f20c02b1bf81e03a8ea907eb458632a07770
BLAKE2b-256 checksum
How to use checksums
d379b32348ff0715a929cb6c9711382777adb7d0390dec510dbf2437c3d7a17e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.5

Release files / alipay_faas_server_sdk-0.0.3-py3-none-any.whl

Download URL alipay_faas_server_sdk-0.0.3-py3-none-any.whl
Size 11.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8393de9e03f068e5a0eea0c4c83a1e14c457c0722e53cdc3382aa8b217644c82
BLAKE2b-256 checksum
How to use checksums
08cecba9d1b5634f5824c6143fc4fa98b1979d0f6c160dcc294c10c16e40f938
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.5

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

2 release files

0.0.1

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