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.4.1.tar.gz (20.5 kB view details)

Uploaded Source

File details

Details for the file tencentcloud_dlc_connector-1.4.1.tar.gz.

File metadata

File hashes

Hashes for tencentcloud_dlc_connector-1.4.1.tar.gz
Algorithm Hash digest
SHA256 65f2625f06ce6bf54da7d6c46b514fd1ad68677fca1ffbef2820c1ee18c3e901
MD5 5b9180ce9e36c488aa8ae804a3c1d1df
BLAKE2b-256 082cf88382c4a3637e6882d820b26b4f2c4f7e8f5ebf859d088f28124f20c09c

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