Skip to main content

支付宝云开发ClientSDK

安装

pip install alipay-faas-client-sdk

使用

引用SDK,示例代码如下:

import json
from alipay_faas_client_sdk import Cloud


def main(event, context):
    cloud = Cloud(
        app_id="2021001234567890",
        env_id="env-00xyzxyzxyz",
        access_key_id="ak_xxxxx",
        access_key_secret="sk_yyyyy",
    )
    data = {"name": "bob", "age": 23}
    result = cloud.callFunction("add-user", data)
    print(json.dumps(result, indent=4, default=vars))

Release files for alipay-faas-client-sdk 0.0.1

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-client-sdk 0.0.1
File Size Uploaded
alipay_faas_client_sdk-0.0.1.tar.gz 7.1 kB Details

Built distribution (wheel)

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

Total release size: 16.7 kB

Release files / alipay_faas_client_sdk-0.0.1.tar.gz

Download URL alipay_faas_client_sdk-0.0.1.tar.gz
Size 7.1 kB
Tags Source
SHA-256 checksum
How to use checksums
78b4b622b74f46f9589cd0437067e86873189f7e6f9fcbb9e4073701b1045944
BLAKE2b-256 checksum
How to use checksums
e758972ce9ad256d5718d513fd971cc3fc4df65c28e1f5f607745ebd0b01db51
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_client_sdk-0.0.1-py3-none-any.whl

Download URL alipay_faas_client_sdk-0.0.1-py3-none-any.whl
Size 9.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6c3367b72d18a7955ac7c156801f70eb23de21b3cbddf8a4088cb325c16d27c3
BLAKE2b-256 checksum
How to use checksums
71cf37f58c6da2bb88bb0d33efaa4d9311c9a28825a721fdcf5ea79a32c43151
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.1 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