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.2.tar.gz (11.6 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.2-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for onestep_sqs-0.2.2.tar.gz
Algorithm Hash digest
SHA256 7d3c360665390f7ebb99ddc4fe158b3e3a671ca29dd15b5eb5fc852906281a80
MD5 1939150b91706975f530fc0677d595e5
BLAKE2b-256 8604fba5d16a4464d3c9204d8431bd55292e5f6df632c4a92985ef6e6f6bcfcb

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for onestep_sqs-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a1f373912400a63fba7925ffc1ced8066503690a6d613ee180be60b7331041fa
MD5 70ea532bbda03c86711203177f274055
BLAKE2b-256 cc7007ec8d65af53b633eeda504e251a3f20e09949c370893d17b5d00e399a54

See more details on using hashes here.

Release history Release notifications | RSS feed

0.2.4

2 files

0.2.3

2 files

This release

0.2.2 This release

2 files

0.2.1

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