reach_commons 0.18.32__tar.gz → 0.18.35__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.
- {reach_commons-0.18.32 → reach_commons-0.18.35}/PKG-INFO +1 -1
- {reach_commons-0.18.32 → reach_commons-0.18.35}/pyproject.toml +1 -1
- reach_commons-0.18.35/reach_commons/.DS_Store +0 -0
- {reach_commons-0.18.32 → reach_commons-0.18.35}/reach_commons/app_logging/logging_utils.py +6 -0
- reach_commons-0.18.35/reach_commons/clients/.DS_Store +0 -0
- {reach_commons-0.18.32 → reach_commons-0.18.35}/reach_commons/validations.py +8 -3
- {reach_commons-0.18.32 → reach_commons-0.18.35}/README.md +0 -0
- {reach_commons-0.18.32 → reach_commons-0.18.35}/reach_commons/__init__.py +0 -0
- {reach_commons-0.18.32 → reach_commons-0.18.35}/reach_commons/app_logging/__init__.py +0 -0
- {reach_commons-0.18.32 → reach_commons-0.18.35}/reach_commons/app_logging/http_logger.py +0 -0
- {reach_commons-0.18.32 → reach_commons-0.18.35}/reach_commons/app_logging/log_deprecated_endpoints.py +0 -0
- {reach_commons-0.18.32 → reach_commons-0.18.35}/reach_commons/app_logging/logger.py +0 -0
- {reach_commons-0.18.32 → reach_commons-0.18.35}/reach_commons/app_logging/logging_config.py +0 -0
- {reach_commons-0.18.32 → reach_commons-0.18.35}/reach_commons/clients/__init__.py +0 -0
- {reach_commons-0.18.32 → reach_commons-0.18.35}/reach_commons/clients/event_processor.py +0 -0
- {reach_commons-0.18.32 → reach_commons-0.18.35}/reach_commons/clients/hubspot.py +0 -0
- {reach_commons-0.18.32 → reach_commons-0.18.35}/reach_commons/clients/outscraper.py +0 -0
- {reach_commons-0.18.32 → reach_commons-0.18.35}/reach_commons/clients/reach_data_bridge.py +0 -0
- {reach_commons-0.18.32 → reach_commons-0.18.35}/reach_commons/clients/reach_ops_api.py +0 -0
- {reach_commons-0.18.32 → reach_commons-0.18.35}/reach_commons/mongo/__init__.py +0 -0
- {reach_commons-0.18.32 → reach_commons-0.18.35}/reach_commons/mongo/customer_persistence.py +0 -0
- {reach_commons-0.18.32 → reach_commons-0.18.35}/reach_commons/mongo/customer_persistence_async.py +0 -0
- {reach_commons-0.18.32 → reach_commons-0.18.35}/reach_commons/mongo/validation/__init__.py +0 -0
- {reach_commons-0.18.32 → reach_commons-0.18.35}/reach_commons/reach_aws/__init__.py +0 -0
- {reach_commons-0.18.32 → reach_commons-0.18.35}/reach_commons/reach_aws/commons.py +0 -0
- {reach_commons-0.18.32 → reach_commons-0.18.35}/reach_commons/reach_aws/dynamo_db.py +0 -0
- {reach_commons-0.18.32 → reach_commons-0.18.35}/reach_commons/reach_aws/exceptions.py +0 -0
- {reach_commons-0.18.32 → reach_commons-0.18.35}/reach_commons/reach_aws/firehose.py +0 -0
- {reach_commons-0.18.32 → reach_commons-0.18.35}/reach_commons/reach_aws/kms.py +0 -0
- {reach_commons-0.18.32 → reach_commons-0.18.35}/reach_commons/reach_aws/s3.py +0 -0
- {reach_commons-0.18.32 → reach_commons-0.18.35}/reach_commons/reach_aws/sqs.py +0 -0
- {reach_commons-0.18.32 → reach_commons-0.18.35}/reach_commons/reach_base_model.py +0 -0
- {reach_commons-0.18.32 → reach_commons-0.18.35}/reach_commons/redis_manager.py +0 -0
- {reach_commons-0.18.32 → reach_commons-0.18.35}/reach_commons/sms_smart_encoding.py +0 -0
- {reach_commons-0.18.32 → reach_commons-0.18.35}/reach_commons/utils.py +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# isort .; black .; poetry build; poetry publish
|
|
2
2
|
[tool.poetry]
|
|
3
3
|
name = "reach_commons"
|
|
4
|
-
version = "0.18.
|
|
4
|
+
version = "0.18.35"
|
|
5
5
|
description = "Reach Commons is a versatile utility library designed to streamline and enhance development workflows within the Reach ecosystem."
|
|
6
6
|
authors = ["Engineering <engineering@getreach.ai>"]
|
|
7
7
|
license = "MIT"
|
|
Binary file
|
|
@@ -8,4 +8,10 @@ def init_logger(name: str):
|
|
|
8
8
|
format="%(asctime)s - %(name)s - %(levelname)s - %(message)s",
|
|
9
9
|
force=True,
|
|
10
10
|
)
|
|
11
|
+
for noisy in ("botocore", "boto3", "urllib3"):
|
|
12
|
+
logging.getLogger(noisy).setLevel(logging.WARNING)
|
|
11
13
|
return logging.getLogger(name)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def log_with_event(level_fn, msg, event):
|
|
17
|
+
level_fn(f"{msg} | event={event}")
|
|
Binary file
|
|
@@ -5,10 +5,15 @@ from reach_commons.app_logging.logger import get_reach_logger
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
class CommonsPhoneNumberValidation:
|
|
8
|
-
def __init__(
|
|
8
|
+
def __init__(
|
|
9
|
+
self,
|
|
10
|
+
logger=get_reach_logger(),
|
|
11
|
+
account_sid="AC1f9d2cb1c49cf9522f0de29861c9652d",
|
|
12
|
+
auth_token="2a5557dd0c80ea45bc23b3de68455480",
|
|
13
|
+
):
|
|
9
14
|
self.base_url = "https://lookups.twilio.com/v1/PhoneNumbers/"
|
|
10
|
-
self.account_sid = account_sid
|
|
11
|
-
self.auth_token = auth_token
|
|
15
|
+
self.account_sid = account_sid
|
|
16
|
+
self.auth_token = auth_token
|
|
12
17
|
self.logger = logger
|
|
13
18
|
|
|
14
19
|
def is_valid_phone_number(self, phone_number):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{reach_commons-0.18.32 → reach_commons-0.18.35}/reach_commons/mongo/customer_persistence_async.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|