Testing Connection to Vantage - Teradata Python Package

Teradata® Python Package User Guide

Product
Teradata Python Package
Release Number
16.20
Published
February 2020
Language
English (United States)
Last Update
2020-02-29
dita:mapPath
rkb1531260709148.ditamap
dita:ditavalPath
Generic_no_ie_no_tempfilter.ditaval
dita:id
B700-4006
lifecycle
previous
Product Category
Teradata Vantage
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>)