boto3-assist 0.3.0__py3-none-any.whl → 0.4.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.
@@ -127,7 +127,7 @@ class DynamoDBModelBase:
127
127
  def projection_expression_attribute_names(self, value: dict | None):
128
128
  self.__projection_expression_attribute_names = value
129
129
 
130
- def map(self: T, item: Dict[str, Any] | DynamoDBModelBase | None) -> T | None:
130
+ def map(self: T, item: Dict[str, Any] | DynamoDBModelBase | None) -> T:
131
131
  """
132
132
  Map the item to the instance. If the item is a DynamoDBModelBase,
133
133
  it will be converted to a dictionary first and then mapped.
@@ -144,7 +144,7 @@ class DynamoDBModelBase:
144
144
  that of the dictionary object or None
145
145
  """
146
146
  if item is None:
147
- return None
147
+ item = {}
148
148
 
149
149
  if isinstance(item, DynamoDBModelBase):
150
150
  item = item.to_resource_dictionary()
@@ -155,7 +155,7 @@ class DynamoDBModelBase:
155
155
  response: dict | None = item.get("Item")
156
156
 
157
157
  if response is None:
158
- return None
158
+ response = {}
159
159
 
160
160
  item = response
161
161
 
boto3_assist/version.py CHANGED
@@ -1 +1 @@
1
- __version__ = '0.3.0'
1
+ __version__ = '0.4.0'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: boto3_assist
3
- Version: 0.3.0
3
+ Version: 0.4.0
4
4
  Summary: Additional boto3 wrappers to make your life a little easier
5
5
  Author-email: Eric Wilson <boto3-assist@geekcafe.com>
6
6
  License-File: LICENSE-EXPLAINED.txt
@@ -3,7 +3,7 @@ boto3_assist/boto3session.py,sha256=NWhWtYR3143thEbTpoklkwdz77-fTMs-QsoQdqfRm6E,
3
3
  boto3_assist/connection.py,sha256=EJlGueLIYqMSKs7aQlThK1S0Zkb8dOYBWch1iRZdgUI,3233
4
4
  boto3_assist/connection_tracker.py,sha256=_s1t7h2DOi3CCIHIr_HIKyGjku65WR-HJ_v8vJHDvO0,2977
5
5
  boto3_assist/http_status_codes.py,sha256=G0zRSWenwavYKETvDF9tNVUXQz3Ae2gXdBETYbjvJe8,3284
6
- boto3_assist/version.py,sha256=3wVEs2QD_7OcTlD97cZdCeizd2hUbJJ0GeIO8wQIjrk,22
6
+ boto3_assist/version.py,sha256=2eiWQI55fd-roDdkt4Hvl9WzrTJ4xQo33VzFud6D03U,22
7
7
  boto3_assist/aws_lambda/event_info.py,sha256=OkZ4WzuGaHEu_T8sB188KBgShAJhZpWASALKRGBOhMg,14648
8
8
  boto3_assist/cloudwatch/cloudwatch_connection.py,sha256=mnGWaLSQpHh5EeY7Ek_2o9JKHJxOELIYtQVMX1IaHn4,2480
9
9
  boto3_assist/cloudwatch/cloudwatch_connection_tracker.py,sha256=mzRtO1uHrcfJNh1XrGEiXdTqxwEP8d1RqJkraMNkgK0,410
@@ -20,7 +20,7 @@ boto3_assist/dynamodb/dynamodb_importer.py,sha256=nCKsyRQeMqDSf0Q5mQ_X_oVIg4PRnu
20
20
  boto3_assist/dynamodb/dynamodb_index.py,sha256=D0Lq121qk1cXeMetPeqnzvv6CXd0XfEygfdUXaljLG8,8551
21
21
  boto3_assist/dynamodb/dynamodb_iservice.py,sha256=O9Aj0PFEvcuk2vhARifWTFnUwcQW5EXzwZS478Hm-N0,796
22
22
  boto3_assist/dynamodb/dynamodb_key.py,sha256=YD7o1EUlwVBQ55p9YCTKqAUU_np4nqtLIHnmp-BeolM,1803
23
- boto3_assist/dynamodb/dynamodb_model_base.py,sha256=bAKYN2h__tGBtYmcNh-Ra-8DHzvnqZpjVeiXaCNYDZA,15408
23
+ boto3_assist/dynamodb/dynamodb_model_base.py,sha256=T7mqn_PXY4QY5KWWKjmBQTNl-vM3_B94kX4DlDw0DkI,15401
24
24
  boto3_assist/dynamodb/dynamodb_model_base_interfaces.py,sha256=yT4zDRI8vP15WVOHnCvY3FsEy_QSIta5-bnUby70Xow,747
25
25
  boto3_assist/dynamodb/dynamodb_reindexer.py,sha256=bCj6KIU0fQOgjkkiq9yF51PFZZr4Y9Lu3-hPlmsPG0Y,6164
26
26
  boto3_assist/dynamodb/dynamodb_reserved_words.py,sha256=p0irNBSqGe4rd2FwWQqbRJWrNr4svdbWiyIXmz9lj4c,1937
@@ -40,8 +40,8 @@ boto3_assist/utilities/http_utility.py,sha256=koFv7Va-8ng-47Nt1K2Sh7Ti95e62IYs9V
40
40
  boto3_assist/utilities/logging_utility.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
41
41
  boto3_assist/utilities/serialization_utility.py,sha256=vsipCQZu91hApkJ8tKRTxBa8kNRvn06ED-isquqAVQQ,5744
42
42
  boto3_assist/utilities/string_utility.py,sha256=fzsZkldRYtdkIqR0kD-TlHH4fh4iMtYvo_U3UNZhN7U,7427
43
- boto3_assist-0.3.0.dist-info/METADATA,sha256=I0A61iFtOX2xoUIhqpGH8zmrD-q5QvwWj-r2ANahT0Y,1728
44
- boto3_assist-0.3.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
45
- boto3_assist-0.3.0.dist-info/licenses/LICENSE-EXPLAINED.txt,sha256=WFREvTpfTjPjDHpOLADxJpCKpIla3Ht87RUUGii4ODU,606
46
- boto3_assist-0.3.0.dist-info/licenses/LICENSE.txt,sha256=PXDhFWS5L5aOTkVhNvoitHKbAkgxqMI2uUPQyrnXGiI,1105
47
- boto3_assist-0.3.0.dist-info/RECORD,,
43
+ boto3_assist-0.4.0.dist-info/METADATA,sha256=6PglW0CMu-LSfBs74ViaxrykaJG96KtCspwIIPcP0PU,1728
44
+ boto3_assist-0.4.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
45
+ boto3_assist-0.4.0.dist-info/licenses/LICENSE-EXPLAINED.txt,sha256=WFREvTpfTjPjDHpOLADxJpCKpIla3Ht87RUUGii4ODU,606
46
+ boto3_assist-0.4.0.dist-info/licenses/LICENSE.txt,sha256=PXDhFWS5L5aOTkVhNvoitHKbAkgxqMI2uUPQyrnXGiI,1105
47
+ boto3_assist-0.4.0.dist-info/RECORD,,