boto3-assist 0.36.0__py3-none-any.whl → 0.40.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/connection.py +1 -1
- boto3_assist/dynamodb/dynamodb.py +1 -1
- boto3_assist/dynamodb/dynamodb_connection.py +1 -1
- boto3_assist/dynamodb/dynamodb_key.py +9 -4
- boto3_assist/s3/s3.py +2 -2
- boto3_assist/s3/s3_connection.py +1 -1
- boto3_assist/sqs/sqs_connection.py +1 -1
- boto3_assist/version.py +1 -1
- {boto3_assist-0.36.0.dist-info → boto3_assist-0.40.0.dist-info}/METADATA +1 -1
- {boto3_assist-0.36.0.dist-info → boto3_assist-0.40.0.dist-info}/RECORD +13 -13
- {boto3_assist-0.36.0.dist-info → boto3_assist-0.40.0.dist-info}/WHEEL +0 -0
- {boto3_assist-0.36.0.dist-info → boto3_assist-0.40.0.dist-info}/licenses/LICENSE-EXPLAINED.txt +0 -0
- {boto3_assist-0.36.0.dist-info → boto3_assist-0.40.0.dist-info}/licenses/LICENSE.txt +0 -0
boto3_assist/connection.py
CHANGED
|
@@ -37,7 +37,7 @@ class Connection:
|
|
|
37
37
|
assume_role_chain: Optional[List[str]] = None,
|
|
38
38
|
assume_role_duration_seconds: Optional[int] = 3600,
|
|
39
39
|
config: Optional[Config] = None,
|
|
40
|
-
use_connection_pool: bool =
|
|
40
|
+
use_connection_pool: bool = True,
|
|
41
41
|
) -> None:
|
|
42
42
|
self.__aws_profile = aws_profile
|
|
43
43
|
self.__aws_region = aws_region
|
|
@@ -46,7 +46,7 @@ class DynamoDB(DynamoDBConnection):
|
|
|
46
46
|
assume_role_arn: Optional[str] = None,
|
|
47
47
|
assume_role_chain: Optional[List[str]] = None,
|
|
48
48
|
assume_role_duration_seconds: Optional[int] = 3600,
|
|
49
|
-
use_connection_pool: bool =
|
|
49
|
+
use_connection_pool: bool = True,
|
|
50
50
|
) -> None:
|
|
51
51
|
super().__init__(
|
|
52
52
|
aws_profile=aws_profile,
|
|
@@ -35,7 +35,7 @@ class DynamoDBConnection(Connection):
|
|
|
35
35
|
assume_role_arn: Optional[str] = None,
|
|
36
36
|
assume_role_chain: Optional[List[str]] = None,
|
|
37
37
|
assume_role_duration_seconds: Optional[int] = 3600,
|
|
38
|
-
use_connection_pool: bool =
|
|
38
|
+
use_connection_pool: bool = True,
|
|
39
39
|
) -> None:
|
|
40
40
|
super().__init__(
|
|
41
41
|
service_name="dynamodb",
|
|
@@ -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
|
+
# when it's None we only want to add it under certain conditions
|
|
123
|
+
# only add if it's the first one for our sk setting
|
|
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/s3/s3.py
CHANGED
|
@@ -26,7 +26,7 @@ class S3(S3Connection):
|
|
|
26
26
|
aws_end_point_url: Optional[str] = None,
|
|
27
27
|
aws_access_key_id: Optional[str] = None,
|
|
28
28
|
aws_secret_access_key: Optional[str] = None,
|
|
29
|
-
use_connection_pool: bool =
|
|
29
|
+
use_connection_pool: bool = True,
|
|
30
30
|
) -> None:
|
|
31
31
|
"""_summary_
|
|
32
32
|
|
|
@@ -36,7 +36,7 @@ class S3(S3Connection):
|
|
|
36
36
|
aws_end_point_url (Optional[str], optional): _description_. Defaults to None.
|
|
37
37
|
aws_access_key_id (Optional[str], optional): _description_. Defaults to None.
|
|
38
38
|
aws_secret_access_key (Optional[str], optional): _description_. Defaults to None.
|
|
39
|
-
use_connection_pool (bool, optional): Use connection pooling. Defaults to
|
|
39
|
+
use_connection_pool (bool, optional): Use connection pooling. Defaults to True.
|
|
40
40
|
"""
|
|
41
41
|
super().__init__(
|
|
42
42
|
aws_profile=aws_profile,
|
boto3_assist/s3/s3_connection.py
CHANGED
|
@@ -35,7 +35,7 @@ class S3Connection(Connection):
|
|
|
35
35
|
aws_access_key_id: Optional[str] = None,
|
|
36
36
|
aws_secret_access_key: Optional[str] = None,
|
|
37
37
|
signature_version: Optional[str] = None,
|
|
38
|
-
use_connection_pool: bool =
|
|
38
|
+
use_connection_pool: bool = True,
|
|
39
39
|
) -> None:
|
|
40
40
|
# Build S3-specific config if signature_version is specified
|
|
41
41
|
config: Optional[Config] = None
|
|
@@ -33,7 +33,7 @@ class SQSConnection(Connection):
|
|
|
33
33
|
aws_end_point_url: Optional[str] = None,
|
|
34
34
|
aws_access_key_id: Optional[str] = None,
|
|
35
35
|
aws_secret_access_key: Optional[str] = None,
|
|
36
|
-
use_connection_pool: bool =
|
|
36
|
+
use_connection_pool: bool = True,
|
|
37
37
|
) -> None:
|
|
38
38
|
"""
|
|
39
39
|
Initialize SQS connection.
|
boto3_assist/version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "0.
|
|
1
|
+
__version__ = "0.40.0"
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
boto3_assist/__init__.py,sha256=lS-oHTASzgSd4UyYByxydFm_EQjTCYvIelzkG6pPgY4,231
|
|
2
2
|
boto3_assist/aws_config.py,sha256=evmk_blj498ugptJa8lxIDJOIursxY6mT4joLfEbrl0,6558
|
|
3
3
|
boto3_assist/boto3session.py,sha256=p4FKVSX5A-xNHdpRan8pgMoY4iIywNfwriyTfjQ-zTQ,2967
|
|
4
|
-
boto3_assist/connection.py,sha256=
|
|
4
|
+
boto3_assist/connection.py,sha256=Tagfz50xxuxRIVngFXq0phHmP5xLRQ3dh-kS0f7-yxo,8287
|
|
5
5
|
boto3_assist/connection_pool.py,sha256=I4pfZu7PKW7nkz2lWhlUDK6OB8G7a--GjTyBjerD6FE,6053
|
|
6
6
|
boto3_assist/connection_tracker.py,sha256=UgfR9RlvXf3A4ssMr3gDMpw89ka8mSRvJn4M34SzhbU,4378
|
|
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=_ExaG55L38qKQZWAUr2OC6wbl37pJ9GTCjtqQbCdwB0,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
|
|
@@ -21,13 +21,13 @@ boto3_assist/cognito/cognito_utility.py,sha256=IVZAg58nHG1U7uxe7FsTYpqwwZiwwdIBG
|
|
|
21
21
|
boto3_assist/cognito/jwks_cache.py,sha256=1Y9r-YfQ8qrgZN5xYPvjUEEV0vthbdcPdAIaPbZP7kU,373
|
|
22
22
|
boto3_assist/cognito/user.py,sha256=qc44qLx3gwq6q2zMxcPQze1EjeZwy5Kuav93vbe-4WU,820
|
|
23
23
|
boto3_assist/dynamodb/__init__.py,sha256=uuRqUY9FHTwequ3oMq_VcMcmzhpAKG08GSnZPMNge2k,163
|
|
24
|
-
boto3_assist/dynamodb/dynamodb.py,sha256=
|
|
25
|
-
boto3_assist/dynamodb/dynamodb_connection.py,sha256=
|
|
24
|
+
boto3_assist/dynamodb/dynamodb.py,sha256=HY9i_PIxUW5-Mz6rQrmKfyd1Mwl-VwogH3w-CktGqXo,49162
|
|
25
|
+
boto3_assist/dynamodb/dynamodb_connection.py,sha256=1fA8iC6lq5F4bItJZZwL22fNgVBl7Sw6rV01PXVQ8Cc,3703
|
|
26
26
|
boto3_assist/dynamodb/dynamodb_helpers.py,sha256=BYJEuXaQVCPbDfbtPswWA_OvV_yC3fVoTtKvIoZeIBc,12092
|
|
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=adUnMN6HARTY3Co3hPiodXaW82Q_CCqvT-LjZ8-rP14,4130
|
|
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
|
|
@@ -45,15 +45,15 @@ boto3_assist/erc/ecr_connection.py,sha256=5fbJiouHe2uta4OiN-NKOo3fS2608Zcc01fWBO
|
|
|
45
45
|
boto3_assist/errors/custom_exceptions.py,sha256=QAMW49NbClELVnRd00u4NHfzVtRS3Tc1TrsIMUP9wLw,1041
|
|
46
46
|
boto3_assist/models/serializable_model.py,sha256=ZMrRJRvJWLY8PBSKK_nPCgYKv1qUxDPEVdcADKbIHsI,266
|
|
47
47
|
boto3_assist/s3/__init__.py,sha256=trlSMj2kjpY27qGkuSVXKwSbbvwTaosPznLkD9xYUVo,145
|
|
48
|
-
boto3_assist/s3/s3.py,sha256=
|
|
48
|
+
boto3_assist/s3/s3.py,sha256=jmRiQbqWlVr7aqSKs0pXNNFdXHsEu7_aipjBDbcrWQE,3591
|
|
49
49
|
boto3_assist/s3/s3_bucket.py,sha256=GfyBbuI5BWz_ybwU_nDqUZiC0wt24PNt49GKZmb05OY,2018
|
|
50
|
-
boto3_assist/s3/s3_connection.py,sha256=
|
|
50
|
+
boto3_assist/s3/s3_connection.py,sha256=k7zOtCK7cUk0tzcB4gF_wlLsNMkq5ZTTJB_l79WlMKc,2516
|
|
51
51
|
boto3_assist/s3/s3_event_data.py,sha256=Q7QUI1pwkc7g6yZ3IZWMXBIAfsMlPRC7wac2RvrQoA4,4112
|
|
52
52
|
boto3_assist/s3/s3_object.py,sha256=77jZeIUFpQX3cFYGGwRFBvL-peCe54iILnthm-GFjMc,22518
|
|
53
53
|
boto3_assist/securityhub/securityhub.py,sha256=ne-J_v4DaCVZm5YgJa_-LKVomLJQo5Gpw6wleAKSsws,5467
|
|
54
54
|
boto3_assist/securityhub/securityhub_connection.py,sha256=hWfcj9gjS2lNXUObyw4cShtveoqJPIp8kKFuz-fz1J4,1449
|
|
55
55
|
boto3_assist/sqs/__init__.py,sha256=VRuPPit-hSSbumKL2pN5AUtZKr_c9MpLeuqQ5a6wBLk,285
|
|
56
|
-
boto3_assist/sqs/sqs_connection.py,sha256=
|
|
56
|
+
boto3_assist/sqs/sqs_connection.py,sha256=yu-lE0RpJH-peyzwx-3VPcfFy5xuj71XNLnVXp1_gZk,4010
|
|
57
57
|
boto3_assist/sqs/sqs_queue.py,sha256=sjz2Q4BbJMCO-cxSNM02UxMmgnRfPLFAC3Pt1kiqc14,9542
|
|
58
58
|
boto3_assist/ssm/connection.py,sha256=gYpKn5HsUR3hcRUqJzF5QcTITCk0DReq9KhoE_8-Htg,1370
|
|
59
59
|
boto3_assist/ssm/parameter_store/parameter_store.py,sha256=2ISi-SmR29mESHFH-onJkxPX1aThIgBRojA3ZoNcP9s,3949
|
|
@@ -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.40.0.dist-info/METADATA,sha256=5_jINdvUKPSIhxoDPYm0mCPGVigMUc5ecFbS1iICqWc,2879
|
|
70
|
+
boto3_assist-0.40.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
71
|
+
boto3_assist-0.40.0.dist-info/licenses/LICENSE-EXPLAINED.txt,sha256=WFREvTpfTjPjDHpOLADxJpCKpIla3Ht87RUUGii4ODU,606
|
|
72
|
+
boto3_assist-0.40.0.dist-info/licenses/LICENSE.txt,sha256=PXDhFWS5L5aOTkVhNvoitHKbAkgxqMI2uUPQyrnXGiI,1105
|
|
73
|
+
boto3_assist-0.40.0.dist-info/RECORD,,
|
|
File without changes
|
{boto3_assist-0.36.0.dist-info → boto3_assist-0.40.0.dist-info}/licenses/LICENSE-EXPLAINED.txt
RENAMED
|
File without changes
|
|
File without changes
|