Module Expr Str Import alias Import alias Import alias ImportFrom alias ImportFrom alias alias Assign NameStore Dict Str Str Str Str Str Str Str Str Assign NameStore Dict Str Str Str Str Str Str Str Str Assign NameStore ListLoad NameLoad NameLoad FunctionDef arguments args defaults body Expr Str For NameStore NameLoad body If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str SubscriptLoad NameLoad Index Str body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str SubscriptLoad NameLoad Index Str With Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str SubscriptLoad NameLoad Index Str BinOpAdd SubscriptLoad NameLoad Index Str Str Str NameStore body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str With Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str BinOpAdd SubscriptLoad NameLoad Index Str Str Str NameStore body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args defaults body Expr Str For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str BinOpAdd SubscriptLoad NameLoad Index Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad ListLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad decorator_list Assign TupleStore NameStore NameStore NameStore NameStore NameStore NameStore NameStore NameStore Call NameLoad Assign AttributeStore NameLoad attr Dict Str Str Str Str FunctionDef arguments args defaults body Assign NameStore Call NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr With Call NameLoad Str Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr Print Call NameLoad NameLoad Assert CompareEq NameLoad SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr With Call NameLoad Str Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr Print Call NameLoad NameLoad Assert CompareEq NameLoad SubscriptLoad NameLoad Index Str decorator_list
N/A N/A Integrations tests for EcoData Retriever N/A imp N/A os N/A shutil retriever.lib.compile compile_script retriever HOME_DIR ENGINE_LIST N/A simple_csv N/A name raw_data script expect_out simple_csv a,b,c
1,2,3
4,5,6
 shortname: simple_csv
table: simple_csv, http://example.com/simple_csv.txt "record_id","a","b","c"
1,1,2,3
2,4,5,6 N/A crosstab N/A name raw_data script expect_out crosstab a,b,c1,c2
1,1,1.1,1.2
1,2,2.1,2.2 shortname: crosstab
table: crosstab, http://example.com/crosstab.txt
*column: record_id, pk-auto
*column: a, int
*column: b, int
*ct_column: c
*column: val, ct-double
*ct_names: c1,c2 "record_id","a","b","c","val"
3,1,1,"c1",1.1
4,1,1,"c2",1.2
5,1,2,"c1",2.1
6,1,2,"c2",2.2 N/A tests N/A simple_csv crosstab setup_module N/A N/A N/A N/A N/A Put raw data and scripts in appropriate .retriever directories N/A test tests N/A N/A N/A N/A N/A N/A os path exists N/A N/A N/A os path join HOME_DIR raw_data N/A test N/A name N/A N/A N/A N/A os makedirs N/A N/A N/A os path join HOME_DIR raw_data N/A test N/A name N/A N/A open N/A N/A N/A os path join HOME_DIR raw_data N/A test N/A name N/A N/A test N/A name .txt w data_file N/A N/A N/A N/A data_file write N/A test N/A raw_data N/A N/A open N/A N/A N/A os path join HOME_DIR scripts N/A N/A test N/A name .script w script_file N/A N/A N/A N/A script_file write N/A test N/A script N/A N/A compile_script N/A N/A N/A os path join HOME_DIR scripts N/A test N/A name N/A teardown_module N/A N/A N/A N/A N/A Remove test data and scripts from .retriever directories N/A test tests N/A N/A N/A N/A shutil rmtree N/A N/A N/A os path join HOME_DIR raw_data N/A test N/A name N/A N/A N/A os remove N/A N/A N/A os path join HOME_DIR scripts N/A N/A test N/A name .script N/A get_script_module N/A N/A script_name N/A N/A N/A Load a script module N/A N/A file pathname desc N/A N/A imp find_module script_name N/A N/A N/A N/A os path join HOME_DIR scripts N/A N/A N/A imp load_module script_name file pathname desc N/A N/A N/A mysql_engine postgres_engine sqlite_engine msaccess_engine csv_engine download_engine json_engine xml_engine N/A ENGINE_LIST N/A N/A csv_engine opts N/A engine table_name csv ./{db}_{table}.txt test_csv_from_csv N/A N/A N/A N/A N/A simple_csv_module N/A get_script_module simple_csv N/A N/A N/A N/A simple_csv_module SCRIPT download csv_engine N/A N/A N/A N/A N/A simple_csv_module SCRIPT engine disconnect N/A N/A open simple_csv_simple_csv.txt r obs_out_file N/A N/A obs_out N/A N/A obs_out_file read N/A N/A len obs_out N/A N/A obs_out N/A simple_csv N/A expect_out N/A test_crosstab_from_csv N/A N/A N/A N/A N/A crosstab_module N/A get_script_module crosstab N/A N/A N/A N/A crosstab_module SCRIPT download csv_engine N/A N/A N/A N/A N/A crosstab_module SCRIPT engine disconnect N/A N/A open crosstab_crosstab.txt r obs_out_file N/A N/A obs_out N/A N/A obs_out_file read N/A N/A len obs_out N/A N/A obs_out N/A crosstab N/A expect_out N/A