Skip to main content

Tencentcloud DLC connector, connect to DLC engines using SQL.

Project description

Tencent Cloud DLC Connector is a python SDK connecting to DLC elastic engines, compatible with DPAPI2.0

The SDK works on Python versions:

  • 3.9

Quick Start

First, install the library:

$ pip install tencentcloud-dlc-connector

or download source code from github and install:

import tdlc_connector
import datatime
from tdlc_connector import constants

conn = tdlc_connector.connect(region="<REGION>",
    secret_id="<SECRET_ID>",
    secret_key="<SECRET_KEY>",
    engine="<ENGINE>",
    engine_type=constants.EngineType.SPARK,
    result_style=constants.ResultStyles.LIST,
    download=False,
    mode=constants.Mode.LASY)

cursor = conn.cursor()
count = cursor.execute("SELECT 1")
cursor.fetchone()

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

tencentcloud-dlc-connector-1.2.0.tar.gz (15.3 kB view details)

Uploaded Source

File details

Details for the file tencentcloud-dlc-connector-1.2.0.tar.gz.

File metadata

File hashes

Hashes for tencentcloud-dlc-connector-1.2.0.tar.gz
Algorithm Hash digest
SHA256 a6c6e1cf200b1614aaf8e3c107a66d24930d6fe615b5b3fd25d4a42f369e34db
MD5 9cf83731f4f7a7acb02c39ae6bb89cac
BLAKE2b-256 3b492c6ebf54b2cb633f214f23499115094de5f614bef095e4c162fca86835cf

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