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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file tencentcloud-dlc-connector-1.0.7.tar.gz.
File metadata
- Download URL: tencentcloud-dlc-connector-1.0.7.tar.gz
- Upload date:
- Size: 12.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
286262d1a3c62027e0326c318762eecf0a3621318367b7f25c09b3c888582f4f
|
|
| MD5 |
7571b7752d2eea18deb5fff0d9185a15
|
|
| BLAKE2b-256 |
b0426d15aa78f2b7c423c8ff298211cdeaa15debd760da6a509d533a2ee25a39
|