Skip to main content

Alipay FaaS Server SDK

Project description

支付宝云开发服务端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

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

alipay_faas_server_sdk-0.0.2.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

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

alipay_faas_server_sdk-0.0.2-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

Details for the file alipay_faas_server_sdk-0.0.2.tar.gz.

File metadata

  • Download URL: alipay_faas_server_sdk-0.0.2.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.5

File hashes

Hashes for alipay_faas_server_sdk-0.0.2.tar.gz
Algorithm Hash digest
SHA256 be20ff3507553e0fd4d8082a5612f7eb3d63438167930460d554af2966b3219c
MD5 efe0d9a7dae996bba7f0622e24d0c269
BLAKE2b-256 006cdfaa62fe43e0e364985d4cd517b6dba18255f4f459e8cd96ad7edde5732b

See more details on using hashes here.

File details

Details for the file alipay_faas_server_sdk-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for alipay_faas_server_sdk-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 085a755a5a61907db3f3eb8ee307311ae47705059c3b1e0165512cd76bbb09bb
MD5 74d7382fd4168757072ef8319db27989
BLAKE2b-256 36fea114039a69290ded65855c71869788304cfdb1876b3dabb4cc356919c7f1

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