Testing Connection to Vantage | Teradata Package for Python - Testing Connection to Vantage - Teradata Vantage

Teradata® VantageCloud Lake

Deployment
VantageCloud
Edition
Lake
Product
Teradata Vantage
Published
January 2023
Language
English (United States)
Last Update
2024-02-17
dita:mapPath
phg1621910019905.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
phg1621910019905
After installing the teradataml package on the client, you can import the teradataml module, and establish a connection to Vantage from the Python interpreter on the client.
  1. Open Python interpreter.
  2. Import the teradataml module:
    from teradataml import *
  3. Create the connection context using the create_context command:
    connection_name = create_context(host = "tdhost_fqdn", username="username", password = "password")
  4. Run the following command to check the connection context:
    print (connection_name)