Python script to connect to mainframe
from mainframe import mainframeClient if not my_client.connect(): print('Connection failed !') exit(1) my_client.saveScreen(fileName='home.html') my_client.sendText('user1') my_client.sendTab() my_client.sendText('password1') my_client.sendEnter() my_client.clearScreen() my_client.sendText('CEMT INQ TASK') my_client.sendEnter() my_client.saveScreen(fileName='tasks.html') my_client.sendPF(3) my_client.sendPF(3) my_client.disconnect() my_client.endSession()