Module ImportFrom alias Import alias Import alias ImportFrom alias alias ImportFrom alias alias alias alias alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad With Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr NameStore body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad With Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr NameStore body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Index Num If CompareEq NameLoad Str body With Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Str NameStore body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad orelse If CompareEq NameLoad Str body With Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Str NameStore body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Num orelse Raise Call NameLoad BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore BinOpAdd NameLoad ListLoad Str Assign NameStore Call NameLoad ListLoad TupleLoad Str Call NameLoad ListComp TupleLoad NameLoad SubscriptLoad NameLoad Index NameLoad comprehension NameStore NameLoad TupleLoad Str Call NameLoad ListComp TupleLoad NameLoad SubscriptLoad NameLoad Index NameLoad comprehension NameStore NameLoad TupleLoad Str ListLoad Expr SubscriptLoad NameLoad Index Str For NameStore SubscriptLoad NameLoad Index Str body For NameStore SubscriptLoad NameLoad Index Str body If CompareEq SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str body Assign NameStore Call NameLoad Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str Call NameLoad For TupleStore NameStore NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr body Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad Assign SubscriptStore SubscriptLoad NameLoad Index Str Index NameLoad Call NameLoad Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad Index Str For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign NameStore NameLoad TryExcept body Assign NameStore SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad Index NameLoad handlers ExceptHandler type NameLoad body Continue Assign NameStore BinOpSub NameLoad NameLoad Assign NameStore IfExp CompareGt NameLoad Num BinOpDiv Call NameLoad NameLoad NameLoad NameLoad Assign NameStore IfExp CompareGt NameLoad Num BinOpDiv Call NameLoad NameLoad NameLoad NameLoad Assign NameStore IfExp CompareGt NameLoad Num BinOpDiv Call NameLoad NameLoad NameLoad NameLoad If BoolOpOr CompareEq NameLoad Str CompareEq NameLoad Str CompareIs NameLoad NameLoad CompareIs NameLoad NameLoad body Assign NameStore NameLoad orelse Assign NameStore BinOpSub NameLoad NameLoad Assign SubscriptStore SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad Index NameLoad Call NameLoad ListLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr NameLoad Assign NameStore SubscriptLoad NameLoad Index Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad keyword Call NameLoad Str Str keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Str Assign NameStore IfExp CompareIsNot SubscriptLoad NameLoad Index Str NameLoad Call AttributeLoad Str attr SubscriptLoad NameLoad Index Str Str Assign NameStore IfExp CompareIsNot SubscriptLoad NameLoad Index Str NameLoad Call AttributeLoad Str attr BinOpMult SubscriptLoad NameLoad Index Str Num Str If CompareGt SubscriptLoad NameLoad Index Str Num body Assign NameStore BinOpMod Str NameLoad If BoolOpAnd CompareIsNot SubscriptLoad NameLoad Index Str NameLoad CompareGt SubscriptLoad NameLoad Index Str Num body Assign NameStore BinOpMod Str NameLoad If BoolOpAnd CompareIsNot SubscriptLoad NameLoad Index Str NameLoad CompareGt SubscriptLoad NameLoad Index Str Num body Assign NameStore BinOpMod Str NameLoad Return Call AttributeLoad Str attr NameLoad NameLoad NameLoad NameLoad decorator_list Assign NameStore Dict Str Str Str Str Str Str Str NameLoad AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad keyword Call NameLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body If CompareIs NameLoad NameLoad body Return Str If CompareGt NameLoad Num body Return Str orelse If CompareLt NameLoad Num body Return Str Return Str decorator_list Assign NameStore Dict Str Str Str Str Str NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Str decorator_list decorator_list
N/A collections OrderedDict N/A json N/A os jinja2 Environment PackageLoader clan.utils GLOBAL_ARGUMENTS format_comma format_duration format_percent load_field_definitions DiffCommand N/A object N/A __init__ N/A N/A self N/A N/A N/A N/A self args None N/A __call__ N/A N/A self args N/A N/A N/A 
        Compare two data files and generate a report of their differences.
         N/A N/A self args args N/A N/A self field_definitions N/A load_field_definitions N/A N/A open N/A N/A self args report_a_path f N/A N/A report_a N/A N/A json load f object_pairs_hook OrderedDict N/A N/A open N/A N/A self args report_b_path f N/A N/A report_b N/A N/A json load f object_pairs_hook OrderedDict N/A diff N/A N/A self diff report_a report_b N/A output_format N/A N/A N/A N/A os path splitext N/A N/A self args output_path N/A 1 N/A N/A output_format .html N/A N/A N/A open N/A N/A self args output_path w f N/A N/A N/A N/A self html diff f N/A N/A N/A output_format .json N/A N/A N/A open N/A N/A self args output_path w f N/A N/A N/A N/A json dump diff f indent 4 N/A N/A N/A Exception N/A Unsupported output format: %s. Must be .html or .json. output_format N/A add_argparser N/A N/A self root parents N/A N/A N/A 
        Add arguments for this command.
         N/A parser N/A N/A root add_parser diff parents parents N/A N/A N/A parser set_defaults func self N/A N/A N/A parser add_argument --secrets dest secrets action store help Path to the authorization secrets file (client_secrets.json). N/A N/A N/A parser add_argument -d --data dest data_path action store default None help Path to a existing JSON diff file. N/A N/A N/A parser add_argument report_a_path action store help Path to a JSON file containing the initial report data. N/A N/A N/A parser add_argument report_b_path action store help Path to a JSON file containing the report data to compare. N/A N/A N/A parser add_argument output_path action store help Path to output either an HTML report or a JSON data file. N/A parser N/A diff N/A N/A self report_a report_b N/A N/A N/A 
        Generate a diff for two data reports.
         N/A arguments N/A GLOBAL_ARGUMENTS N/A run_date N/A output N/A OrderedDict N/A N/A a N/A OrderedDict N/A N/A arg N/A report_a N/A arg N/A arg arguments N/A b N/A OrderedDict N/A N/A arg N/A report_b N/A arg N/A arg arguments N/A queries N/A N/A N/A output N/A a N/A query_a N/A report_a N/A queries N/A N/A query_b N/A report_b N/A queries N/A N/A N/A N/A query_a N/A config N/A query_b N/A config N/A N/A diff N/A OrderedDict N/A N/A diff N/A config N/A query_a N/A config N/A N/A diff N/A data_types N/A query_a N/A data_types N/A N/A diff N/A data N/A OrderedDict N/A N/A metric values N/A N/A N/A query_a N/A data items N/A N/A data_type N/A N/A diff N/A data_types N/A metric N/A N/A N/A diff N/A data N/A metric N/A OrderedDict N/A total_a N/A values N/A total N/A total_b N/A N/A N/A query_b N/A data N/A metric N/A total N/A N/A label value N/A N/A values items N/A N/A a value N/A N/A N/A b N/A N/A N/A query_b N/A data N/A metric N/A label N/A N/A N/A KeyError N/A N/A N/A change N/A b a N/A percent_change N/A N/A a 0 N/A N/A float change a None N/A percent_a N/A N/A total_a 0 N/A N/A float a total_a None N/A percent_b N/A N/A total_b 0 N/A N/A float b total_b None N/A N/A N/A label total N/A data_type TIME N/A percent_a None N/A percent_b None N/A N/A point_change None N/A N/A point_change N/A percent_b percent_a N/A N/A N/A N/A diff N/A data N/A metric N/A label N/A OrderedDict N/A N/A change change N/A percent_change percent_change N/A point_change point_change N/A N/A N/A N/A output N/A queries append diff N/A query_b N/A report_b N/A queries N/A output N/A txt N/A N/A self diff f N/A N/A N/A 
        Generate a text report for a diff.
         N/A env N/A Environment loader N/A PackageLoader clan templates trim_blocks True lstrip_blocks True N/A template N/A N/A env get_template diff.txt format_row N/A N/A label values N/A N/A N/A change N/A format_comma N/A values N/A change N/A percent_change N/A N/A N/A values N/A percent_change None N/A N/A {:.1%} format N/A values N/A percent_change - N/A point_change N/A N/A N/A values N/A point_change None N/A N/A {:.1f} format N/A N/A values N/A point_change 100 - N/A N/A N/A values N/A change 0 N/A N/A change N/A +%s change N/A N/A N/A N/A values N/A percent_change None N/A N/A values N/A percent_change 0 N/A N/A percent_change N/A +%s percent_change N/A N/A N/A N/A values N/A point_change None N/A N/A values N/A point_change 0 N/A N/A point_change N/A +%s point_change N/A N/A N/A {:>15s}    {:>8s}    {:>8s}    {:s}
 format change percent_change point_change label N/A N/A context N/A diff field_definitions GLOBAL_ARGUMENTS format_comma format_duration format_percent format_row diff N/A self field_definitions GLOBAL_ARGUMENTS format_comma format_duration format_percent format_row N/A N/A N/A f write N/A N/A N/A N/A template render context encode utf-8 N/A html N/A N/A self diff f N/A N/A N/A 
        Generate a text report for a diff.
         N/A env N/A Environment loader N/A PackageLoader clan templates N/A template N/A N/A env get_template diff.html number_class N/A N/A v N/A N/A N/A N/A v None N/A N/A N/A N/A v 0 N/A N/A positive N/A N/A N/A v 0 N/A N/A negative N/A N/A N/A context N/A diff GLOBAL_ARGUMENTS format_comma format_duration number_class diff GLOBAL_ARGUMENTS format_comma format_duration number_class N/A N/A N/A f write N/A N/A N/A N/A template render context encode utf-8 N/A N/A