get_license() | Teradata Package for Python - get_license() - Teradata VantageCloud Lake

Lake - Analyze Your Data with ClearScape Analytics™

Deployment
VantageCloud
Edition
Lake
Product
Teradata VantageCloud Lake
Release Number
Publication Date
February 2025
Publication ID
B700-4600-004K
ft:locale
en-US
ft:lastEdition
2026-02-20
dita:mapPath
tcl1683670667798.ditamap
dita:ditavalPath
pny1626732985837.ditaval
ft:sourceId
dita
dita:id
tcl1683670667798

The get_license() function allows a user to get the license information set by the set_license() at the session level.

Example Setup

>>> import os, teradataml
>>> from teradataml import save_byom, get_license, set_license

Example 1: License is passed as a string

>>> set_license(license='eZSy3peBVRtjA-ibVuvNw5A5sUL9KU_kP35Vq4ZNBQ3iGY6oVSpE6g97sFY2LI',
source='string')

The license parameters are set.
The license is: eZSy3peBVRtjA-ibVuvNw5A5sUL9KU_kP35Vq4ZNBQ3iGY6oVSpE6g97sFY2LI
>>> get_license()

The license is: eZSy3peBVRtjA-ibVuvNw5A5sUL9KU_kP35Vq4ZNBQ3iGY6oVSpE6g97sFY2LI

Example 2: License is present in a column of a table

In this example, license is present in column 'license_data' of the table 'byom_licensed_models'.

>>> set_license(license='license_data', table_name='byom_licensed_models', schema_name='alice',
source='column')

The license parameters are set.
The license is present in the table='byom_licensed_models', schema='alice' and column='license_data'.
>>> get_license()

The license is stored in:
table = 'byom_licensed_models'
schema = 'alice'
column = 'license_data'