reach_commons 0.18.0__py3-none-any.whl → 0.18.1__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.
@@ -1,4 +1,5 @@
1
1
  from datetime import date, datetime, time, timezone
2
+ from enum import Enum
2
3
  from typing import Any
3
4
 
4
5
  from bson import ObjectId
@@ -27,6 +28,8 @@ class ReachBaseModel(BaseModel):
27
28
  return value.isoformat()
28
29
  elif isinstance(value, time):
29
30
  return value.strftime("%H:%M:%S")
31
+ elif isinstance(value, Enum):
32
+ return value.value
30
33
  elif isinstance(value, dict):
31
34
  return {k: convert_value(v) for k, v in value.items()}
32
35
  elif isinstance(value, list):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: reach_commons
3
- Version: 0.18.0
3
+ Version: 0.18.1
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
@@ -22,11 +22,11 @@ reach_commons/reach_aws/firehose.py,sha256=1xFKLWMv3bNo3PPW5gtaL6NqzUDyVil6B768s
22
22
  reach_commons/reach_aws/kms.py,sha256=HDJ3lnKm6Jah2asizUDtQErlVSjrcV9lOfBPHzUVguY,4526
23
23
  reach_commons/reach_aws/s3.py,sha256=2MLlDNFx0SROJBpE_KjJefyrB7lMqTlrYuRhSZx4iKs,3945
24
24
  reach_commons/reach_aws/sqs.py,sha256=LKQ42vRJko2HTE8gO_lRvftnstIMI3DeFZakvLUM0BQ,15864
25
- reach_commons/reach_base_model.py,sha256=uMmDGjwKTZ3h7f8Pfvc99FCsAt5eZNlUJnLLbB5EqGY,2907
25
+ reach_commons/reach_base_model.py,sha256=vgdGDcZr3iXMmyRhmBhOf_LKWB_6QzT3r_Yiyo6OmEk,3009
26
26
  reach_commons/redis_manager.py,sha256=SgUtdtt0eV4bUwsWDankIa9Bjfgcm2DKcmVMQT6ptF0,2946
27
27
  reach_commons/sms_smart_encoding.py,sha256=92y0RmZ0l4ONHpC9qeO5KfViSNq64yE2rc7lhNDSZqE,1241
28
28
  reach_commons/utils.py,sha256=dMgKIGqTgoSItuBI8oz81gKtW3qi21Jkljv9leS_V88,8475
29
29
  reach_commons/validations.py,sha256=jc78boM62S9Z0Ip_nV1z7I983gGpW2Y7vOCQtmia8OU,964
30
- reach_commons-0.18.0.dist-info/METADATA,sha256=0V6fFol9Hl_tgPUBx5qA4DzbBVY7BiMlGY6ogYSvDAg,1860
31
- reach_commons-0.18.0.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
32
- reach_commons-0.18.0.dist-info/RECORD,,
30
+ reach_commons-0.18.1.dist-info/METADATA,sha256=bxrEM3EVYADZ1T5MH3QYk-qgC8yLS8fp3IESMVe9_xQ,1860
31
+ reach_commons-0.18.1.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
32
+ reach_commons-0.18.1.dist-info/RECORD,,