Module Expr Str Import alias ImportFrom alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore ListLoad Str Str Assign NameStore ListLoad Dict Str Str Str ListLoad Dict Str Str Str NameLoad Dict Str Str Str NameLoad Dict Str Str Str NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Dict decorator_list FunctionDef arguments args NameParam defaults body Expr Str If AttributeLoad NameLoad attr body Return Str orelse For NameStore TupleLoad Str Str Str body If Call AttributeLoad NameLoad attr NameLoad body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Return If AttributeLoad NameLoad attr body AugAssignAdd NameStore Call AttributeLoad Str attr NameLoad orelse Assign NameStore CompareEq NameLoad Str AugAssignAdd NameStore Call AttributeLoad Str attr NameLoad If BoolOpAnd NameLoad UnaryOpNot Call AttributeLoad NameLoad attr Str body AugAssignAdd NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults vararg body Expr Str If CompareNotEq Call NameLoad NameLoad Num body Raise NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Num If BoolOpAnd UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Raise Call NameLoad Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Index Num attr If BoolOpAnd CompareNotEq NameLoad Str CompareEq Call AttributeLoad NameLoad attr Str body Raise Call NameLoad Str If CompareEq NameLoad Str body Assign NameStore BinOpAdd Str NameLoad Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str Num Index Num Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareIn Str AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore IfExp AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list
N/A N/A  This module provides the website-specific event hook plugins that implement
    the 'sites' settings block in the task configuration file.

    The plugin blocks websites during an active task.
     N/A os focus common focus.plugin base PlaySound N/A N/A base Plugin N/A N/A  Plays sound files at task start and completion.
         N/A name PlaySound N/A version 0.1 N/A target_version >=0.1 N/A events N/A task_start task_end N/A options N/A N/A block options sounds N/A N/A name allow_duplicates play False N/A name allow_duplicates end_play False N/A name allow_duplicates timer_play False __init__ N/A N/A self N/A N/A N/A N/A N/A N/A super PlaySound self __init__ N/A N/A self files N/A N/A _get_external_player N/A N/A self N/A N/A N/A  Determines external sound player to available.

            Returns string or ``None``.
             N/A N/A common IS_MACOSX N/A N/A afplay N/A N/A name N/A mpg123 play aplay N/A N/A N/A N/A common which name N/A N/A name N/A None N/A _play_sound N/A N/A self filename N/A N/A N/A  Shells player with the provided filename.

            `filename`
                Filename for sound file.
             N/A command N/A N/A self _get_external_player N/A N/A command N/A N/A N/A N/A common IS_MACOSX N/A N/A command N/A N/A  "{0}" format filename N/A N/A is_play N/A command play N/A command N/A N/A  -q "{0}" format filename N/A N/A is_play N/A N/A N/A common which pulseaudio N/A N/A command  -t alsa N/A N/A N/A common shell_process command background True N/A parse_option N/A N/A self option block_name N/A values N/A N/A  Parse options for play, end_play, and timer_play.
             N/A N/A N/A len values 1 N/A N/A TypeError N/A value N/A N/A N/A os path realpath N/A N/A N/A os path expanduser N/A values N/A 0 N/A N/A N/A N/A N/A N/A os path isfile value N/A N/A N/A N/A os path islink value N/A N/A N/A ValueError N/A N/A Sound file "{0}" does not exist format value N/A ext N/A N/A N/A N/A N/A N/A os path splitext value N/A 1 lower N/A N/A N/A ext wav N/A N/A N/A self _get_external_player aplay N/A N/A N/A ValueError Only WAV sound file supported for 'aplay' N/A N/A option play N/A N/A option N/A start_ option N/A key N/A N/A N/A option split _ 1 N/A 0 N/A N/A N/A self files N/A key value N/A on_taskstart N/A N/A self task N/A N/A N/A  Play sounds at task start.
             N/A N/A start N/A self files N/A N/A N/A N/A self _play_sound N/A N/A self files N/A start N/A on_taskend N/A N/A self task N/A N/A N/A  Play sounds at task end.
             N/A key N/A N/A task elapsed timer end N/A filename N/A N/A N/A self files get key N/A filename N/A N/A N/A N/A self _play_sound filename N/A N/A