Updated on 2024-03-06 GMT+08:00

Overview

Scenario

With DLI's SDKs, you can quickly and easily use DLI without worrying about the details of the requests. This section describes how to obtain and use SDKs in a Python environment.

Notes

  • To use DLI's Python SDKs to access a specific service's API, you need to ensure that the current service has been enabled and authorized on the DLI management console.
  • Python 2.7.10, 3.4.0, or later versions are required. The Visual C++ compilation environment is required, and Visual C++ build tools or Visual Studio must be installed.

    For details about how to configure the Python development environment, see Configuring the Python SDK Environment.

  • The DLI Python SDK dependencies include urllib3 1.15 or later, six 1.10 or later, certifi, and python-dateutil.
  • For details about how to obtain and install Python SDKs, see Obtaining and Installing SDKs.
  • To use SDKs to access DLI, you need to initialize the DLI client. During DLI client initialization, you can use the AK/SK or token for authentication. For details, see Initializing the DLI Client.

Python SDKs

Table 1 Python SDKs

SDK

Description

Queue-Related SDKs

This section provides instructions on how to use DLI's Python SDKs to retrieve a list of all queues.

Resource-Related SDKs

This section provides instructions on how to use DLI's Python SDKs to upload resource packages, query all resource packages, query specific resource packages, and delete resource packages.

SDKs Related to SQL Jobs

This section provides instructions on how to use DLI's Python SDKs for database-related operations, table-related operations, and job-related operations.

SDKs Related to Spark Jobs

This section provides instructions on how to use DLI's Python SDKs to submit Spark jobs, cancel Spark jobs, and delete Spark jobs.