COMPS.CredentialPrompt module

class COMPS.CredentialPrompt.CredentialPrompt

Bases: object

Abstract definition for our credential prompts.

abstract prompt()

The prompt method will ask a user for COMPS usernme and password. It should return a duct containing the username and password keys and values :return:

class COMPS.CredentialPrompt.ConsoleCredentialPrompt

Bases: COMPS.CredentialPrompt.CredentialPrompt

A simple console based credential prompt

prompt()

The prompt method will ask a user for COMPS usernme and password. It should return a duct containing the username and password keys and values :return:

class COMPS.CredentialPrompt.TKCredentialPrompt

Bases: COMPS.CredentialPrompt.CredentialPrompt

A TK based credential prompt

prompt()

The prompt method will ask a user for COMPS usernme and password. It should return a duct containing the username and password keys and values :return:

COMPS.CredentialPrompt.get_credential_prompt()

Determines the appropriate CredentialPrompt. If TK is available, we use that, otherwise we fallback to Console based login.

Returns

CredentialPrompt factory