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.1.tar.gz (8.2 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.1-py3-none-any.whl (11.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: alipay_faas_server_sdk-0.0.1.tar.gz
  • Upload date:
  • Size: 8.2 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.1.tar.gz
Algorithm Hash digest
SHA256 50d4110ae4a20406bdcd9130ab3ae761a084f8f8f6debf99dc7ab83234134cff
MD5 9974414bcbd351cfe88001b201321487
BLAKE2b-256 38f4e0f860cc7a477362b8f836da8c54f8e85644a696b79395e6febe1a966c89

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for alipay_faas_server_sdk-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0358cf95c00292c8124e63c4547834c63a168141d5f36c10de5d3c560c88238d
MD5 c4517d74b224e2b66a445a76fec7e3cd
BLAKE2b-256 474eb04bf21be33ffe751c6c90ba1dbe7633991a0822101d8c18e0f8ee39b97f

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