• Home
  • API Documentation
  • wte.scripts.main – Administration application

wte.scripts.main – Administration application¶

The main module contains the core of the administration application WTE, via the main() function.

wte.scripts.main.get_user_parameter(prompt, default='')[source]¶

The get_user_parameter() function provides a generic helper function that prompts the user for a value.

Parameters:
  • prompt (unicode) – The prompt to display to the user
  • default (unicode) – The default value to return if the user does not provide a value
Returns:

The user’s input

Return type:

unicode

wte.scripts.main.main()[source]¶

The main() function handles the creation of the ArgumentParser that processes the administrative application’s command-line parameters. It calls the init() functions on the modules that implement the actual functionality to build up the complete parser and then calls the appropriate function for the command the user provided on the command-line.

  • wte.scripts.database – Database scripts
  • wte.scripts.timed_tasks – Script to run timed tasks