boto3-assist 0.2.9__py3-none-any.whl → 0.2.10__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.py +1 -1
- boto3_assist/dynamodb/dynamodb_index.py +13 -1
- boto3_assist/version.py +1 -1
- {boto3_assist-0.2.9.dist-info → boto3_assist-0.2.10.dist-info}/METADATA +1 -1
- {boto3_assist-0.2.9.dist-info → boto3_assist-0.2.10.dist-info}/RECORD +8 -8
- {boto3_assist-0.2.9.dist-info → boto3_assist-0.2.10.dist-info}/WHEEL +0 -0
- {boto3_assist-0.2.9.dist-info → boto3_assist-0.2.10.dist-info}/licenses/LICENSE-EXPLAINED.txt +0 -0
- {boto3_assist-0.2.9.dist-info → boto3_assist-0.2.10.dist-info}/licenses/LICENSE.txt +0 -0
|
@@ -94,7 +94,7 @@ class DynamoDB(DynamoDBConnection):
|
|
|
94
94
|
except Exception as e: # pylint: disable=w0718
|
|
95
95
|
logger.exception(e)
|
|
96
96
|
raise RuntimeError(
|
|
97
|
-
"An error occured during model converation. The entry was not saved."
|
|
97
|
+
"An error occured during model converation. The entry was not saved. "
|
|
98
98
|
) from e
|
|
99
99
|
|
|
100
100
|
if isinstance(item, dict):
|
|
@@ -28,6 +28,14 @@ class DynamoDBIndexes:
|
|
|
28
28
|
def add_primary(self, index: DynamoDBIndex):
|
|
29
29
|
"""Add an index"""
|
|
30
30
|
index.name = DynamoDBIndexes.PRIMARY_INDEX
|
|
31
|
+
|
|
32
|
+
if index.name in self.__indexes:
|
|
33
|
+
raise ValueError(
|
|
34
|
+
f"The index {index.name} is already defined in your model somewhere. "
|
|
35
|
+
"This error is generated to protect you from unforseen issues. "
|
|
36
|
+
"If you models are inheriting from other models, you may have the primary defined twice."
|
|
37
|
+
)
|
|
38
|
+
|
|
31
39
|
self.__indexes[DynamoDBIndexes.PRIMARY_INDEX] = index
|
|
32
40
|
|
|
33
41
|
def add_secondary(self, index: DynamoDBIndex):
|
|
@@ -37,7 +45,11 @@ class DynamoDBIndexes:
|
|
|
37
45
|
|
|
38
46
|
# if the index already exists, raise an exception
|
|
39
47
|
if index.name in self.__indexes:
|
|
40
|
-
raise ValueError(
|
|
48
|
+
raise ValueError(
|
|
49
|
+
f"The index {index.name} is already defined in your model somewhere. "
|
|
50
|
+
"This error is generated to protect you from unforseen issues. "
|
|
51
|
+
"If you models are inheriting from other models, you may have the primary defined twice."
|
|
52
|
+
)
|
|
41
53
|
if index.name == DynamoDBIndexes.PRIMARY_INDEX:
|
|
42
54
|
raise ValueError(f"Index {index.name} is reserved for the primary index")
|
|
43
55
|
if index.partition_key is None:
|
boto3_assist/version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = '0.2.
|
|
1
|
+
__version__ = '0.2.10'
|
|
@@ -2,18 +2,18 @@ boto3_assist/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
2
2
|
boto3_assist/boto3session.py,sha256=NWhWtYR3143thEbTpoklkwdz77-fTMs-QsoQdqfRm6E,6430
|
|
3
3
|
boto3_assist/connection.py,sha256=EJlGueLIYqMSKs7aQlThK1S0Zkb8dOYBWch1iRZdgUI,3233
|
|
4
4
|
boto3_assist/connection_tracker.py,sha256=_s1t7h2DOi3CCIHIr_HIKyGjku65WR-HJ_v8vJHDvO0,2977
|
|
5
|
-
boto3_assist/version.py,sha256=
|
|
5
|
+
boto3_assist/version.py,sha256=JYwb-C-8s4xwnUp2y3_Hp7caBJyciFJh6lKJs_WcehM,23
|
|
6
6
|
boto3_assist/cloudwatch/cloudwatch_connection.py,sha256=mnGWaLSQpHh5EeY7Ek_2o9JKHJxOELIYtQVMX1IaHn4,2480
|
|
7
7
|
boto3_assist/cloudwatch/cloudwatch_connection_tracker.py,sha256=mzRtO1uHrcfJNh1XrGEiXdTqxwEP8d1RqJkraMNkgK0,410
|
|
8
8
|
boto3_assist/cloudwatch/cloudwatch_log_connection.py,sha256=qQMZHjUJ6gA8wU9utjQhOURXNSPH2RjxSoAy83bvoCs,1737
|
|
9
9
|
boto3_assist/cloudwatch/cloudwatch_logs.py,sha256=VtI0OnFjX1l4RYVvA8tvveGkPwAogtrplnflZ4dQSNM,1204
|
|
10
10
|
boto3_assist/cloudwatch/cloudwatch_query.py,sha256=uNhSb1Gfp99v8BaHmCnCKs63j4MMU4WveqBavCJyhGY,6409
|
|
11
|
-
boto3_assist/dynamodb/dynamodb.py,sha256=
|
|
11
|
+
boto3_assist/dynamodb/dynamodb.py,sha256=q3U4uYqnKX1_u5TXv8Iq94JrBad16q0rL_vKxQyR_3k,15772
|
|
12
12
|
boto3_assist/dynamodb/dynamodb_connection.py,sha256=hr4IGbbEE73fh375tj3_XtYAwwDV0s7z1-6JK_1Tc30,5263
|
|
13
13
|
boto3_assist/dynamodb/dynamodb_connection_tracker.py,sha256=0BWHRfi5_vjkJLuCSX6sYwvA6wc7BSYCQnGrzbhfyKA,404
|
|
14
14
|
boto3_assist/dynamodb/dynamodb_helpers.py,sha256=ajpTJ5bJOm9PDgE2Zx9p2zkTRFV4xswqJRS81SOTn1s,12198
|
|
15
15
|
boto3_assist/dynamodb/dynamodb_importer.py,sha256=nCKsyRQeMqDSf0Q5mQ_X_oVIg4PRnu0hcUzZnBli610,3471
|
|
16
|
-
boto3_assist/dynamodb/dynamodb_index.py,sha256=
|
|
16
|
+
boto3_assist/dynamodb/dynamodb_index.py,sha256=fNIFeuUqjoYN82DcF1FRtkKwb0rXI5KMVeE9BrDLblI,8359
|
|
17
17
|
boto3_assist/dynamodb/dynamodb_iservice.py,sha256=O9Aj0PFEvcuk2vhARifWTFnUwcQW5EXzwZS478Hm-N0,796
|
|
18
18
|
boto3_assist/dynamodb/dynamodb_key.py,sha256=YD7o1EUlwVBQ55p9YCTKqAUU_np4nqtLIHnmp-BeolM,1803
|
|
19
19
|
boto3_assist/dynamodb/dynamodb_model_base.py,sha256=RpVhh88Bvg0aPO5Ux1yliFc8-INQfWdMsXo3mk_Clw8,15351
|
|
@@ -36,8 +36,8 @@ boto3_assist/utilities/http_utility.py,sha256=koFv7Va-8ng-47Nt1K2Sh7Ti95e62IYs9V
|
|
|
36
36
|
boto3_assist/utilities/logging_utility.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
37
37
|
boto3_assist/utilities/serialization_utility.py,sha256=s_QQRIhtwIE7xN5nU13mNk2wtWyErBX_Sg7n0gbHj-M,4308
|
|
38
38
|
boto3_assist/utilities/string_utility.py,sha256=w8l063UT3GE48tuJopETyZrjG4CgAzWkyDWMAYMg5Og,7432
|
|
39
|
-
boto3_assist-0.2.
|
|
40
|
-
boto3_assist-0.2.
|
|
41
|
-
boto3_assist-0.2.
|
|
42
|
-
boto3_assist-0.2.
|
|
43
|
-
boto3_assist-0.2.
|
|
39
|
+
boto3_assist-0.2.10.dist-info/METADATA,sha256=28i0t7GBUkJkgF8Jwbbbv_15Huwmnc7I93IhXGN69UM,1708
|
|
40
|
+
boto3_assist-0.2.10.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
41
|
+
boto3_assist-0.2.10.dist-info/licenses/LICENSE-EXPLAINED.txt,sha256=WFREvTpfTjPjDHpOLADxJpCKpIla3Ht87RUUGii4ODU,606
|
|
42
|
+
boto3_assist-0.2.10.dist-info/licenses/LICENSE.txt,sha256=PXDhFWS5L5aOTkVhNvoitHKbAkgxqMI2uUPQyrnXGiI,1105
|
|
43
|
+
boto3_assist-0.2.10.dist-info/RECORD,,
|
|
File without changes
|
{boto3_assist-0.2.9.dist-info → boto3_assist-0.2.10.dist-info}/licenses/LICENSE-EXPLAINED.txt
RENAMED
|
File without changes
|
|
File without changes
|