boto3-assist 0.7.0__tar.gz → 0.8.0__tar.gz
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-0.7.0 → boto3_assist-0.8.0}/PKG-INFO +1 -1
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/pyproject.toml +1 -1
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/src/boto3_assist/utilities/serialization_utility.py +18 -7
- boto3_assist-0.8.0/src/boto3_assist/version.py +1 -0
- boto3_assist-0.7.0/src/boto3_assist/version.py +0 -1
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/.env.docker +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/.env.docker.001 +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/.env.docker.nosql.workbench +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/.env.unittest +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/.gitignore +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/.vscode/launch.json +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/.vscode/settings.json +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/.vscode/tasks.json +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/LICENSE-EXPLAINED.txt +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/LICENSE.txt +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/README.md +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/aws_regions_with_status.csv +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/aws_regions_with_status.json +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/devops/build.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/devops/readme.md +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/examples/__init__.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/examples/cloudwatch/log_report.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/examples/dynamodb/models/order_item_model.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/examples/dynamodb/models/order_model.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/examples/dynamodb/models/product_model.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/examples/dynamodb/models/user_model.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/examples/dynamodb/models/user_post_model.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/examples/dynamodb/order_example/main.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/examples/dynamodb/order_example/products.json +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/examples/dynamodb/services/order_item_service.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/examples/dynamodb/services/order_service.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/examples/dynamodb/services/product_service.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/examples/dynamodb/services/table_service.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/examples/dynamodb/services/user_post_service.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/examples/dynamodb/services/user_service.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/examples/dynamodb/services/user_service_client_example.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/examples/dynamodb/services/user_service_resource_example.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/examples/dynamodb/user_post_example/main.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/examples/ec2/regions_report.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/module-headers.txt +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/mypy.ini +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/requirements-dev.txt +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/requirements.txt +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/run-checks.sh +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/run_unit_tests.sh +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/src/boto3_assist/__init__.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/src/boto3_assist/aws_lambda/event_info.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/src/boto3_assist/boto3session.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/src/boto3_assist/cloudwatch/cloudwatch_connection.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/src/boto3_assist/cloudwatch/cloudwatch_connection_tracker.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/src/boto3_assist/cloudwatch/cloudwatch_log_connection.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/src/boto3_assist/cloudwatch/cloudwatch_logs.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/src/boto3_assist/cloudwatch/cloudwatch_query.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/src/boto3_assist/cognito/cognito_authorizer.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/src/boto3_assist/cognito/cognito_connection.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/src/boto3_assist/cognito/cognito_utility.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/src/boto3_assist/cognito/jwks_cache.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/src/boto3_assist/cognito/user.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/src/boto3_assist/connection.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/src/boto3_assist/connection_tracker.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/src/boto3_assist/dynamodb/dynamodb.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/src/boto3_assist/dynamodb/dynamodb_connection.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/src/boto3_assist/dynamodb/dynamodb_helpers.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/src/boto3_assist/dynamodb/dynamodb_importer.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/src/boto3_assist/dynamodb/dynamodb_index.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/src/boto3_assist/dynamodb/dynamodb_iservice.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/src/boto3_assist/dynamodb/dynamodb_key.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/src/boto3_assist/dynamodb/dynamodb_model_base.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/src/boto3_assist/dynamodb/dynamodb_model_base_interfaces.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/src/boto3_assist/dynamodb/dynamodb_reindexer.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/src/boto3_assist/dynamodb/dynamodb_reserved_words.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/src/boto3_assist/dynamodb/dynamodb_reserved_words.txt +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/src/boto3_assist/dynamodb/readme.md +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/src/boto3_assist/dynamodb/troubleshooting.md +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/src/boto3_assist/ec2/ec2_connection.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/src/boto3_assist/environment_services/__init__.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/src/boto3_assist/environment_services/environment_loader.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/src/boto3_assist/environment_services/environment_variables.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/src/boto3_assist/errors/custom_exceptions.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/src/boto3_assist/http_status_codes.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/src/boto3_assist/models/serializable_model.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/src/boto3_assist/s3/s3.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/src/boto3_assist/s3/s3_bucket.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/src/boto3_assist/s3/s3_connection.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/src/boto3_assist/s3/s3_object.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/src/boto3_assist/utilities/datetime_utility.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/src/boto3_assist/utilities/dictionaroy_utility.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/src/boto3_assist/utilities/file_operations.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/src/boto3_assist/utilities/http_utility.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/src/boto3_assist/utilities/logging_utility.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/src/boto3_assist/utilities/numbers_utility.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/src/boto3_assist/utilities/string_utility.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/tests/__init__.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/tests/__top/__init__.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/tests/dynamodb/__init__.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/tests/dynamodb/dbmodels/cms/base.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/tests/dynamodb/dbmodels/cms/content_block.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/tests/dynamodb/dbmodels/cms/page.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/tests/dynamodb/dbmodels/cms/template.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/tests/dynamodb/dbmodels/simple_model.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/tests/dynamodb/dbmodels/user_model.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/tests/dynamodb/dbmodels/user_required_fields_model.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/tests/dynamodb/dynamodb_model_base_test.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/tests/dynamodb/dynamodb_model_projections_test.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/tests/dynamodb/dynamodb_model_serializtion_test.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/tests/dynamodb/dynamodb_moto_sorting_test.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/tests/dynamodb/dynamodb_reindex_test.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/tests/examples_test/__init__.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/tests/examples_test/user_service_test.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/tests/lambda/__init__.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/tests/lambda/event_info_test.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/tests/models/__init__.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/tests/models/serializable_model_test.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/tests/models/serializable_model_wide_test.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/tests/s3/__init__.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/tests/s3/files/test.txt +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/tests/s3/s3_file_delete_test.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/tests/s3/s3_file_upload_test.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/tests/utilities/__init__.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/tests/utilities/serialization_utility_test.py +0 -0
- {boto3_assist-0.7.0 → boto3_assist-0.8.0}/tests/utilities/string_utility_test.py +0 -0
{boto3_assist-0.7.0 → boto3_assist-0.8.0}/src/boto3_assist/utilities/serialization_utility.py
RENAMED
|
@@ -308,19 +308,30 @@ class Serialization:
|
|
|
308
308
|
)
|
|
309
309
|
raise
|
|
310
310
|
except Exception as e: # pylint: disable=w0718
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
311
|
+
if not Serialization.has_setter(target, key):
|
|
312
|
+
logger.warning(
|
|
313
|
+
f"Error warning attempting to set attribute {key} with value {value}: {e}. "
|
|
314
|
+
"This usually occurs on properties that don't have setters. "
|
|
315
|
+
"You should add a setter (even with a pass action) for this property or "
|
|
316
|
+
"decorate it with the @exclude_from_serialization to avoid this warning."
|
|
317
|
+
)
|
|
318
|
+
else:
|
|
319
|
+
raise e
|
|
318
320
|
|
|
319
321
|
if hasattr(target, "__actively_serializing_data__"):
|
|
320
322
|
setattr(target, "__actively_serializing_data__", False)
|
|
321
323
|
|
|
322
324
|
return target
|
|
323
325
|
|
|
326
|
+
@staticmethod
|
|
327
|
+
def has_setter(obj: object, attr_name: str) -> bool:
|
|
328
|
+
"""Check if the given attribute has a setter defined."""
|
|
329
|
+
cls = obj.__class__
|
|
330
|
+
if not hasattr(cls, attr_name):
|
|
331
|
+
return False
|
|
332
|
+
attr = getattr(cls, attr_name, None)
|
|
333
|
+
return isinstance(attr, property) and attr.fset is not None
|
|
334
|
+
|
|
324
335
|
@staticmethod
|
|
325
336
|
def has_attribute(obj: object, attribute_name: str) -> bool:
|
|
326
337
|
"""Check if an object has an attribute"""
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = '0.8.0'
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = '0.7.0'
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{boto3_assist-0.7.0 → boto3_assist-0.8.0}/examples/dynamodb/services/user_service_client_example.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{boto3_assist-0.7.0 → boto3_assist-0.8.0}/src/boto3_assist/cloudwatch/cloudwatch_connection.py
RENAMED
|
File without changes
|
|
File without changes
|
{boto3_assist-0.7.0 → boto3_assist-0.8.0}/src/boto3_assist/cloudwatch/cloudwatch_log_connection.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{boto3_assist-0.7.0 → boto3_assist-0.8.0}/src/boto3_assist/dynamodb/dynamodb_reserved_words.py
RENAMED
|
File without changes
|
{boto3_assist-0.7.0 → boto3_assist-0.8.0}/src/boto3_assist/dynamodb/dynamodb_reserved_words.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{boto3_assist-0.7.0 → boto3_assist-0.8.0}/tests/dynamodb/dbmodels/user_required_fields_model.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{boto3_assist-0.7.0 → boto3_assist-0.8.0}/tests/dynamodb/dynamodb_model_serializtion_test.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|