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.PRESTO,
    result_style=constants.ResultStyle.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.0.1.tar.gz (12.5 kB view details)

Uploaded Source

File details

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

File metadata

File hashes

Hashes for tencentcloud-dlc-connector-1.0.1.tar.gz
Algorithm Hash digest
SHA256 d762bba03195d5cba883f990855e64b2b8d522dcc0868212c6c590591aebe829
MD5 b6a6198870d994f2069ddf878857e1c0
BLAKE2b-256 8cb1e20eaa96e5ebb62f868c6463f6e355b04d798b2a1bb680657d2180521941

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