Module Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias alias Assign NameStore Call NameLoad FunctionDef arguments args NameParam NameParam defaults NameLoad kwarg body If UnaryOpNot NameLoad body Assign NameStore Call NameLoad Str Str If Call NameLoad NameLoad NameLoad body Assign NameStore ListLoad NameLoad Print NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListComp NameLoad comprehension NameStore NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad kwarg body Expr Str Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call NameLoad NameLoad keyword NameLoad NameLoad Assign NameStore NameLoad If UnaryOpNot NameLoad body Assign NameStore Call NameLoad Str Str Assign NameStore NameLoad TryExcept body For TupleStore NameStore NameStore Call NameLoad NameLoad body TryExcept body Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Assign NameStore BoolOpAnd NameLoad CompareEq NameLoad Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad NameLoad AugAssignAdd NameStore Num handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad NameLoad attr handlers ExceptHandler body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad Call NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore Num Assign NameStore ListLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Assign NameStore BoolOpOr Call AttributeLoad NameLoad attr Num For NameStore NameLoad body AugAssignAdd NameStore Num Assign NameStore Call NameLoad NameLoad NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad If BoolOpAnd CompareIsNot NameLoad NameLoad CompareEq Call NameLoad NameLoad Call NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad orelse If BoolOpAnd CompareIsNot NameLoad NameLoad CompareNotEq Call NameLoad NameLoad Call NameLoad AttributeLoad NameLoad attr body Print AttributeLoad NameLoad attr Call AttributeLoad Str attr Call NameLoad NameLoad NameLoad If BoolOpAnd CompareGt Call NameLoad NameLoad Num CompareEq BinOpMod Call NameLoad NameLoad NameLoad Num body TryExcept body Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore ListLoad If CompareGt Call NameLoad NameLoad Num body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list
N/A N/A sys N/A csv N/A datetime N/A math N/A os N/A logging N/A re N/A time N/A pdb N/A moduledir N/A N/A N/A os path abspath N/A N/A N/A os path dirname __file__ N/A N/A N/A N/A sys path append moduledir collections * dateutil.parser parse dateparse infertypes * parsers.parsers * util get_logger to_utf N/A _log N/A get_logger file_iterators N/A N/A fnames parser N/A None kwargs N/A N/A N/A parser N/A N/A parser N/A DBTruckParser /tmp/ /tmp/ N/A N/A isinstance fnames basestring N/A N/A fnames N/A fnames N/A fnames N/A iterfs N/A N/A parser get_reader fnames N/A iterfs N/A iterf N/A iterf iterfs N/A iterf iterfs N/A N/A N/A N/A iterf infer_metadata N/A iterfs N/A import_datafiles N/A N/A fnames new tablename errfile exportmethodsklass parser N/A None kwargs N/A N/A 
  Parse 

  Args:
    fnames: file names of files to parse and import
    new: drop table(s) before importing? 
    tablename: prefix of table to import into
    errfile:
    exportmethodsklass: static class containing export methods
   N/A N/A N/A _log info kwargs: %s kwargs N/A iterfs N/A file_iterators fnames parser parser kwargs N/A new_errfile False N/A N/A errfile N/A N/A errfile N/A file /dev/null a N/A new_errfile True N/A N/A N/A N/A idx iterf N/A enumerate iterfs N/A N/A N/A N/A exportmethods N/A exportmethodsklass tablename errfile kwargs N/A newtable N/A new N/A idx 0 N/A N/A N/A exportmethods setup_table N/A iterf types N/A iterf header N/A iterf add_id_col newtable N/A N/A import_iterator iterf exportmethods N/A idx 1 N/A N/A N/A Exception N/A e N/A N/A N/A N/A _log warn N/A N/A traceback format_exc N/A new_errfile N/A N/A N/A N/A errfile close N/A N/A N/A N/A N/A N/A _log warn N/A N/A traceback format_exc N/A transform_and_validate N/A N/A types row N/A N/A N/A row N/A map str2sqlval N/A zip types row N/A row N/A import_iterator N/A N/A iterf dbmethods N/A N/A N/A N/A rowiter N/A iterf N/A types N/A iterf types N/A blocksize 100000 N/A buf N/A N/A N/A iterf header_inferred N/A N/A N/A N/A rowiter next N/A rowidx N/A N/A N/A dbmethods get_max_id 0 N/A row rowiter N/A N/A rowidx 1 N/A row N/A transform_and_validate types row N/A N/A iterf add_id_col N/A N/A N/A N/A row append N/A str rowidx N/A N/A N/A row None N/A N/A len row N/A len N/A iterf types N/A N/A N/A N/A buf append row N/A N/A N/A N/A row None N/A N/A len row N/A len N/A iterf types N/A N/A N/A dbmethods errfile N/A N/A , join N/A map to_utf row N/A N/A N/A N/A len buf 0 N/A N/A N/A len buf blocksize 0 N/A N/A N/A N/A N/A N/A _log info flushing %s rows N/A len buf N/A success N/A N/A dbmethods import_block buf iterf N/A N/A N/A Exception N/A e N/A N/A N/A N/A _log warn N/A N/A traceback format_exc N/A buf N/A N/A N/A N/A len buf 0 N/A N/A N/A N/A success N/A N/A dbmethods import_block buf iterf N/A N/A N/A _log info loaded	%s	%d success rowidx N/A N/A N/A Exception N/A e N/A N/A N/A N/A _log warn N/A N/A traceback format_exc N/A