boto3-assist 0.29.0__py3-none-any.whl → 0.30.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_helpers.py +11 -13
- boto3_assist/dynamodb/dynamodb_re_indexer.py +1 -1
- boto3_assist/version.py +1 -1
- {boto3_assist-0.29.0.dist-info → boto3_assist-0.30.0.dist-info}/METADATA +1 -1
- {boto3_assist-0.29.0.dist-info → boto3_assist-0.30.0.dist-info}/RECORD +8 -8
- {boto3_assist-0.29.0.dist-info → boto3_assist-0.30.0.dist-info}/WHEEL +0 -0
- {boto3_assist-0.29.0.dist-info → boto3_assist-0.30.0.dist-info}/licenses/LICENSE-EXPLAINED.txt +0 -0
- {boto3_assist-0.29.0.dist-info → boto3_assist-0.30.0.dist-info}/licenses/LICENSE.txt +0 -0
|
@@ -13,7 +13,6 @@ from boto3_assist.dynamodb.dynamodb_index import DynamoDBIndex
|
|
|
13
13
|
logger = Logger()
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
|
|
17
16
|
class DynamoDBHelpers:
|
|
18
17
|
"""Dynamo DB Helper Functions"""
|
|
19
18
|
|
|
@@ -92,15 +91,15 @@ class DynamoDBHelpers:
|
|
|
92
91
|
key_info: Dict[str, Any] = {
|
|
93
92
|
"name": key_name,
|
|
94
93
|
"key": key_value,
|
|
95
|
-
"expression_format":
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
"expression_operator":
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
"has_grouped_values":
|
|
102
|
-
|
|
103
|
-
|
|
94
|
+
"expression_format": (
|
|
95
|
+
None if not isinstance(value, And) else value.expression_format
|
|
96
|
+
),
|
|
97
|
+
"expression_operator": (
|
|
98
|
+
None if not isinstance(value, And) else value.expression_operator
|
|
99
|
+
),
|
|
100
|
+
"has_grouped_values": (
|
|
101
|
+
None if not isinstance(value, And) else value.has_grouped_values
|
|
102
|
+
),
|
|
104
103
|
"values": values,
|
|
105
104
|
}
|
|
106
105
|
|
|
@@ -118,13 +117,12 @@ class DynamoDBHelpers:
|
|
|
118
117
|
logger.error({"exception": str(e)})
|
|
119
118
|
return "unknown"
|
|
120
119
|
|
|
121
|
-
|
|
122
120
|
def wrap_response(self, items, dynamodb_response: dict, diagnostics) -> dict:
|
|
123
121
|
"""A wrapper for response data"""
|
|
124
122
|
last_key = dynamodb_response.get("LastEvaluatedKey", None)
|
|
125
123
|
more = last_key is not None
|
|
126
124
|
|
|
127
|
-
# conform the
|
|
125
|
+
# conform the dynamodb responses
|
|
128
126
|
response = {
|
|
129
127
|
"Items": items,
|
|
130
128
|
"LastKey": last_key,
|
|
@@ -135,7 +133,7 @@ class DynamoDBHelpers:
|
|
|
135
133
|
}
|
|
136
134
|
|
|
137
135
|
return response
|
|
138
|
-
|
|
136
|
+
|
|
139
137
|
def wrap_collection_response(self, collection: List[dict]) -> dict[str, List]:
|
|
140
138
|
"""
|
|
141
139
|
Wraps Up Some usefull information when dealing with
|
|
@@ -77,7 +77,7 @@ class DynamoDBReIndexer:
|
|
|
77
77
|
# pk or sk, which you can't do. If that's the case
|
|
78
78
|
else:
|
|
79
79
|
# add the new one first and optionally delete the older one
|
|
80
|
-
# once we are
|
|
80
|
+
# once we are successful
|
|
81
81
|
try:
|
|
82
82
|
# save the new one first
|
|
83
83
|
service_instance: Optional[IDynamoDBService] = (
|
boto3_assist/version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "0.
|
|
1
|
+
__version__ = "0.30.0"
|
|
@@ -6,7 +6,7 @@ boto3_assist/connection_tracker.py,sha256=UgfR9RlvXf3A4ssMr3gDMpw89ka8mSRvJn4M34
|
|
|
6
6
|
boto3_assist/http_status_codes.py,sha256=G0zRSWenwavYKETvDF9tNVUXQz3Ae2gXdBETYbjvJe8,3284
|
|
7
7
|
boto3_assist/role_assumption_mixin.py,sha256=PMUU5yC2FUBjFD1UokVkRY3CPB5zTw85AhIB5BMtbc8,1031
|
|
8
8
|
boto3_assist/session_setup_mixin.py,sha256=X-JQKyyaWNA8Z8kKgf2V2I5vsiLAH8udLTX_xepnsdQ,3140
|
|
9
|
-
boto3_assist/version.py,sha256=
|
|
9
|
+
boto3_assist/version.py,sha256=OlatFEFA4ttqSSIiV8jdE-sq3KG5zu2hnC4B4mzWF3s,23
|
|
10
10
|
boto3_assist/aws_lambda/event_info.py,sha256=OkZ4WzuGaHEu_T8sB188KBgShAJhZpWASALKRGBOhMg,14648
|
|
11
11
|
boto3_assist/aws_lambda/mock_context.py,sha256=LPjHP-3YSoY6iPl1kPqJDwSVf1zLNTcukUunDtYcbK0,116
|
|
12
12
|
boto3_assist/cloudwatch/cloudwatch_connection.py,sha256=mnGWaLSQpHh5EeY7Ek_2o9JKHJxOELIYtQVMX1IaHn4,2480
|
|
@@ -21,14 +21,14 @@ boto3_assist/cognito/jwks_cache.py,sha256=1Y9r-YfQ8qrgZN5xYPvjUEEV0vthbdcPdAIaPb
|
|
|
21
21
|
boto3_assist/cognito/user.py,sha256=qc44qLx3gwq6q2zMxcPQze1EjeZwy5Kuav93vbe-4WU,820
|
|
22
22
|
boto3_assist/dynamodb/dynamodb.py,sha256=vZvGerbiUy3J9KYjHHcoU97F_Fi85HYMK1KOzdMebc0,19330
|
|
23
23
|
boto3_assist/dynamodb/dynamodb_connection.py,sha256=D4KmVpMpE0OuVOwW5g4JBWllUNkwy0hMXEGUiToAMBc,3608
|
|
24
|
-
boto3_assist/dynamodb/dynamodb_helpers.py,sha256=
|
|
24
|
+
boto3_assist/dynamodb/dynamodb_helpers.py,sha256=BYJEuXaQVCPbDfbtPswWA_OvV_yC3fVoTtKvIoZeIBc,12092
|
|
25
25
|
boto3_assist/dynamodb/dynamodb_importer.py,sha256=nCKsyRQeMqDSf0Q5mQ_X_oVIg4PRnu0hcUzZnBli610,3471
|
|
26
26
|
boto3_assist/dynamodb/dynamodb_index.py,sha256=MKQU4837rjYExMGCucGe2HBkPQPGszb8O6LR9EZBqek,8902
|
|
27
27
|
boto3_assist/dynamodb/dynamodb_iservice.py,sha256=O9Aj0PFEvcuk2vhARifWTFnUwcQW5EXzwZS478Hm-N0,796
|
|
28
28
|
boto3_assist/dynamodb/dynamodb_key.py,sha256=4IYnG4a99AjdOKUcDaWhNF_lvZJRZcKOIPzBQQzVdB0,3294
|
|
29
29
|
boto3_assist/dynamodb/dynamodb_model_base.py,sha256=SjV43lkP14YjfCH7j9KfEZAC89FYV3MLM6Ci40vTccY,12952
|
|
30
30
|
boto3_assist/dynamodb/dynamodb_model_base_interfaces.py,sha256=SFw-yK7TDPL4cK52bpn2zMm5G4mX7eYNU7eFytEw0-A,749
|
|
31
|
-
boto3_assist/dynamodb/dynamodb_re_indexer.py,sha256=
|
|
31
|
+
boto3_assist/dynamodb/dynamodb_re_indexer.py,sha256=D9gCGTJMS1R-ovAbqXK9gMbkl7a9zkBwA8_pxOAkHSY,6164
|
|
32
32
|
boto3_assist/dynamodb/dynamodb_reindexer.py,sha256=bCj6KIU0fQOgjkkiq9yF51PFZZr4Y9Lu3-hPlmsPG0Y,6164
|
|
33
33
|
boto3_assist/dynamodb/dynamodb_reserved_words.py,sha256=p0irNBSqGe4rd2FwWQqbRJWrNr4svdbWiyIXmz9lj4c,1937
|
|
34
34
|
boto3_assist/dynamodb/dynamodb_reserved_words.txt,sha256=rvctS63Cv3i9SHmPq2Unmj6RZyQ-OMqxUXsNhtbg1is,4136
|
|
@@ -60,8 +60,8 @@ boto3_assist/utilities/logging_utility.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5N
|
|
|
60
60
|
boto3_assist/utilities/numbers_utility.py,sha256=wzv9d0uXT_2_ZHHio7LBzibwxPqhGpvbq9HinrVn_4A,10160
|
|
61
61
|
boto3_assist/utilities/serialization_utility.py,sha256=m5wRZNeWW9VltQPVNziR27OGKO3MDJm6mFmcDHwN-n4,24479
|
|
62
62
|
boto3_assist/utilities/string_utility.py,sha256=XxUIz19L2LFFTRDAAmdPa8Qhn40u9yO7g4nULFuvg0M,11033
|
|
63
|
-
boto3_assist-0.
|
|
64
|
-
boto3_assist-0.
|
|
65
|
-
boto3_assist-0.
|
|
66
|
-
boto3_assist-0.
|
|
67
|
-
boto3_assist-0.
|
|
63
|
+
boto3_assist-0.30.0.dist-info/METADATA,sha256=NRlHNqMy2bTdaQgQWJHf3lw7IVVTrxSSG1njSFWdGSI,2879
|
|
64
|
+
boto3_assist-0.30.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
65
|
+
boto3_assist-0.30.0.dist-info/licenses/LICENSE-EXPLAINED.txt,sha256=WFREvTpfTjPjDHpOLADxJpCKpIla3Ht87RUUGii4ODU,606
|
|
66
|
+
boto3_assist-0.30.0.dist-info/licenses/LICENSE.txt,sha256=PXDhFWS5L5aOTkVhNvoitHKbAkgxqMI2uUPQyrnXGiI,1105
|
|
67
|
+
boto3_assist-0.30.0.dist-info/RECORD,,
|
|
File without changes
|
{boto3_assist-0.29.0.dist-info → boto3_assist-0.30.0.dist-info}/licenses/LICENSE-EXPLAINED.txt
RENAMED
|
File without changes
|
|
File without changes
|