2. Start the CLI in Python

To use Python as the interactive or scripting language HammerDB will use the system installed Python environment and will be dependent on a particular version as follows:

Table 9.1. Python version dependency

Linux3.8
Red Hat Enterprise Linux3.6
Windows3.10

Note that if an alternative version is required then HammerDB can be build from source to change the Python version.

To start the CLI in Python mode run the hammerdbcli command from the command line in Linux specifying the "py" or "python" options. HammerDB will then accept Python syntax commands enabling it to be more closely integrated into existing Python environments.

Figure 9.3. CLI Python

CLI Python