rtCommon.projectUtils

This module contains utility functions used internally by the rtcloud services

Module Contents

Functions

watchForExit()

Create a thread which will detect if the parent process exited by

processShouldExitThread()

If this client was spawned by a parent process, then by listening on

formatFileData(filename, data)

Convert raw bytes to a specific memory format such as dicom or matlab data

login(serverAddr, username, password[, testMode])

Logs in to a web service, prompting user for username/password as needed,

checkSSLCertAltName(certFilename, altName)

Check if altName is list as an alternate server name in the ssl certificate

makeSSLCertFile(serverName)

rtCommon.projectUtils.watchForExit()

Create a thread which will detect if the parent process exited by reading from stdin, when stdin is closed exit this process.

rtCommon.projectUtils.processShouldExitThread()

If this client was spawned by a parent process, then by listening on stdin we can tell that the parent process exited when stdin is closed. When stdin is closed we can exit this process as well.

rtCommon.projectUtils.formatFileData(filename, data)

Convert raw bytes to a specific memory format such as dicom or matlab data

rtCommon.projectUtils.login(serverAddr, username, password, testMode=False)

Logs in to a web service, prompting user for username/password as needed, and returns a session_cookie to allow future requests without logging in.

rtCommon.projectUtils.checkSSLCertAltName(certFilename, altName)

Check if altName is list as an alternate server name in the ssl certificate

rtCommon.projectUtils.makeSSLCertFile(serverName)