boto3-assist 0.36.0__py3-none-any.whl → 0.37.0__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.
- boto3_assist/dynamodb/dynamodb_key.py +9 -4
- boto3_assist/version.py +1 -1
- {boto3_assist-0.36.0.dist-info → boto3_assist-0.37.0.dist-info}/METADATA +1 -1
- {boto3_assist-0.36.0.dist-info → boto3_assist-0.37.0.dist-info}/RECORD +7 -7
- {boto3_assist-0.36.0.dist-info → boto3_assist-0.37.0.dist-info}/WHEEL +0 -0
- {boto3_assist-0.36.0.dist-info → boto3_assist-0.37.0.dist-info}/licenses/LICENSE-EXPLAINED.txt +0 -0
- {boto3_assist-0.36.0.dist-info → boto3_assist-0.37.0.dist-info}/licenses/LICENSE.txt +0 -0
|
@@ -48,15 +48,15 @@ class DynamoDBKey:
|
|
|
48
48
|
def to_dict(self) -> dict[str, str]:
|
|
49
49
|
"""
|
|
50
50
|
Return a dictionary representation of this key for debugging.
|
|
51
|
-
|
|
51
|
+
|
|
52
52
|
Returns:
|
|
53
53
|
Dictionary with attribute name as key and value as the value.
|
|
54
|
-
|
|
54
|
+
|
|
55
55
|
Example:
|
|
56
56
|
>>> key = DynamoDBKey(attribute_name="pk", value="user#123")
|
|
57
57
|
>>> key.to_dict()
|
|
58
58
|
{'pk': 'user#123'}
|
|
59
|
-
|
|
59
|
+
|
|
60
60
|
>>> # With lambda
|
|
61
61
|
>>> key = DynamoDBKey(attribute_name="pk", value=lambda: "user#456")
|
|
62
62
|
>>> key.to_dict()
|
|
@@ -119,8 +119,13 @@ class DynamoDBKey:
|
|
|
119
119
|
for key, value in key_value_pairs:
|
|
120
120
|
prefix = f"{key}#" if key else ""
|
|
121
121
|
if value is None:
|
|
122
|
-
|
|
122
|
+
# don't add the prefix we may want loose begins with and compound here will break it
|
|
123
|
+
# parts.append(f"{prefix}")
|
|
124
|
+
if len(parts) == 0:
|
|
125
|
+
parts.append(f"{prefix}")
|
|
126
|
+
# exit after the first None
|
|
123
127
|
break
|
|
128
|
+
|
|
124
129
|
elif len(str(value).strip()) == 0:
|
|
125
130
|
parts.append(f"{key}")
|
|
126
131
|
else:
|
boto3_assist/version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "0.
|
|
1
|
+
__version__ = "0.37.0"
|
|
@@ -7,7 +7,7 @@ boto3_assist/connection_tracker.py,sha256=UgfR9RlvXf3A4ssMr3gDMpw89ka8mSRvJn4M34
|
|
|
7
7
|
boto3_assist/http_status_codes.py,sha256=G0zRSWenwavYKETvDF9tNVUXQz3Ae2gXdBETYbjvJe8,3284
|
|
8
8
|
boto3_assist/role_assumption_mixin.py,sha256=PMUU5yC2FUBjFD1UokVkRY3CPB5zTw85AhIB5BMtbc8,1031
|
|
9
9
|
boto3_assist/session_setup_mixin.py,sha256=X-JQKyyaWNA8Z8kKgf2V2I5vsiLAH8udLTX_xepnsdQ,3140
|
|
10
|
-
boto3_assist/version.py,sha256=
|
|
10
|
+
boto3_assist/version.py,sha256=XBXO7SJLNyshet4jr9-3xk5IGG5EjpIAS0aNB4_SuTk,23
|
|
11
11
|
boto3_assist/aws_lambda/event_info.py,sha256=OkZ4WzuGaHEu_T8sB188KBgShAJhZpWASALKRGBOhMg,14648
|
|
12
12
|
boto3_assist/aws_lambda/mock_context.py,sha256=LPjHP-3YSoY6iPl1kPqJDwSVf1zLNTcukUunDtYcbK0,116
|
|
13
13
|
boto3_assist/cloudwatch/cloudwatch_connection.py,sha256=mnGWaLSQpHh5EeY7Ek_2o9JKHJxOELIYtQVMX1IaHn4,2480
|
|
@@ -27,7 +27,7 @@ boto3_assist/dynamodb/dynamodb_helpers.py,sha256=BYJEuXaQVCPbDfbtPswWA_OvV_yC3fV
|
|
|
27
27
|
boto3_assist/dynamodb/dynamodb_importer.py,sha256=nCKsyRQeMqDSf0Q5mQ_X_oVIg4PRnu0hcUzZnBli610,3471
|
|
28
28
|
boto3_assist/dynamodb/dynamodb_index.py,sha256=2AKxHo8HrRbaxL0ePj7S6ek36_sy5cHkDp5I9wIp8Kw,19797
|
|
29
29
|
boto3_assist/dynamodb/dynamodb_iservice.py,sha256=O9Aj0PFEvcuk2vhARifWTFnUwcQW5EXzwZS478Hm-N0,796
|
|
30
|
-
boto3_assist/dynamodb/dynamodb_key.py,sha256=
|
|
30
|
+
boto3_assist/dynamodb/dynamodb_key.py,sha256=k09E9gXEckQ20oRaIZdhyoJL3I6FUls5ysEgsLd3FP0,4126
|
|
31
31
|
boto3_assist/dynamodb/dynamodb_model_base.py,sha256=gCUG0UKXV9AUcPBlbxJ3Xb8wOS8awrGG7DZpZjgIS58,21291
|
|
32
32
|
boto3_assist/dynamodb/dynamodb_model_base_interfaces.py,sha256=SFw-yK7TDPL4cK52bpn2zMm5G4mX7eYNU7eFytEw0-A,749
|
|
33
33
|
boto3_assist/dynamodb/dynamodb_re_indexer.py,sha256=D9gCGTJMS1R-ovAbqXK9gMbkl7a9zkBwA8_pxOAkHSY,6164
|
|
@@ -66,8 +66,8 @@ boto3_assist/utilities/logging_utility.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5N
|
|
|
66
66
|
boto3_assist/utilities/numbers_utility.py,sha256=wzv9d0uXT_2_ZHHio7LBzibwxPqhGpvbq9HinrVn_4A,10160
|
|
67
67
|
boto3_assist/utilities/serialization_utility.py,sha256=m5wRZNeWW9VltQPVNziR27OGKO3MDJm6mFmcDHwN-n4,24479
|
|
68
68
|
boto3_assist/utilities/string_utility.py,sha256=XxUIz19L2LFFTRDAAmdPa8Qhn40u9yO7g4nULFuvg0M,11033
|
|
69
|
-
boto3_assist-0.
|
|
70
|
-
boto3_assist-0.
|
|
71
|
-
boto3_assist-0.
|
|
72
|
-
boto3_assist-0.
|
|
73
|
-
boto3_assist-0.
|
|
69
|
+
boto3_assist-0.37.0.dist-info/METADATA,sha256=ErrRoU35Bb3qt-O7C2jpCEYWJ23DxZxGCKUI1tanF2Y,2879
|
|
70
|
+
boto3_assist-0.37.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
71
|
+
boto3_assist-0.37.0.dist-info/licenses/LICENSE-EXPLAINED.txt,sha256=WFREvTpfTjPjDHpOLADxJpCKpIla3Ht87RUUGii4ODU,606
|
|
72
|
+
boto3_assist-0.37.0.dist-info/licenses/LICENSE.txt,sha256=PXDhFWS5L5aOTkVhNvoitHKbAkgxqMI2uUPQyrnXGiI,1105
|
|
73
|
+
boto3_assist-0.37.0.dist-info/RECORD,,
|
|
File without changes
|
{boto3_assist-0.36.0.dist-info → boto3_assist-0.37.0.dist-info}/licenses/LICENSE-EXPLAINED.txt
RENAMED
|
File without changes
|
|
File without changes
|