Package sqs :: Module service :: Class SQSService
[hide private]
[frames] | no frames]

Class SQSService

source code


SQS Service class

Instance Methods [hide private]
  __init__(self, pub_key, priv_key)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
SQSQueue or None get(self, name)
Get queue with the exact name
list list(self, prefix='')
List queues:
SQSQueue create(self, name)
Create a queue
  delete(self, name)
Deletes a queue

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__


Properties [hide private]

Inherited from object: __class__


Method Details [hide private]

__init__(self, pub_key, priv_key)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__
(inherited documentation)

get(self, name)

source code 
Get queue with the exact name
Parameters:
  • name (string) - The name of the queue
Returns: SQSQueue or None
Queue if exists, else None

list(self, prefix='')

source code 
List queues:
Parameters:
  • prefix (string) - Queue name prefix.
Returns: list
List of queues that begin with prefix

create(self, name)

source code 
Create a queue
Parameters:
  • name (string) - Name for the new queue
Returns: SQSQueue
Returns the newly created queue

delete(self, name)

source code 
Deletes a queue
Parameters:
  • name (string) - Name of the queue that should be deleted