Module Import alias alias alias alias ClassDef bases body FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign AttributeStore NameLoad attr Call NameLoad NameLoad Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list ClassDef bases body FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign AttributeStore NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body Assign AttributeStore NameLoad attr Call NameLoad NameLoad Str orelse Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If UnaryOpNot NameLoad body Raise NameLoad If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Return NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str AttributeLoad NameLoad attr body Expr Str Assign NameStore Call NameLoad For NameStore NameLoad body For NameStore Call AttributeLoad NameLoad attr body If Call NameLoad SubscriptLoad NameLoad Index NameLoad NameLoad body Assign SubscriptStore NameLoad Index BinOpAdd Str NameLoad Call NameLoad SubscriptLoad NameLoad Index NameLoad Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Dict If NameLoad body Assign NameStore NameLoad While NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad Slice Num If CompareEq Call NameLoad NameLoad Num body Break Assign NameStore Call AttributeLoad NameLoad attr Str If CompareLt NameLoad Num body If NameLoad body Assign SubscriptStore NameLoad Index NameLoad BinOpAdd BinOpAdd SubscriptLoad NameLoad Index NameLoad Str Call AttributeLoad NameLoad attr NameLoad orelse Continue Assign NameStore NameStore SubscriptLoad NameLoad Slice NameLoad Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice BinOpAdd NameLoad Num Assign SubscriptStore NameLoad Index NameLoad NameLoad Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Str If CompareGt Call NameLoad NameLoad Num body AugAssignAdd NameStore Str AugAssignAdd NameStore BinOpAdd BinOpAdd Str NameLoad Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call NameLoad NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Str keyword NameLoad Assign NameStore Dict For NameStore NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore IfExp UnaryOpNot Call AttributeLoad NameLoad attr Str NameLoad SubscriptLoad NameLoad Slice Num Assign NameStore Num If Call AttributeLoad NameLoad attr NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad AugAssignAdd NameStore Num Assign SubscriptStore NameLoad Index NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad decorator_list If CompareEq NameLoad Str body TryExcept body Expr Call NameLoad AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Import alias Expr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr
N/A N/A csv StringIO sys urllib Logger N/A N/A __init__ N/A N/A self filename buf N/A None N/A N/A N/A self log N/A open filename w N/A N/A self buf buf N/A flush N/A N/A self N/A N/A N/A N/A N/A N/A self log flush N/A N/A N/A self buf None N/A N/A N/A N/A N/A self buf flush N/A write N/A N/A self message N/A N/A N/A N/A N/A N/A self log write message N/A N/A N/A N/A self log flush N/A N/A N/A self buf None N/A N/A N/A N/A N/A self buf write message N/A N/A N/A N/A self buf flush N/A N/A Reader N/A N/A __init__ N/A N/A self buf filename N/A None N/A N/A N/A self buf buf N/A N/A filename None N/A N/A N/A self log N/A open filename w N/A N/A N/A self log None N/A __iter__ N/A N/A self N/A N/A N/A self N/A next N/A N/A self N/A N/A N/A N/A N/A self readline N/A readline N/A N/A self N/A N/A N/A line N/A N/A N/A self buf readline N/A N/A line N/A N/A StopIteration N/A N/A N/A self log None N/A N/A N/A N/A N/A self log write line N/A N/A N/A N/A self log flush N/A line N/A N/A output_results N/A N/A results mvdelim output N/A N/A sys stdout N/A N/A Given a list of dictionaries, each representing
    a single result, and an optional list of fields,
    output those results to stdout for consumption by the
    Splunk pipeline N/A fields N/A set N/A result results N/A N/A key N/A N/A result keys N/A N/A N/A isinstance N/A result N/A key list N/A N/A N/A result N/A N/A __mv_ key N/A encode_mv N/A result N/A key N/A N/A result N/A key N/A N/A mvdelim join N/A result N/A key N/A N/A N/A fields update N/A N/A result keys N/A fields N/A sorted N/A list fields N/A writer N/A N/A csv DictWriter output fields N/A N/A N/A writer writerow N/A dict N/A zip fields fields N/A N/A N/A writer writerows results N/A read_input N/A N/A buf has_header N/A True N/A N/A Read the input from the given buffer (or stdin if no buffer)
    is supplied. An optional header may be present as well N/A N/A buf None N/A N/A buf N/A sys stdin N/A header N/A N/A has_header N/A N/A last_attr None N/A True N/A N/A line N/A N/A buf readline N/A line N/A line N/A -1 N/A N/A N/A len line 0 N/A N/A N/A colon N/A N/A line find : N/A N/A colon 0 N/A N/A last_attr N/A N/A N/A header N/A last_attr N/A N/A N/A header N/A last_attr N/A N/A urllib unquote line N/A N/A N/A last_attr attr N/A line N/A colon N/A val N/A N/A urllib unquote N/A line N/A N/A colon 1 N/A N/A header N/A attr val N/A N/A buf header N/A encode_mv N/A N/A vals N/A N/A N/A For multivalues, values are wrapped in '$' and separated using ';'
    Literal '$' values are represented with '$$' N/A s N/A val vals N/A N/A val N/A N/A val replace $ $$ N/A N/A N/A len s 0 N/A N/A s ; N/A s N/A N/A $ val $ N/A s N/A main N/A N/A argv N/A N/A N/A stdin_wrapper N/A Reader N/A sys stdin N/A N/A buf settings N/A read_input stdin_wrapper has_header True N/A events N/A N/A csv DictReader buf N/A results N/A N/A event events N/A N/A raw N/A N/A StringIO StringIO N/A event N/A _raw N/A top_output N/A N/A csv DictReader raw delimiter skipinitialspace True N/A usercounts N/A N/A row top_output N/A N/A user N/A row N/A USER N/A user N/A N/A N/A N/A user startswith _ user N/A user N/A 1 N/A usercount 0 N/A N/A N/A usercounts has_key user N/A N/A usercount N/A usercounts N/A user N/A usercount 1 N/A N/A usercounts N/A user usercount N/A N/A N/A results append usercounts N/A N/A output_results results N/A N/A N/A __name__ __main__ N/A N/A N/A N/A N/A main N/A sys argv N/A N/A N/A Exception N/A N/A traceback N/A N/A N/A traceback print_exc file N/A sys stdout