reach_commons 0.15.5__py3-none-any.whl → 0.15.6__py3-none-any.whl
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.
reach_commons/reach_aws/sqs.py
CHANGED
|
@@ -472,3 +472,34 @@ class SmsProcessorSQSNotifier(SQSClient):
|
|
|
472
472
|
message_attributes=message_attributes,
|
|
473
473
|
delay_seconds=delay_seconds,
|
|
474
474
|
)
|
|
475
|
+
|
|
476
|
+
|
|
477
|
+
class POSApiPullerSQSNotifier(SQSClient):
|
|
478
|
+
SERVICE_NAME = "POSApiPullerSQSNotifier"
|
|
479
|
+
TOPIC_NAME = "pos-api-messages-queue"
|
|
480
|
+
DEFAULT_REGION = "us-east-1"
|
|
481
|
+
|
|
482
|
+
def __init__(
|
|
483
|
+
self,
|
|
484
|
+
region_name=DEFAULT_REGION,
|
|
485
|
+
logger=get_reach_logger(),
|
|
486
|
+
env=os.environ.get("ENV", "Staging"),
|
|
487
|
+
):
|
|
488
|
+
super().__init__(
|
|
489
|
+
region_name=region_name,
|
|
490
|
+
logger=logger,
|
|
491
|
+
topic_name=f"{env}-{self.TOPIC_NAME}",
|
|
492
|
+
)
|
|
493
|
+
|
|
494
|
+
def notify_for_send_message(
|
|
495
|
+
self,
|
|
496
|
+
message_data: dict,
|
|
497
|
+
delay_seconds=2,
|
|
498
|
+
):
|
|
499
|
+
message_attributes = {"service_name": self.SERVICE_NAME}
|
|
500
|
+
|
|
501
|
+
return self.publish(
|
|
502
|
+
message_data=message_data,
|
|
503
|
+
message_attributes=message_attributes,
|
|
504
|
+
delay_seconds=delay_seconds,
|
|
505
|
+
)
|
|
@@ -21,11 +21,11 @@ reach_commons/reach_aws/exceptions.py,sha256=x0RL5ktNtzxg0KykhEVWReBq_dEtciK6B2v
|
|
|
21
21
|
reach_commons/reach_aws/firehose.py,sha256=1xFKLWMv3bNo3PPW5gtaL6NqzUDyVil6B768slj2wbY,5674
|
|
22
22
|
reach_commons/reach_aws/kms.py,sha256=HDJ3lnKm6Jah2asizUDtQErlVSjrcV9lOfBPHzUVguY,4526
|
|
23
23
|
reach_commons/reach_aws/s3.py,sha256=KLWvlQVakaaGfFg3110QHc1PlxCb1pUhmJQ-VggLEj4,1962
|
|
24
|
-
reach_commons/reach_aws/sqs.py,sha256=
|
|
24
|
+
reach_commons/reach_aws/sqs.py,sha256=Xm4JzYX76NJmAFhHFA4cKyRVpXCkuFFWZIqsbDnkeKI,15420
|
|
25
25
|
reach_commons/reach_base_model.py,sha256=uMmDGjwKTZ3h7f8Pfvc99FCsAt5eZNlUJnLLbB5EqGY,2907
|
|
26
26
|
reach_commons/redis_manager.py,sha256=_4FOYPMapwRmWU-5SO1Bm0Cb__Ngkx2hrOPlrJETzX0,1896
|
|
27
27
|
reach_commons/utils.py,sha256=dMgKIGqTgoSItuBI8oz81gKtW3qi21Jkljv9leS_V88,8475
|
|
28
28
|
reach_commons/validations.py,sha256=jc78boM62S9Z0Ip_nV1z7I983gGpW2Y7vOCQtmia8OU,964
|
|
29
|
-
reach_commons-0.15.
|
|
30
|
-
reach_commons-0.15.
|
|
31
|
-
reach_commons-0.15.
|
|
29
|
+
reach_commons-0.15.6.dist-info/METADATA,sha256=Ch3Gx0wDre_I41TjRNt5USZdFADcDcnc5OneDEK5_uI,1860
|
|
30
|
+
reach_commons-0.15.6.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
|
|
31
|
+
reach_commons-0.15.6.dist-info/RECORD,,
|
|
File without changes
|