3.2.4. effect.io module

Intents and performers for basic user interaction.

Use effect.io.stdio_dispatcher as a dispatcher for Display and Prompt that uses built-in Python standard io facilities.

class effect.io.Display(output)

Bases: object

Display some text to the user.

class effect.io.Prompt(prompt)

Bases: object

Get some input from the user, with a prompt.

effect.io.perform_display_print(*args, **kwargs)

Perform a Display intent by printing the output.

effect.io.perform_get_input_raw_input(*args, **kwargs)

Perform a Prompt intent by using raw_input (or input on Python 3).