Metadata-Version: 2.1
Name: tencentcloud-dlc-connector
Version: 1.0.0b1
Summary: Tencentcloud DLC connector, connect to DLC engines using SQL.
Home-page: UNKNOWN
Author: Tencentcloud DLC Team.
Maintainer-email: valuxzhao@tencent.com
License: Apache License Version 2.0
Platform: any
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9

============================
Tencent Cloud DLC Connector
============================

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:

.. code-block:: sh

    $ pip install tencentcloud-dlc-connector

or download source code from github and install:

.. code-block:: python

    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()







