Module ImportFrom alias Import alias Import alias Import alias ImportFrom alias Import alias ImportFrom alias ImportFrom alias alias alias ImportFrom alias ImportFrom alias alias Assign NameStore Num ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Return Call AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign AttributeStore NameLoad attr Call NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If NameLoad body Assign NameStore Call NameLoad NameLoad orelse Assign NameStore Num If UnaryOpNot AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Call NameLoad AugAssignAdd AttributeStore NameLoad attr Num If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore BinOpMult Call NameLoad NameLoad Num Assign AttributeStore NameLoad attr BinOpAdd Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore BinOpMult Call NameLoad NameLoad Num Assign AttributeStore NameLoad attr BinOpAdd Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad If CompareGt NameLoad AttributeLoad NameLoad attr body Return NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad If CompareLt NameLoad AttributeLoad NameLoad attr body Return NameLoad Return NameLoad decorator_list NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore ListLoad Str Str Str Str Str Str Str Str Str Str Str Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr BoolOpOr NameLoad Num Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr BoolOpOr NameLoad Num Assign AttributeStore NameLoad attr ListLoad Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr BinOpLShift Num Num Assign AttributeStore NameLoad attr BinOpMult Num Num Assign AttributeStore NameLoad attr BinOpMod Str AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index NameLoad Return Call AttributeLoad NameLoad attr keyword SubscriptLoad NameLoad Index Str keyword Call AttributeLoad NameLoad attr Str keyword Call AttributeLoad NameLoad attr Str decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIn Str NameLoad body Assign AttributeStore NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Str If CompareIn Str NameLoad body Assign AttributeStore NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Str Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return Call NameLoad ListComp NameLoad comprehension NameStore AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return Call NameLoad ListComp NameLoad comprehension NameStore AttributeLoad NameLoad attr UnaryOpNot AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Dict For NameStore AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index NameLoad Call NameLoad NameLoad Call NameLoad NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return Call AttributeLoad Str attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return ListComp NameLoad comprehension NameStore AttributeLoad NameLoad attr BoolOpAnd AttributeLoad NameLoad attr UnaryOpNot AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body ImportFrom alias If CompareEq NameLoad Str body Return AttributeLoad NameLoad attr orelse If CompareEq NameLoad Str body Return AttributeLoad NameLoad attr Raise Call NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Dict Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Dict Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad NameLoad AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Str If NameLoad body Assign NameStore Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body If Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareIn NameLoad AttributeLoad NameLoad attr body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body Assign NameStore Call NameLoad NameLoad orelse Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad NameLoad If NameLoad body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad Assign NameStore BinOpAdd Call AttributeLoad NameLoad attr NameLoad While NameLoad body For NameStore AttributeLoad NameLoad attr body If UnaryOpNot AttributeLoad NameLoad attr body Continue Expr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad If CompareGtE Call NameLoad NameLoad NameLoad body Break If BoolOpOr NameLoad CompareGt Call AttributeLoad NameLoad attr NameLoad body Break Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad For NameStore AttributeLoad NameLoad attr body If CompareEq AttributeLoad NameLoad attr NameLoad body Continue Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad For NameStore AttributeLoad NameLoad attr body If CompareEq AttributeLoad NameLoad attr NameLoad body If AttributeLoad NameLoad attr body Raise NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return Raise NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad decorator_list decorator_list Assign NameStore Dict For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr
N/A __future__ unicode_literals N/A hashlib N/A time N/A re xml.sax.saxutils escape N/A boto.sqs moto.core BaseBackend moto.core.utils camelcase_to_underscores get_random_message_id unix_time_millis utils generate_receipt_handle exceptions ReceiptHandleIsInvalid MessageNotInflight N/A DEFAULT_ACCOUNT_ID 123456789012 Message N/A object N/A __init__ N/A N/A self message_id body N/A N/A N/A N/A self id message_id N/A N/A self _body body N/A N/A self message_attributes N/A N/A N/A self receipt_handle None N/A N/A self sender_id DEFAULT_ACCOUNT_ID N/A N/A self sent_timestamp None N/A N/A self approximate_first_receive_timestamp None N/A N/A self approximate_receive_count 0 N/A N/A self visible_at 0 N/A N/A self delayed_until 0 N/A md5 N/A N/A self N/A N/A N/A body_md5 N/A N/A hashlib md5 N/A N/A N/A body_md5 update N/A N/A N/A self _body encode utf-8 N/A N/A N/A body_md5 hexdigest N/A property body N/A N/A self N/A N/A N/A N/A escape N/A self _body N/A property mark_sent N/A N/A self delay_seconds N/A None N/A N/A N/A self sent_timestamp N/A unix_time_millis N/A delay_seconds N/A N/A N/A N/A self delay delay_seconds delay_seconds N/A mark_received N/A N/A self visibility_timeout N/A None N/A N/A 
        When a message is received we will set the first receive timestamp,
        tap the ``approximate_receive_count`` and the ``visible_at`` time.
         N/A visibility_timeout N/A N/A visibility_timeout N/A int visibility_timeout N/A N/A visibility_timeout 0 N/A N/A N/A self approximate_first_receive_timestamp N/A N/A N/A self approximate_first_receive_timestamp N/A unix_time_millis N/A N/A self approximate_receive_count 1 N/A visibility_timeout N/A N/A N/A N/A self change_visibility visibility_timeout N/A N/A self receipt_handle N/A generate_receipt_handle N/A change_visibility N/A N/A self visibility_timeout N/A N/A N/A visibility_timeout_msec N/A N/A int visibility_timeout 1000 N/A N/A self visible_at N/A N/A unix_time_millis visibility_timeout_msec N/A delay N/A N/A self delay_seconds N/A N/A N/A delay_msec N/A N/A int delay_seconds 1000 N/A N/A self delayed_until N/A N/A unix_time_millis delay_msec N/A visible N/A N/A self N/A N/A N/A current_time N/A unix_time_millis N/A N/A current_time N/A self visible_at N/A N/A True N/A False N/A property delayed N/A N/A self N/A N/A N/A current_time N/A unix_time_millis N/A N/A current_time N/A self delayed_until N/A N/A True N/A False N/A property N/A Queue N/A object N/A N/A camelcase_attributes N/A ApproximateNumberOfMessages ApproximateNumberOfMessagesDelayed ApproximateNumberOfMessagesNotVisible CreatedTimestamp DelaySeconds LastModifiedTimestamp MaximumMessageSize MessageRetentionPeriod QueueArn ReceiveMessageWaitTimeSeconds VisibilityTimeout WaitTimeSeconds __init__ N/A N/A self name visibility_timeout wait_time_seconds region N/A N/A N/A N/A self name name N/A N/A self visibility_timeout N/A visibility_timeout 30 N/A N/A self region region N/A N/A self wait_time_seconds N/A wait_time_seconds 0 N/A N/A self _messages N/A N/A now N/A N/A time time N/A N/A self created_timestamp now N/A N/A self delay_seconds 0 N/A N/A self last_modified_timestamp now N/A N/A self maximum_message_size N/A 64 10 N/A N/A self message_retention_period N/A 86400 4 N/A N/A self queue_arn N/A arn:aws:sqs:sqs.us-east-1:123456789012:%s N/A self name N/A N/A self receive_message_wait_time_seconds 0 N/A create_from_cloudformation_json N/A N/A cls resource_name cloudformation_json region_name N/A N/A N/A properties N/A cloudformation_json N/A Properties N/A sqs_backend N/A sqs_backends N/A region_name N/A N/A N/A sqs_backend create_queue name N/A properties N/A QueueName visibility_timeout N/A N/A properties get VisibilityTimeout wait_time_seconds N/A N/A properties get WaitTimeSeconds N/A classmethod update_from_cloudformation_json N/A N/A cls original_resource new_resource_name cloudformation_json region_name N/A N/A N/A properties N/A cloudformation_json N/A Properties N/A queue_name N/A properties N/A QueueName N/A sqs_backend N/A sqs_backends N/A region_name N/A queue N/A N/A sqs_backend get_queue queue_name N/A N/A VisibilityTimeout properties N/A N/A N/A queue visibility_timeout N/A int N/A properties N/A VisibilityTimeout N/A N/A WaitTimeSeconds properties N/A N/A N/A queue wait_time_seconds N/A int N/A properties N/A WaitTimeSeconds N/A queue N/A classmethod delete_from_cloudformation_json N/A N/A cls resource_name cloudformation_json region_name N/A N/A N/A properties N/A cloudformation_json N/A Properties N/A queue_name N/A properties N/A QueueName N/A sqs_backend N/A sqs_backends N/A region_name N/A N/A N/A sqs_backend delete_queue queue_name N/A classmethod approximate_number_of_messages_delayed N/A N/A self N/A N/A N/A N/A len N/A m N/A m N/A self _messages N/A m delayed N/A property approximate_number_of_messages_not_visible N/A N/A self N/A N/A N/A N/A len N/A m N/A m N/A self _messages N/A N/A m visible N/A property approximate_number_of_messages N/A N/A self N/A N/A N/A N/A len N/A self messages N/A property physical_resource_id N/A N/A self N/A N/A N/A N/A self name N/A property attributes N/A N/A self N/A N/A N/A result N/A N/A attribute N/A self camelcase_attributes N/A N/A N/A result N/A attribute N/A getattr self N/A camelcase_to_underscores attribute N/A result N/A property url N/A N/A self N/A N/A N/A N/A N/A http://sqs.{0}.amazonaws.com/123456789012/{1} format N/A self region N/A self name N/A property messages N/A N/A self N/A N/A N/A N/A message N/A message N/A self _messages N/A N/A message visible N/A N/A message delayed N/A property add_message N/A N/A self message N/A N/A N/A N/A N/A N/A self _messages append message N/A get_cfn_attribute N/A N/A self attribute_name N/A N/A moto.cloudformation.exceptions UnformattedGetAttTemplateException N/A N/A attribute_name Arn N/A N/A N/A self queue_arn N/A N/A N/A attribute_name QueueName N/A N/A N/A self name N/A N/A UnformattedGetAttTemplateException N/A N/A SQSBackend N/A BaseBackend N/A __init__ N/A N/A self region_name N/A N/A N/A N/A self region_name region_name N/A N/A self queues N/A N/A N/A N/A N/A super SQSBackend self __init__ N/A reset N/A N/A self N/A N/A N/A region_name N/A self region_name N/A N/A self __dict__ N/A N/A N/A N/A self __init__ region_name N/A create_queue N/A N/A self name visibility_timeout wait_time_seconds N/A N/A N/A queue N/A N/A N/A self queues get name N/A N/A queue None N/A N/A queue N/A Queue name visibility_timeout wait_time_seconds N/A self region_name N/A N/A N/A self queues N/A name queue N/A queue N/A list_queues N/A N/A self queue_name_prefix N/A N/A N/A re_str .* N/A queue_name_prefix N/A N/A re_str N/A N/A ^{0}.* format queue_name_prefix N/A prefix_re N/A N/A re compile re_str N/A qs N/A N/A N/A name q N/A N/A N/A self queues items N/A N/A N/A N/A prefix_re search name N/A N/A N/A N/A qs append q N/A qs N/A get_queue N/A N/A self queue_name N/A N/A N/A N/A N/A N/A self queues get queue_name None N/A delete_queue N/A N/A self queue_name N/A N/A N/A N/A queue_name N/A self queues N/A N/A N/A N/A N/A self queues pop queue_name N/A False N/A set_queue_attribute N/A N/A self queue_name key value N/A N/A N/A queue N/A N/A self get_queue queue_name N/A N/A setattr queue key value N/A queue N/A send_message N/A N/A self queue_name message_body message_attributes delay_seconds N/A None None N/A N/A queue N/A N/A self get_queue queue_name N/A delay_seconds N/A N/A delay_seconds N/A int delay_seconds N/A N/A delay_seconds N/A queue delay_seconds N/A message_id N/A get_random_message_id N/A message N/A Message message_id message_body N/A message_attributes N/A N/A N/A message message_attributes message_attributes N/A N/A N/A message mark_sent delay_seconds delay_seconds N/A N/A N/A queue add_message message N/A message N/A receive_messages N/A N/A self queue_name count wait_seconds_timeout N/A N/A N/A 
        Attempt to retrieve visible messages from a queue.

        If a message was read by client and not deleted it is considered to be
        "inflight" and cannot be read. We make attempts to obtain ``count``
        messages but we may return less if messages are in-flight or there
        are simple not enough messages in the queue.

        :param string queue_name: The name of the queue to read from.
        :param int count: The maximum amount of messages to retrieve.
         N/A queue N/A N/A self get_queue queue_name N/A result N/A N/A polling_end N/A N/A N/A time time wait_seconds_timeout N/A True N/A N/A message N/A queue messages N/A N/A N/A N/A message visible N/A N/A N/A N/A N/A message mark_received visibility_timeout N/A queue visibility_timeout N/A N/A N/A result append message N/A N/A N/A len result count N/A N/A N/A N/A result N/A N/A N/A time time polling_end N/A N/A N/A result N/A delete_message N/A N/A self queue_name receipt_handle N/A N/A N/A queue N/A N/A self get_queue queue_name N/A new_messages N/A N/A message N/A queue _messages N/A N/A N/A N/A message receipt_handle receipt_handle N/A N/A N/A N/A N/A new_messages append message N/A N/A queue _messages new_messages N/A change_message_visibility N/A N/A self queue_name receipt_handle visibility_timeout N/A N/A N/A queue N/A N/A self get_queue queue_name N/A message N/A queue _messages N/A N/A N/A N/A message receipt_handle receipt_handle N/A N/A N/A message visible N/A N/A MessageNotInflight N/A N/A N/A message change_visibility visibility_timeout N/A N/A ReceiptHandleIsInvalid N/A purge_queue N/A N/A self queue_name N/A N/A N/A queue N/A N/A self get_queue queue_name N/A N/A queue _messages N/A N/A N/A N/A sqs_backends N/A N/A region N/A N/A N/A boto sqs regions N/A N/A N/A sqs_backends N/A N/A region name N/A SQSBackend N/A region name