Module Expr Str ImportFrom alias ImportFrom alias identifier ImportFrom alias alias alias alias ImportFrom alias alias ImportFrom alias alias alias alias alias ClassDef bases NameLoad body Expr Str Assign NameStore Call NameLoad NameLoad TupleLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad keyword ListLoad FunctionDef arguments args NameParam defaults body Expr Str Return SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return CompareIn AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore NameLoad If BoolOpAnd AttributeLoad NameLoad attr AttributeLoad NameLoad attr CompareEq Call NameLoad AttributeLoad NameLoad attr BinOpSub SubscriptLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Index Num Num body Assign NameStore NameLoad For NameStore AttributeLoad NameLoad attr body If BoolOpAnd Call NameLoad NameLoad NameLoad CompareNotIn AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore NameLoad Break If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr ListLoad Str Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr ListLoad Str AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr If CompareIs Call AttributeLoad NameLoad attr NameLoad body Return NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad keyword Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore CompareIsNot Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad keyword NameLoad keyword SubscriptLoad NameLoad Index NameLoad If CompareEq SubscriptLoad NameLoad Index NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr NameLoad orelse If CompareEq AttributeLoad AttributeLoad NameLoad attr attr ListLoad Num body Return Call AttributeLoad NameLoad attr ListLoad Str AttributeLoad NameLoad attr NameLoad ListLoad Str Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Return Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Call NameLoad NameLoad NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore SubscriptLoad NameLoad Index NameLoad If CompareIn NameLoad AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad orelse Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr ListLoad Str NameLoad NameLoad Return TupleLoad ListLoad NameLoad NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr ListLoad Str NameLoad NameLoad Return TupleLoad ListLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad For NameStore NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body Expr Yield NameLoad For NameStore Call AttributeLoad NameLoad attr body Expr Yield NameLoad decorator_list NameLoad decorator_list
N/A N/A 
Parse a stream of serialized messages into a forest of
``WrittenAction`` and ``WrittenMessage`` objects.
 __future__ unicode_literals six text_type unicode pyrsistent PClass pmap_field pset_field discard _message WrittenMessage TASK_UUID_FIELD _action TaskLevel WrittenAction ACTION_STATUS_FIELD STARTED_STATUS ACTION_TYPE_FIELD Task N/A PClass N/A N/A 
    A tree of actions with the same task UUID.
     N/A _nodes N/A pmap_field TaskLevel N/A WrittenAction WrittenMessage N/A _completed N/A pset_field TaskLevel N/A _root_level N/A TaskLevel level N/A root N/A N/A self N/A N/A N/A 
        @return: The root L{WrittenAction}.
         N/A N/A N/A self _nodes N/A N/A self _root_level N/A is_complete N/A N/A self N/A N/A N/A 
        @return bool: True only if all messages in the task tree have been
        added to it.
         N/A N/A N/A self _root_level N/A self _completed N/A _insert_action N/A N/A self node N/A N/A N/A 
        Add a L{WrittenAction} to the tree.

        Parent actions will be created as necessary.

        @param child: A L{WrittenAction} to add to the tree.

        @return: Updated L{Task}.
         N/A task self N/A N/A N/A node end_message N/A node start_message N/A N/A len N/A node children N/A N/A N/A N/A N/A node end_message task_level level N/A -1 2 N/A N/A completed True N/A child N/A node children N/A N/A N/A N/A isinstance child WrittenAction N/A N/A child task_level N/A self _completed N/A N/A completed False N/A N/A completed N/A N/A task N/A N/A task transform N/A _completed N/A N/A N/A s N/A N/A N/A s add N/A node task_level N/A task N/A N/A task transform N/A _nodes N/A node task_level node N/A N/A N/A task _ensure_node_parents node N/A _ensure_node_parents N/A N/A self child N/A N/A N/A 
        Ensure the node (WrittenAction/WrittenMessage) is referenced by parent
        nodes.

        Parent actions will be created as necessary.

        @param child: A L{WrittenMessage} or L{WrittenAction} which is
            being added to the tree.

        @return: Updated L{Task}.
         N/A task_level N/A child task_level N/A N/A N/A N/A task_level parent None N/A N/A self N/A parent N/A N/A N/A self _nodes get N/A N/A task_level parent N/A N/A parent None N/A N/A parent N/A WrittenAction task_level N/A N/A task_level parent task_uuid N/A child task_uuid N/A parent N/A N/A parent _add_child child N/A N/A N/A self _insert_action parent N/A add N/A N/A self message_dict N/A N/A N/A 
        Update the L{Task} with a dictionary containing a serialized Eliot
        message.

        @param message_dict: Dictionary whose task UUID matches this one.

        @return: Updated L{Task}.
         N/A is_action N/A N/A N/A message_dict get ACTION_TYPE_FIELD None N/A written_message N/A N/A WrittenMessage from_dict message_dict N/A is_action N/A N/A action_level N/A N/A N/A written_message task_level parent N/A action N/A N/A N/A self _nodes get action_level N/A N/A action None N/A N/A action N/A WrittenAction task_level action_level task_uuid N/A message_dict N/A TASK_UUID_FIELD N/A N/A N/A message_dict N/A ACTION_STATUS_FIELD STARTED_STATUS N/A N/A action N/A N/A action _start written_message N/A N/A action N/A N/A action _end written_message N/A N/A N/A self _insert_action action N/A N/A N/A N/A N/A written_message task_level level N/A 1 N/A N/A N/A N/A self transform N/A _nodes N/A self _root_level written_message N/A _completed N/A N/A N/A s N/A N/A N/A s add N/A self _root_level N/A N/A N/A N/A self _ensure_node_parents written_message N/A N/A Parser N/A PClass N/A N/A 
    Parse serialized Eliot messages into L{Task} instances.

    @ivar _tasks: Map from UUID to corresponding L{Task}.
     N/A _tasks N/A pmap_field unicode Task add N/A N/A self message_dict N/A N/A N/A 
        Update the L{Parser} with a dictionary containing a serialized Eliot
        message.

        @param message_dict: Dictionary of serialized Eliot message.

        @return: Tuple of (list of completed L{Task} instances, updated
            L{Parser}).
         N/A uuid N/A message_dict N/A TASK_UUID_FIELD N/A N/A uuid N/A self _tasks N/A N/A task N/A N/A self _tasks N/A uuid N/A N/A task N/A Task N/A task N/A N/A task add message_dict N/A N/A N/A task is_complete N/A N/A parser N/A N/A self transform N/A _tasks uuid discard N/A N/A N/A task parser N/A N/A parser N/A N/A self transform N/A _tasks uuid task N/A N/A N/A parser N/A incomplete_tasks N/A N/A self N/A N/A N/A 
        @return: List of L{Task} that are not yet complete.
         N/A N/A list N/A N/A N/A self _tasks values N/A parse_stream N/A N/A cls iterable N/A N/A N/A 
        Parse a stream of messages into a stream of L{Task} instances.

        :param iterable: An iterable of serialized Eliot message dictionaries.

        :return: An iterable of parsed L{Task} instances. Remaining
            incomplete L{Task} will be returned when the input stream is
            exhausted.
         N/A parser N/A Parser N/A message_dict iterable N/A N/A N/A completed parser N/A N/A parser add message_dict N/A task completed N/A N/A N/A task N/A task N/A N/A parser incomplete_tasks N/A N/A N/A task N/A classmethod N/A