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.
-
output = Attribute(name='output', default=NOTHING, validator=None, repr=True, cmp=True, hash=True, init=True, convert=None, metadata=mappingproxy({}))
-
class
effect.io.Prompt(prompt)
Bases: object
Get some input from the user, with a prompt.
-
prompt = Attribute(name='prompt', default=NOTHING, validator=None, repr=True, cmp=True, hash=True, init=True, convert=None, metadata=mappingproxy({}))
-
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).