/usr/lib/python2.6/site-packages/boto/sqs
Edit: /usr/lib/python2.6/site-packages/boto/sqs/bigmessage.pyc (3898B)
Ñò
Å-õSc @ sR d d k Z d d k Z d d k l Z d d k l Z d e f d „ ƒ YZ d S( iÿÿÿÿN( t
RawMessage( t SQSDecodeErrort
BigMessagec B sM e Z d Z d d d d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z RS( s±
The BigMessage class provides large payloads (up to 5GB)
by storing the payload itself in S3 and then placing a reference
to the S3 object in the actual SQS message payload.
To create a BigMessage, you should create a BigMessage object
and pass in a file-like object as the ``body`` param and also
pass in the an S3 URL specifying the bucket in which to store
the message body::
import boto.sqs
from boto.sqs.bigmessage import BigMessage
sqs = boto.sqs.connect_to_region('us-west-2')
queue = sqs.get_queue('myqueue')
fp = open('/path/to/bigmessage/data')
msg = BigMessage(queue, fp, 's3://mybucket')
queue.write(msg)
Passing in a fully-qualified S3 URL (e.g. s3://mybucket/foo)
is interpreted to mean that the body of the message is already
stored in S3 and the that S3 URL is then used directly with no
content uploaded by BigMessage.
c C s&