Very simple SQS Client
Project description
Very Sipmle SQS Client
Requirements
- Python 3+
Installing
pip install simple-sqs-client
Usage
SQSClientBuilder
You can use SQSClientBuilder which is more flexible approach and allows you to fill the connection parameters in different moment of code execution if necessary. Just keep the variable holding the builder in the scope
with SQSClientBuilder() \
.with_region(AWS_SQS_REGION) \
.with_queue_url(AWS_SQS_QUEUE_REACT_URL) \
.with_aws_credentials(
aws_access_key_id=AWS_SQS_ACCESS_KEY_ID,
aws_secret_access_key=AWS_SQS_SECRET_ACCESS_KEY
).build() as sqs_client:
event = {message: "hello world"}
sqs_client.send_message(body=json_util.dumps(event))
Direct
You can also create Client using its constructor
SQSClient(region_name, aws_access_key_id, aws_secret_access_key, queue_url)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file simple_sqs_client-0.9.6.tar.gz
.
File metadata
- Download URL: simple_sqs_client-0.9.6.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e5fad73bf9318f2607f6f50362923053d024853d2337180a07e1e8aa5e71d27 |
|
MD5 | fb7fea137f037032ef33046761b74437 |
|
BLAKE2b-256 | a5eb5a8e63b7e7f67b6bff879b3c61a40bd3ac5fb0575175824f80a21c9d48ad |
File details
Details for the file simple_sqs_client-0.9.6-py3-none-any.whl
.
File metadata
- Download URL: simple_sqs_client-0.9.6-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e0ce0d722416ea5b7e06b6b58f3dadbe0d09d18f5d628c14a07c4cc74a720ba |
|
MD5 | bce974c5d273d7542b6e2724e174f4fb |
|
BLAKE2b-256 | ff625f2109d78c63de246380b108e90cd2deb2a36c676833b154201a36823c68 |