aws-python-helper 0.29.0__tar.gz → 0.30.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {aws_python_helper-0.29.0 → aws_python_helper-0.30.0}/PKG-INFO +1 -1
- {aws_python_helper-0.29.0 → aws_python_helper-0.30.0}/aws_python_helper/sqs/consumer_base.py +13 -0
- {aws_python_helper-0.29.0 → aws_python_helper-0.30.0}/aws_python_helper.egg-info/PKG-INFO +1 -1
- {aws_python_helper-0.29.0 → aws_python_helper-0.30.0}/pyproject.toml +1 -1
- {aws_python_helper-0.29.0 → aws_python_helper-0.30.0}/README.md +0 -0
- {aws_python_helper-0.29.0 → aws_python_helper-0.30.0}/aws_python_helper/__init__.py +0 -0
- {aws_python_helper-0.29.0 → aws_python_helper-0.30.0}/aws_python_helper/api/__init__.py +0 -0
- {aws_python_helper-0.29.0 → aws_python_helper-0.30.0}/aws_python_helper/api/auth_middleware.py +0 -0
- {aws_python_helper-0.29.0 → aws_python_helper-0.30.0}/aws_python_helper/api/auth_validators.py +0 -0
- {aws_python_helper-0.29.0 → aws_python_helper-0.30.0}/aws_python_helper/api/base.py +0 -0
- {aws_python_helper-0.29.0 → aws_python_helper-0.30.0}/aws_python_helper/api/dispatcher.py +0 -0
- {aws_python_helper-0.29.0 → aws_python_helper-0.30.0}/aws_python_helper/api/exceptions.py +0 -0
- {aws_python_helper-0.29.0 → aws_python_helper-0.30.0}/aws_python_helper/api/fetcher.py +0 -0
- {aws_python_helper-0.29.0 → aws_python_helper-0.30.0}/aws_python_helper/api/handler.py +0 -0
- {aws_python_helper-0.29.0 → aws_python_helper-0.30.0}/aws_python_helper/database/__init__.py +0 -0
- {aws_python_helper-0.29.0 → aws_python_helper-0.30.0}/aws_python_helper/database/database_proxy.py +0 -0
- {aws_python_helper-0.29.0 → aws_python_helper-0.30.0}/aws_python_helper/database/external_database_proxy.py +0 -0
- {aws_python_helper-0.29.0 → aws_python_helper-0.30.0}/aws_python_helper/database/external_mongo_manager.py +0 -0
- {aws_python_helper-0.29.0 → aws_python_helper-0.30.0}/aws_python_helper/database/mongo_manager.py +0 -0
- {aws_python_helper-0.29.0 → aws_python_helper-0.30.0}/aws_python_helper/fargate/__init__.py +0 -0
- {aws_python_helper-0.29.0 → aws_python_helper-0.30.0}/aws_python_helper/fargate/executor.py +0 -0
- {aws_python_helper-0.29.0 → aws_python_helper-0.30.0}/aws_python_helper/fargate/fetcher.py +0 -0
- {aws_python_helper-0.29.0 → aws_python_helper-0.30.0}/aws_python_helper/fargate/handler.py +0 -0
- {aws_python_helper-0.29.0 → aws_python_helper-0.30.0}/aws_python_helper/fargate/task_base.py +0 -0
- {aws_python_helper-0.29.0 → aws_python_helper-0.30.0}/aws_python_helper/lambda_standalone/__init__.py +0 -0
- {aws_python_helper-0.29.0 → aws_python_helper-0.30.0}/aws_python_helper/lambda_standalone/base.py +0 -0
- {aws_python_helper-0.29.0 → aws_python_helper-0.30.0}/aws_python_helper/lambda_standalone/fetcher.py +0 -0
- {aws_python_helper-0.29.0 → aws_python_helper-0.30.0}/aws_python_helper/lambda_standalone/handler.py +0 -0
- {aws_python_helper-0.29.0 → aws_python_helper-0.30.0}/aws_python_helper/sns/__init__.py +0 -0
- {aws_python_helper-0.29.0 → aws_python_helper-0.30.0}/aws_python_helper/sns/publisher.py +0 -0
- {aws_python_helper-0.29.0 → aws_python_helper-0.30.0}/aws_python_helper/sqs/__init__.py +0 -0
- {aws_python_helper-0.29.0 → aws_python_helper-0.30.0}/aws_python_helper/sqs/fetcher.py +0 -0
- {aws_python_helper-0.29.0 → aws_python_helper-0.30.0}/aws_python_helper/sqs/handler.py +0 -0
- {aws_python_helper-0.29.0 → aws_python_helper-0.30.0}/aws_python_helper/utils/__init__.py +0 -0
- {aws_python_helper-0.29.0 → aws_python_helper-0.30.0}/aws_python_helper/utils/json_encoder.py +0 -0
- {aws_python_helper-0.29.0 → aws_python_helper-0.30.0}/aws_python_helper/utils/response.py +0 -0
- {aws_python_helper-0.29.0 → aws_python_helper-0.30.0}/aws_python_helper/utils/serializer.py +0 -0
- {aws_python_helper-0.29.0 → aws_python_helper-0.30.0}/aws_python_helper.egg-info/SOURCES.txt +0 -0
- {aws_python_helper-0.29.0 → aws_python_helper-0.30.0}/aws_python_helper.egg-info/dependency_links.txt +0 -0
- {aws_python_helper-0.29.0 → aws_python_helper-0.30.0}/aws_python_helper.egg-info/requires.txt +0 -0
- {aws_python_helper-0.29.0 → aws_python_helper-0.30.0}/aws_python_helper.egg-info/top_level.txt +0 -0
- {aws_python_helper-0.29.0 → aws_python_helper-0.30.0}/setup.cfg +0 -0
{aws_python_helper-0.29.0 → aws_python_helper-0.30.0}/aws_python_helper/sqs/consumer_base.py
RENAMED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
SQS Consumer Base - Base class for all SQS consumers
|
|
3
3
|
"""
|
|
4
4
|
|
|
5
|
+
import os
|
|
5
6
|
from abc import ABC, abstractmethod
|
|
6
7
|
from typing import Dict, Any, List
|
|
7
8
|
import logging
|
|
@@ -138,6 +139,18 @@ class SQSConsumer(ABC):
|
|
|
138
139
|
self._external_db = ExternalDatabaseProxy()
|
|
139
140
|
return self._external_db
|
|
140
141
|
|
|
142
|
+
def get_queue_url(self) -> str:
|
|
143
|
+
"""
|
|
144
|
+
Get the URL of the SQS queue
|
|
145
|
+
|
|
146
|
+
Returns:
|
|
147
|
+
The URL of the SQS queue
|
|
148
|
+
"""
|
|
149
|
+
|
|
150
|
+
base_url = f"https://sqs.{os.getenv('AWS_REGION')}.amazonaws.com/{os.getenv('AWS_ACCOUNT_ID')}"
|
|
151
|
+
queue_name = f"{os.getenv('SERVICE_NAME')}{os.getenv('QUEUE_NAME')}-{os.getenv('ENV')}"
|
|
152
|
+
return f"{base_url}/{queue_name}"
|
|
153
|
+
|
|
141
154
|
async def process_record(self, record: Dict[str, Any]):
|
|
142
155
|
"""
|
|
143
156
|
Process an individual SQS record
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{aws_python_helper-0.29.0 → aws_python_helper-0.30.0}/aws_python_helper/api/auth_middleware.py
RENAMED
|
File without changes
|
{aws_python_helper-0.29.0 → aws_python_helper-0.30.0}/aws_python_helper/api/auth_validators.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{aws_python_helper-0.29.0 → aws_python_helper-0.30.0}/aws_python_helper/database/__init__.py
RENAMED
|
File without changes
|
{aws_python_helper-0.29.0 → aws_python_helper-0.30.0}/aws_python_helper/database/database_proxy.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{aws_python_helper-0.29.0 → aws_python_helper-0.30.0}/aws_python_helper/database/mongo_manager.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{aws_python_helper-0.29.0 → aws_python_helper-0.30.0}/aws_python_helper/fargate/task_base.py
RENAMED
|
File without changes
|
|
File without changes
|
{aws_python_helper-0.29.0 → aws_python_helper-0.30.0}/aws_python_helper/lambda_standalone/base.py
RENAMED
|
File without changes
|
{aws_python_helper-0.29.0 → aws_python_helper-0.30.0}/aws_python_helper/lambda_standalone/fetcher.py
RENAMED
|
File without changes
|
{aws_python_helper-0.29.0 → aws_python_helper-0.30.0}/aws_python_helper/lambda_standalone/handler.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{aws_python_helper-0.29.0 → aws_python_helper-0.30.0}/aws_python_helper/utils/json_encoder.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{aws_python_helper-0.29.0 → aws_python_helper-0.30.0}/aws_python_helper.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{aws_python_helper-0.29.0 → aws_python_helper-0.30.0}/aws_python_helper.egg-info/requires.txt
RENAMED
|
File without changes
|
{aws_python_helper-0.29.0 → aws_python_helper-0.30.0}/aws_python_helper.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|