Use the show_versions() function to display client information, version information for client package dependencies and server information.
Server information is displayed only when a context is already created, otherwise only client information is displayed.
Example 1: Run 'show_versions()' without initiating connection
If you run show_versions() function without initiating connection, i.e., creating context, the function displays client information, version information for client package dependencies, and warning is thrown for server information.
>>> show_versions() ........... UserWarning: Server information requires a working connection object. warnings.warn("Server information requires a working connection object.") INSTALLED VERSIONS: Client -------------------------- python: 3.7.3.final.0 python-bits: 64 OS: Windows OS-release: 10 machine: AMD64 processor: Intel64 Family 6 Model 94 Stepping 3, GenuineIntel byteorder: little LC_ALL: None LANG: None LOCALE: None.None pandas: 0.24.2 sqlalchemy: 1.3.5 teradatasqlalchemy: 16.20.0.8 teradatasql: 16.20.0.55 teradataml: 16.20.0.4 INSTALLED VERSIONS: Server --------------------------
Example 2: Run 'show_versions()' after initiating connection
If you run the show_versions() function after initiating connection, i.e., creating context, the function displays client information, version information for client package dependencies and server information.
>>> from teradataml import show_versions >>> ## Make sure to execute create_context() before this.
>>> show_versions() INSTALLED VERSIONS: Client -------------------------- python: 3.7.3.final.0 python-bits: 64 OS: Windows OS-release: 10 machine: AMD64 processor: Intel64 Family 6 Model 94 Stepping 3, GenuineIntel byteorder: little LC_ALL: None LANG: None LOCALE: None.None pandas: 0.24.2 sqlalchemy: 1.3.5 teradatasqlalchemy: 16.20.0.8 teradatasql: 16.20.0.55 teradataml: 16.20.0.4 INSTALLED VERSIONS: Server -------------------------- BUILD_VERSION: 08.10.01.00-4180efe RELEASE: Vantage 1.1 GA