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.3.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.3-py3-none-any.whl (11.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: alipay_faas_server_sdk-0.0.3.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.3.tar.gz
Algorithm Hash digest
SHA256 923e45a1cb49864c18dc28ab4a02f20c02b1bf81e03a8ea907eb458632a07770
MD5 10a3a33544c7048384145b583759a874
BLAKE2b-256 d379b32348ff0715a929cb6c9711382777adb7d0390dec510dbf2437c3d7a17e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for alipay_faas_server_sdk-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8393de9e03f068e5a0eea0c4c83a1e14c457c0722e53cdc3382aa8b217644c82
MD5 12de12eed3156cd515ab89072c7c4904
BLAKE2b-256 08cecba9d1b5634f5824c6143fc4fa98b1979d0f6c160dcc294c10c16e40f938

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