Skip to main content

onestep-sqs

Amazon SQS connector plugin for onestep.

pip install onestep-sqs

The package registers these YAML resource types through the onestep.resources entry point:

  • sqs
  • sqs_queue

Python usage:

from onestep_sqs import SQSConnector

Delivery metadata

Fetched messages keep the existing OneStep body decoding behavior and expose SQS system metadata under delivery.envelope.meta["sqs"]:

{
    "message_id": "00000000-0000-0000-0000-000000000000",
    "attributes": {
        "ApproximateReceiveCount": "2",
        "SentTimestamp": "1720000000000",
    },
}

The current message's MessageId sets message_id. Its Attributes sets attributes to an isolated snapshot of the complete system attributes dictionary. When no existing SQS metadata or current system fields are available, meta["sqs"] is an empty dictionary.

Existing envelope meta and attempts values are preserved. If the encoded envelope already contains a meta["sqs"] dictionary, its other keys are kept. The reserved message_id and attributes keys are populated only from the current SQS response, so missing fields do not inherit stale transport values.

ReceiptHandle remains internal to acknowledgement, retry, and release operations. Custom SQS MessageAttributes are not exposed in the envelope.

Shutdown and pause behavior

SQS receives use a blocking long poll, so shutdown, drain, and pause wait for the current poll to finish instead of cancelling it. Any deliveries returned after fetching has stopped are released immediately with a visibility timeout of zero when processing has not started, making them available to SQS consumers again without waiting for the configured visibility timeout.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

onestep_sqs-0.2.1.tar.gz (11.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

onestep_sqs-0.2.1-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file onestep_sqs-0.2.1.tar.gz.

File metadata

  • Download URL: onestep_sqs-0.2.1.tar.gz
  • Upload date:
  • Size: 11.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for onestep_sqs-0.2.1.tar.gz
Algorithm Hash digest
SHA256 b7b6a3f27310de919be4d5e350ae8b5c1fc4961a2e7f464f2dce5bce123f4ac7
MD5 518c4f01119f983a51e63984bd5412b8
BLAKE2b-256 beba551c3fba14042825812e5d2fe7a580910e272253c1079aa92816dd0c74ae

See more details on using hashes here.

File details

Details for the file onestep_sqs-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: onestep_sqs-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for onestep_sqs-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b080ec4f9565e4bb65fc4a9c8e1d1bab0a09c73ca15c1d2f952969420f3080fd
MD5 bda792c8611f572bac05efc771d88d8f
BLAKE2b-256 aca3fb228a817a195d4b9bb60317f9a22cdba97f0f932b9aa01e241614511c08

See more details on using hashes here.

Release history Release notifications | RSS feed

0.2.4

2 files

0.2.3

2 files

0.2.2

2 files

This release

0.2.1 This release

2 files

0.2.0

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page