Teradata Package for Python Function Reference on VantageCloud Lake | 17.20 - get_license - Teradata Package for Python - Look here for syntax, methods and examples for the functions included in the Teradata Package for Python.

Teradata® Package for Python Function Reference on VantageCloud Lake

Deployment
VantageCloud
Edition
Lake
Product
Teradata Package for Python
Release Number
17.20
Publication Date
November 2022
Content Type
Programming Reference
Publication ID
B700-4500-112K
ft:locale
en-US
ft:lastEdition
2024-02-21
ft:sourceId
FTML
dita:id
TeradataPython_FxRef_Lake_1720
Product Category
Teradata Vantage
teradataml.catalog.byom.get_license = get_license()
DESCRIPTION:
    Get the license information set by set_license() function at the session level.
 
PARAMETERS:
    None.
 
RETURNS:
    None.
 
RAISES:
    None.
 
EXAMPLES:
    >>> import os, teradataml
    >>> from teradataml import save_byom, get_license, set_license
 
    # Example 1: When 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: When license is present in the column='license_data' and 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'
    >>>