{"id":51168020,"url":"https://github.com/taskiq-python/taskiq-sqs","last_synced_at":"2026-06-26T21:30:28.326Z","repository":{"id":239924823,"uuid":"801298104","full_name":"taskiq-python/taskiq-sqs","owner":"taskiq-python","description":"AWS SQS Broker for TaskIQ","archived":false,"fork":false,"pushed_at":"2026-05-30T11:21:17.000Z","size":551,"stargazers_count":7,"open_issues_count":3,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-05-30T12:12:29.559Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/taskiq-python.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-05-16T00:53:51.000Z","updated_at":"2026-05-30T11:18:58.000Z","dependencies_parsed_at":"2024-08-14T03:29:14.041Z","dependency_job_id":"6bde3889-2236-4fcb-b805-216d423cd3c0","html_url":"https://github.com/taskiq-python/taskiq-sqs","commit_stats":null,"previous_names":["apeworx/taskiq-sqs","taskiq-python/taskiq-sqs"],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/taskiq-python/taskiq-sqs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taskiq-python%2Ftaskiq-sqs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taskiq-python%2Ftaskiq-sqs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taskiq-python%2Ftaskiq-sqs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taskiq-python%2Ftaskiq-sqs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/taskiq-python","download_url":"https://codeload.github.com/taskiq-python/taskiq-sqs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taskiq-python%2Ftaskiq-sqs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34834415,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-26T02:00:06.560Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-06-26T21:30:27.501Z","updated_at":"2026-06-26T21:30:28.315Z","avatar_url":"https://github.com/taskiq-python.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# taskiq-sqs\n\n[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/taskiq-sqs?style=for-the-badge\u0026logo=python)](https://pypi.org/project/taskiq-sqs/)\n[![PyPI](https://img.shields.io/pypi/v/taskiq-sqs?style=for-the-badge\u0026logo=pypi)](https://pypi.org/project/taskiq-sqs/)\n[![Checks](https://img.shields.io/github/check-runs/taskiq-python/taskiq-sqs/main?nameFilter=test%20(ubuntu-latest,%203.12)\u0026style=for-the-badge)](https://github.com/taskiq-python/taskiq-sqs)\n\nThis library provides SQS broker and S3 result backend for TaskIQ.\n\n## Installation\n\n```bash\npip install taskiq-sqs\n```\n\n## Basic usage\n\nHere is an example of how to use the SQS broker with the S3 backend:\n\n```python\nimport asyncio\nfrom taskiq_sqs import S3Bucket, S3ResultBackend, SQSBroker\n\nQUEUE_NAME = \"my-queue\"\nbroker = SQSBroker(\n    \"http://localhost:4566/000000000000/my-queue\",  # specify existing queue\n    sqs_region_override=\"us-east-1\"\n).with_result_backend(\n    S3ResultBackend(\n        bucket=S3Bucket(name=\"response-bucket\")  # by default backend will create bucket for you if it does not exist\n    )\n)\n\n@broker.task()\nasync def i_love_aws() -\u003e None:\n    await asyncio.sleep(1)\n    print(\"Hello there!\")\n\nasync def main() -\u003e None:\n    await broker.startup()\n    task = await i_love_aws.kiq()\n    print(await task.wait_result())\n    await broker.shutdown()\n\nif __name__ == \"__main__\":\n    asyncio.run(main())\n```\n\nHow to run:\n- run worker first with `taskiq worker examples.example_broker:broker`\n- after that run broker to create a task and wait for result: `python examples/example_broker.py`\n\n## Message expiration\n\nIf you set the `sqs_expiry` label to a unix timestamp, the message will be discarded if the worker receives it after that time.\n\n```python\nimport asyncio\nfrom taskiq_sqs import SQSBroker\n\nbroker = SQSBroker(\"http://sqs.us-east-1.localhost.localstack.cloud:4566/000000000000/my-queue\")\n\n@broker.task\nasync def add_one(value: int) -\u003e int:\n    return value + 1\n\n\nasync def main() -\u003e None:\n    # Never forget to call startup in the beginning.\n    await broker.startup()\n    # Send the task to the broker.\n    task = await add_one.kiq(1)\n    # Wait for the result. (result backend must be configured)\n    result = await task.wait_result(timeout=2)\n    print(f\"Task execution took: {result.execution_time} seconds.\")\n    if not result.is_err:\n        print(f\"Returned value: {result.return_value}\")\n    else:\n        print(\"Error found while executing task.\")\n    await broker.shutdown()\n\nif __name__ == \"__main__\":\n    asyncio.run(main())\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaskiq-python%2Ftaskiq-sqs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftaskiq-python%2Ftaskiq-sqs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaskiq-python%2Ftaskiq-sqs/lists"}