Module Assign NameStore Str ImportFrom alias ImportFrom alias ImportFrom alias alias Import alias Import alias Import alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad While NameLoad body Assign NameStore Call AttributeLoad NameLoad attr For NameStore NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr TryExcept body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword AttributeLoad NameLoad attr keyword TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr If UnaryOpNot CompareIs NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad orelse Raise Call NameLoad Str If UnaryOpNot CompareIs NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad orelse Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list decorator_list
N/A N/A __author__ paulo.rodenas util.config ConfigReader threading Thread boto sqs s3 N/A time N/A logging N/A traceback BaseServiceIntegration N/A object N/A __init__ N/A N/A self N/A N/A N/A N/A self config N/A ConfigReader N/A N/A self logger N/A N/A logging getLogger __name__ N/A N/A N/A N/A self logger debug Loading config properties for AWS N/A N/A self default_region N/A N/A N/A self config get_property N/A N/A self config SECTION_AWS_ACCOUNT N/A N/A self config OPTION_DEFAULT_REGION N/A N/A BaseSimpleQueueServiceIntegration N/A BaseServiceIntegration N/A __init__ N/A N/A self N/A N/A N/A N/A N/A N/A super BaseSimpleQueueServiceIntegration self __init__ N/A N/A N/A N/A self logger debug Connecting to AWS SQS N/A N/A self conn N/A N/A sqs connect_to_region N/A self default_region N/A send_message N/A N/A self queue_name message_body N/A N/A N/A N/A N/A N/A self logger info N/A Sending message to %s containing %s N/A queue_name message_body N/A queue N/A N/A N/A self conn get_queue queue_name N/A N/A N/A N/A self conn send_message queue message_body N/A N/A N/A N/A self logger debug Message sent N/A N/A SimpleQueueServiceIntegration N/A BaseSimpleQueueServiceIntegration N/A __init__ N/A N/A self queue_name_in queue_name_out N/A None None N/A N/A N/A N/A N/A super SimpleQueueServiceIntegration self __init__ N/A N/A self queue_name_in queue_name_in N/A N/A self queue_name_out queue_name_out N/A handle_queue_in_message N/A N/A self queue_name_in handle_process_message handle_queue_out_message N/A N/A N/A queue_in N/A N/A N/A self conn get_queue queue_name_in N/A True N/A N/A rs N/A N/A queue_in get_messages N/A message rs N/A N/A N/A N/A N/A self logger info N/A Received message from %s - %s N/A N/A queue_in name N/A N/A message get_body N/A N/A N/A ret_value N/A handle_process_message N/A N/A message get_body N/A N/A N/A queue_in delete_message message N/A N/A handle_queue_out_message ret_value N/A N/A N/A Exception N/A N/A N/A N/A N/A self logger error An error happened when trying to process this queue N/A N/A N/A traceback print_exc N/A N/A N/A time sleep 1 N/A handle_process_message N/A N/A self message_body N/A N/A N/A N/A NotImplementedError Please implement this method N/A handle_queue_out_message N/A N/A self response_body N/A N/A N/A N/A NotImplementedError Please implement this method N/A start_listening N/A N/A self N/A N/A N/A N/A N/A N/A self logger info N/A Starting listener on queue %s N/A self queue_name_in N/A thread_sqs N/A Thread target N/A self handle_queue_in_message args N/A N/A self queue_name_in N/A self handle_process_message N/A self handle_queue_out_message N/A N/A thread_sqs daemon True N/A N/A N/A thread_sqs start N/A thread_sqs N/A N/A SimpleStorageServiceIntegration N/A BaseServiceIntegration N/A __init__ N/A N/A self N/A N/A N/A N/A N/A N/A super SimpleStorageServiceIntegration self __init__ N/A bucket_name N/A N/A N/A self config get_property N/A N/A self config SECTION_AWS_S3 N/A N/A self config OPTION_BUCKET_NAME N/A N/A N/A N/A self logger debug Connecting to AWS S3 N/A conn N/A N/A s3 connect_to_region N/A self default_region N/A N/A N/A N/A self logger debug N/A Getting %s bucket bucket_name N/A N/A self bucket N/A N/A conn get_bucket bucket_name N/A list N/A N/A self N/A N/A N/A N/A N/A N/A self bucket list N/A download_file N/A N/A self key dst_filename N/A N/A N/A N/A N/A N/A self logger debug N/A Downloading %s from AWS S3 key N/A key N/A N/A N/A self bucket get_key key N/A N/A N/A key get_contents_to_filename dst_filename N/A N/A TaxReceiptSimpleQueueServiceIntegration N/A SimpleQueueServiceIntegration N/A __init__ N/A N/A self handle_process_message_function handle_queue_out_message_function N/A N/A N/A N/A N/A N/A super TaxReceiptSimpleQueueServiceIntegration self __init__ N/A N/A self queue_name_in N/A N/A N/A self config get_property N/A N/A self config SECTION_AWS_SQS N/A N/A self config OPTION_QUEUE_NAME_IN N/A N/A self queue_name_out N/A N/A N/A self config get_property N/A N/A self config SECTION_AWS_SQS N/A N/A self config OPTION_QUEUE_NAME_OUT N/A N/A N/A handle_process_message_function None N/A N/A N/A self handle_process_message_function handle_process_message_function N/A N/A N/A ValueError You must provide the handle_process_message_function parameter N/A N/A N/A handle_queue_out_message_function None N/A N/A N/A self handle_queue_out_message_function handle_queue_out_message_function N/A N/A N/A ValueError You must provide the handle_queue_out_message_function parameter N/A handle_process_message N/A N/A self message_body N/A N/A N/A N/A N/A self handle_process_message_function N/A self queue_name_in message_body N/A handle_queue_out_message N/A N/A self response_body N/A N/A N/A N/A N/A self handle_queue_out_message_function N/A self queue_name_out response_body N/A N/A