All Products
Search
Document Center

CloudFlow:Install Serverless Workflow SDK for Python

Last Updated:Oct 30, 2023

This topic describes how to install Serverless workflow SDK for Python. This topic also provides an example on how to use the SDK to call API operations.

Prerequisites

  1. An Alibaba Cloud account and an AccessKey pair are created. An AccessKey pair contains an AccessKey ID and an AccessKey secret. You can go to the Security Management page of the Alibaba Cloud Management Console to create and view AccessKey pairs. You can also contact your system administrator to obtain an AccessKey pair.
  2. Serverless Workflow is activated in the Alibaba Cloud Management Console. This allows you to use Alibaba Cloud SDK to call the API operations of Serverless Workflow.

Install the SDK

We recommend that you run PIP commands to install Serverless Workflow SDK for Python. Examples:
  1. Run the following command to install the core library of Alibaba Cloud SDK for Python:
    pip install aliyun-python-sdk-core 
  2. Run the following command to install Serverless workflow SDK for Python.
    pip install aliyun-python-sdk-fnf     

SDK sample code

You can use the API-level SDK demos of different languages for debugging. For sample code, visit OpenAPI Explorer.