Package soovee_app :: Package cli :: Module entry
[frames] | no frames]

Module entry

SooVee Serial Audio Manager - Entry support module for the command inface. It presents a string to the terminal and waits for the response.

Functions
tuple
choice(options, string)
Provide standard input and verification of an option selection.
basestring
path(directory)
Provide standard input format for directory selection.
tuple
value(length, string)
Provide standard input format for feed id entry of a specific length.
Variables
  __package__ = None
Function Details

choice(options, string)

 

Provide standard input and verification of an option selection.

Parameters:
  • options (list) - List of accepted options.
  • string (basestring) - Description of selection.
Returns: tuple
Selection validity and lowercased value.

path(directory)

 

Provide standard input format for directory selection.

Parameters:
  • directory (basestring) - Directory to be used as default. None value will be '~/'
Returns: basestring
Directory selected.

value(length, string)

 

Provide standard input format for feed id entry of a specific length.

Parameters:
  • length (int) - Accepted length of value.
  • string (basestring) - Description of selection.
Returns: tuple
Value validity and value.