sqs-java-messaging
Implements the functionality of amazon-sqs-java-messaging-lib in Python
Installation
pip install sqs-java-messaging
Overview
This library supports byte and text messages in the AWS SQS Java Messaging Library format. It does not support object messages.
API
-
sqs_java_messaging.client.JMSClientimport boto3 from sqs_java_messaging.client import JMSClient client = JMSClient(boto3.client('sqs'))This class wraps
SQS.Clientobjects. It provides all of the methods of those objects directly exceptreceive_message,send_messageandsend_message_batch. These are replaced withreceive_jms_message,send_bytes_message,send_text_messageandsend_jms_message_batch.Once created it may be used exactly as the wrapped
SQS.Clientobject.-
receive_jms_message(**kwargs)Request
Exactly as
receive_message.Response
{ 'Messages': [ { 'MessageId': 'string', 'ReceiptHandle': 'string', 'MD5OfBody': 'string', 'Body': 'string' | b'bytes', 'Attributes': { 'string': 'string' }, 'MD5OfMessageAttributes': 'string', 'MessageAttributes': { 'string': { 'StringValue': 'string', 'BinaryValue': b'bytes', 'StringListValues': [ 'string', ], 'BinaryListValues': [ b'bytes', ], 'DataType': 'string' } }, 'JMSMessageType': 'byte' | 'text', 'JMSCorrelationId': 'string', 'JMSReplyTo': { 'QueueName': 'string', 'QueueUrl': 'string' } }, ] } -
send_bytes_message(JMSReplyTo=None, JMSCorrelationId=None, **kwargs)Request
The same as
send_messagewith the following changes:response = client.send_bytes_message( JMSReplyTo={ 'QueueName': 'string', 'QueueUrl': 'string' }, JMSCorrelationId='string', MessageBody=b'bytes' | bytearry, ... )Response
The same as
send_message -
send_jms_message_batch(**kwargs)Request
The same as
send_message_batchwith the additon ofJMSMessageType,JMSCorrelationIdandJMSReplyToand a modification ofMessageBody.response = client.send_jms_message_batch( QueueUrl='string', Entries=[ { 'Id': 'string', 'MessageBody': 'string' | b'bytes' | bytearry, 'DelaySeconds': 123, 'MessageAttributes': { 'string': { 'StringValue': 'string', 'BinaryValue': b'bytes', 'StringListValues': [ 'string', ], 'BinaryListValues': [ b'bytes', ], 'DataType': 'string' } }, 'MessageSystemAttributes': { 'string': { 'StringValue': 'string', 'BinaryValue': b'bytes', 'StringListValues': [ 'string', ], 'BinaryListValues': [ b'bytes', ], 'DataType': 'string' } }, 'MessageDeduplicationId': 'string', 'MessageGroupId': 'string', 'JMSMessageType': 'byte' | 'text', 'JMSCorrelationId': 'string', 'JMSReplyTo': { 'QueueName': 'string', 'QueueUrl': 'string' } }, ] )Response
The same as
send_message_batch -
send_text_message(JMSReplyTo=None, JMSCorrelationId=None, **kwargs)Request
The same as
send_messagewith the following additions:response = client.send_text_message( JMSReplyTo={ 'QueueName': 'string', 'QueueUrl': 'string' }, JMSCorrelationId='string', ... )Response
The same as
send_message
-
-
sqs_java_messaging.resource.JMSQueueimport boto3 from sqs_java_messaging.resource import JMSQueue queue = JMSQueue(boto3.resource('sqs').Queue('url'))This class wraps
SQS.Queueobjects. It provides all of the methods, attributes, identifiers, sub-resources and collections of those objects directly exceptreceive_messages,send_messageandsend_messages. These are replaced withreceive_jms_messages,send_bytes_message,send_text_messageandsend_jms_messages.Once created it may be used exactly as the wrapped
SQS.Queueobject.-
receive_jms_messages(**kwargs)Request
Exactly as
receive_messages.Response
list(sqs_java_messaging.message.JMSBytesMessage | sqs_java_messaging.message.JMSTextMessage) -
send_bytes_message(JMSReplyTo=None, JMSCorrelationId=None, **kwargs)Request
The same as
send_messagewith the following changes:response = client.send_bytes_message( JMSReplyTo={ 'QueueName': 'string', 'QueueUrl': 'string' }, JMSCorrelationId='string', MessageBody=b'bytes' | bytearry, ... )Response
The same as
send_message -
send_jms_messages(**kwargs)Request
The same as
send_messageswith the additon ofJMSMessageType,JMSCorrelationIdandJMSReplyToand a modification ofMessageBody.response = client.send_jms_messages( Entries=[ { 'Id': 'string', 'MessageBody': 'string' | b'bytes' | bytearry, 'DelaySeconds': 123, 'MessageAttributes': { 'string': { 'StringValue': 'string', 'BinaryValue': b'bytes', 'StringListValues': [ 'string', ], 'BinaryListValues': [ b'bytes', ], 'DataType': 'string' } }, 'MessageSystemAttributes': { 'string': { 'StringValue': 'string', 'BinaryValue': b'bytes', 'StringListValues': [ 'string', ], 'BinaryListValues': [ b'bytes', ], 'DataType': 'string' } }, 'MessageDeduplicationId': 'string', 'MessageGroupId': 'string', 'JMSMessageType': 'byte' | 'text', 'JMSCorrelationId': 'string', 'JMSReplyTo': { 'QueueName': 'string', 'QueueUrl': 'string' } }, ] )Response
The same as
send_messages -
send_text_message(JMSReplyTo=None, JMSCorrelationId=None, **kwargs)Request
The same as
send_messagewith the following additions:response = client.send_text_message( JMSReplyTo={ 'QueueName': 'string', 'QueueUrl': 'string' }, JMSCorrelationId='string', ... )Response
The same as
send_message
-
-
sqs_java_messaging.message.JMSBytesMessageandsqs_java_messaging.message.JMSTextMessageThese classes wrap
SQS.Messageobjects. They provide all of the methods,attributes, and identifiers of those objects directly. The sub-resourceQueue()returns aJMSQueue.Once created it may be used exactly as the wrapped
SQS.Messageobject.These are the resource's additional available attributes:
jms_correlation_idjms_message_typejms_reply_to- adictcontaining the keysQueueNameandQueueUrl
Metadata
Release files for sqs-java-messaging 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sqs-java-messaging-0.0.1.tar.gz | 6.4 kB | Without provenance | Details for sqs-java-messaging-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sqs_java_messaging-0.0.1-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for sqs_java_messaging-0.0.1-py2.py3-none-any.whl |
Total release size: 17.5 kB
Release files / sqs-java-messaging-0.0.1.tar.gz
| Download URL | sqs-java-messaging-0.0.1.tar.gz |
|---|---|
| Size | 6.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fff0e0dd0536002ed4b81eddbb0cecf03ee58d167fd59e1d39322a5da75bfbb4
|
|
BLAKE2b-256 checksum How to use checksums |
89c29a3f32f57c9d7dbed92cfaffc728315964ded4b89213399b01fa437afb69
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.1 requests-toolbelt/0.8.0 tqdm/4.46.1 CPython/3.7.7
|
Release files / sqs_java_messaging-0.0.1-py2.py3-none-any.whl
| Download URL | sqs_java_messaging-0.0.1-py2.py3-none-any.whl |
|---|---|
| Size | 11.1 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
635388ba17da0b8143e7afb05ce79c443f8e2a18825e26f1902a8b41096de9a7
|
|
BLAKE2b-256 checksum How to use checksums |
c996dc6cf1def1c52de7a281f0c5c986c88e050e31b12c47ee6d9c69ff1ed085
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.1 requests-toolbelt/0.8.0 tqdm/4.46.1 CPython/3.7.7
|
Security for sqs-java-messaging 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.