reach_commons 0.14.98__py3-none-any.whl → 0.14.99__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/utils.py CHANGED
@@ -3,6 +3,7 @@ import datetime
3
3
  import decimal
4
4
  import functools
5
5
  import json
6
+ import re
6
7
  import warnings
7
8
  import xml.etree.ElementTree as ET
8
9
  from functools import reduce
@@ -233,3 +234,7 @@ def is_valid_email(v):
233
234
 
234
235
  regex = r"^\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,}\b"
235
236
  return re.match(regex, v)
237
+
238
+
239
+ def clean_phone_number(phone_number):
240
+ return re.sub(r"\D", "", phone_number)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: reach_commons
3
- Version: 0.14.98
3
+ Version: 0.14.99
4
4
  Summary: Reach Commons is a versatile utility library designed to streamline and enhance development workflows within the Reach ecosystem.
5
5
  License: MIT
6
6
  Author: Wilson Moraes
@@ -24,8 +24,8 @@ reach_commons/reach_aws/s3.py,sha256=KLWvlQVakaaGfFg3110QHc1PlxCb1pUhmJQ-VggLEj4
24
24
  reach_commons/reach_aws/sqs.py,sha256=kN7QjYj59zOa_lTOHVVk4jnd9w3qyLFAGfs_gydBUBM,14258
25
25
  reach_commons/reach_base_model.py,sha256=oyAXoBwXLzsJ8GB1lxsJqiNf4QtfUJ_NI9MkiZ4zPac,2668
26
26
  reach_commons/redis_manager.py,sha256=_4FOYPMapwRmWU-5SO1Bm0Cb__Ngkx2hrOPlrJETzX0,1896
27
- reach_commons/utils.py,sha256=zny3JSj1Ljq1Bbt9RCLhqy0-sWrzb_cPoIccKpWk_Nk,8377
27
+ reach_commons/utils.py,sha256=dMgKIGqTgoSItuBI8oz81gKtW3qi21Jkljv9leS_V88,8475
28
28
  reach_commons/validations.py,sha256=jc78boM62S9Z0Ip_nV1z7I983gGpW2Y7vOCQtmia8OU,964
29
- reach_commons-0.14.98.dist-info/METADATA,sha256=svA8EXh2V7fnPVsBjRQEsWZWrDlqfq2-6RxBBm3lCV4,1861
30
- reach_commons-0.14.98.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
31
- reach_commons-0.14.98.dist-info/RECORD,,
29
+ reach_commons-0.14.99.dist-info/METADATA,sha256=TV3Jf-yA5minHTFo0uvKZB_U66PuDp7Ku2hU6D6MIuk,1861
30
+ reach_commons-0.14.99.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
31
+ reach_commons-0.14.99.dist-info/RECORD,,