boto3-assist 0.2.7__tar.gz → 0.2.8__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.2.7 → boto3_assist-0.2.8}/PKG-INFO +1 -1
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/pyproject.toml +1 -1
- boto3_assist-0.2.8/requirements-dev.txt +18 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/src/boto3_assist/dynamodb/dynamodb_model_base.py +11 -1
- boto3_assist-0.2.8/src/boto3_assist/version.py +1 -0
- boto3_assist-0.2.7/requirements-dev.txt +0 -13
- boto3_assist-0.2.7/src/boto3_assist/version.py +0 -1
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/.env.docker +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/.env.docker.001 +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/.env.docker.nosql.workbench +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/.env.unittest +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/.gitignore +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/.vscode/launch.json +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/.vscode/settings.json +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/.vscode/tasks.json +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/LICENSE-EXPLAINED.txt +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/LICENSE.txt +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/README.md +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/aws_regions_with_status.csv +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/aws_regions_with_status.json +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/devops/build.py +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/devops/readme.md +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/examples/__init__.py +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/examples/cloudwatch/log_report.py +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/examples/dynamodb/models/order_item_model.py +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/examples/dynamodb/models/order_model.py +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/examples/dynamodb/models/product_model.py +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/examples/dynamodb/models/user_model.py +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/examples/dynamodb/models/user_post_model.py +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/examples/dynamodb/order_example/main.py +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/examples/dynamodb/order_example/products.json +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/examples/dynamodb/services/order_item_service.py +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/examples/dynamodb/services/order_service.py +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/examples/dynamodb/services/product_service.py +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/examples/dynamodb/services/table_service.py +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/examples/dynamodb/services/user_post_service.py +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/examples/dynamodb/services/user_service.py +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/examples/dynamodb/services/user_service_client_example.py +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/examples/dynamodb/services/user_service_resource_example.py +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/examples/dynamodb/user_post_example/main.py +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/examples/ec2/regions_report.py +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/module-headers.txt +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/mypy.ini +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/requirements.txt +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/run-checks.sh +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/src/boto3_assist/__init__.py +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/src/boto3_assist/boto3session.py +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/src/boto3_assist/cloudwatch/cloudwatch_connection.py +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/src/boto3_assist/cloudwatch/cloudwatch_connection_tracker.py +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/src/boto3_assist/cloudwatch/cloudwatch_log_connection.py +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/src/boto3_assist/cloudwatch/cloudwatch_logs.py +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/src/boto3_assist/cloudwatch/cloudwatch_query.py +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/src/boto3_assist/connection.py +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/src/boto3_assist/connection_tracker.py +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/src/boto3_assist/dynamodb/dynamodb.py +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/src/boto3_assist/dynamodb/dynamodb_connection.py +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/src/boto3_assist/dynamodb/dynamodb_connection_tracker.py +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/src/boto3_assist/dynamodb/dynamodb_helpers.py +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/src/boto3_assist/dynamodb/dynamodb_importer.py +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/src/boto3_assist/dynamodb/dynamodb_index.py +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/src/boto3_assist/dynamodb/dynamodb_iservice.py +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/src/boto3_assist/dynamodb/dynamodb_key.py +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/src/boto3_assist/dynamodb/dynamodb_model_base_interfaces.py +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/src/boto3_assist/dynamodb/dynamodb_reindexer.py +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/src/boto3_assist/dynamodb/dynamodb_reserved_words.py +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/src/boto3_assist/dynamodb/dynamodb_reserved_words.txt +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/src/boto3_assist/dynamodb/readme.md +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/src/boto3_assist/dynamodb/troubleshooting.md +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/src/boto3_assist/ec2/ec2_connection.py +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/src/boto3_assist/environment_services/__init__.py +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/src/boto3_assist/environment_services/environment_loader.py +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/src/boto3_assist/environment_services/environment_variables.py +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/src/boto3_assist/errors/custom_exceptions.py +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/src/boto3_assist/s3/s3.py +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/src/boto3_assist/s3/s3_connection.py +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/src/boto3_assist/utilities/datetime_utility.py +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/src/boto3_assist/utilities/file_operations.py +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/src/boto3_assist/utilities/http_utility.py +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/src/boto3_assist/utilities/logging_utility.py +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/src/boto3_assist/utilities/serialization_utility.py +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/src/boto3_assist/utilities/string_utility.py +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/tests/__init__.py +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/tests/__top/__init__.py +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/tests/dynamodb/__init__.py +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/tests/dynamodb/dynamodb_model_base_test.py +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/tests/dynamodb/dynamodb_model_projections_test.py +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/tests/dynamodb/dynamodb_model_serializtion_test.py +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/tests/dynamodb/dynamodb_moto_sorting_test.py +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/tests/dynamodb/dynamodb_reindex_test.py +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/tests/dynamodb/models/cms/base.py +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/tests/dynamodb/models/cms/content_block.py +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/tests/dynamodb/models/cms/page.py +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/tests/dynamodb/models/cms/template.py +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/tests/dynamodb/models/simple_model.py +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/tests/dynamodb/models/user_model.py +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/tests/examples_test/__init__.py +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/tests/examples_test/user_service_test.py +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/tests/s3/__init__.py +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/tests/s3/files/test.txt +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/tests/s3/s3_file_upload_test.py +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/tests/utilities/__init__.py +0 -0
- {boto3_assist-0.2.7 → boto3_assist-0.2.8}/tests/utilities/serialization_utility_test.py +0 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
boto3-stubs[dynamodb]
|
|
2
|
+
build
|
|
3
|
+
mypy
|
|
4
|
+
mypy_boto3_dynamodb
|
|
5
|
+
mypy_boto3_ec2
|
|
6
|
+
mypy_boto3_cloudwatch
|
|
7
|
+
mypy_boto3_s3
|
|
8
|
+
moto [dynamodb2] # mocks for unit tests
|
|
9
|
+
# setuptools
|
|
10
|
+
types-python-dateutil
|
|
11
|
+
toml
|
|
12
|
+
twine
|
|
13
|
+
wheel
|
|
14
|
+
pkginfo # occasionally we need to upgrade this or we can get upload errors when it's out of sync
|
|
15
|
+
# the error may look like the following
|
|
16
|
+
# ERROR InvalidDistribution: Metadata is missing required fields: Name, Version.
|
|
17
|
+
# Make sure the distribution includes the files where those fields are specified, and is using a supported
|
|
18
|
+
# Metadata-Version: 1.0, 1.1, 1.2, 2.0, 2.1, 2.2, 2.3.
|
|
@@ -234,9 +234,19 @@ class DynamoDBModelBase:
|
|
|
234
234
|
return value.timestamp()
|
|
235
235
|
|
|
236
236
|
raise ValueError(
|
|
237
|
-
"Value must be a string in a valid datetime format or datetime"
|
|
237
|
+
"Value must be a None, a string in a valid datetime format or datetime"
|
|
238
238
|
)
|
|
239
239
|
|
|
240
|
+
def to_utc(self, value: str | dt.datetime | None) -> dt.datetime | None:
|
|
241
|
+
"""
|
|
242
|
+
Convert a datetime to UTC. This ensures all datetimes are stored in UTC format
|
|
243
|
+
|
|
244
|
+
Exceptions:
|
|
245
|
+
ValueError: If the value is not a datetime string or datetime
|
|
246
|
+
"""
|
|
247
|
+
|
|
248
|
+
value = DatetimeUtility.to_datetime_utc(value)
|
|
249
|
+
|
|
240
250
|
|
|
241
251
|
class DynamoDBSerializer:
|
|
242
252
|
"""Library to Serialize object to a DynamoDB Format"""
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = '0.2.8'
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = '0.2.7'
|
|
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.2.7 → boto3_assist-0.2.8}/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
|
{boto3_assist-0.2.7 → boto3_assist-0.2.8}/src/boto3_assist/cloudwatch/cloudwatch_connection.py
RENAMED
|
File without changes
|
|
File without changes
|
{boto3_assist-0.2.7 → boto3_assist-0.2.8}/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
|
{boto3_assist-0.2.7 → boto3_assist-0.2.8}/src/boto3_assist/dynamodb/dynamodb_connection_tracker.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
|
{boto3_assist-0.2.7 → boto3_assist-0.2.8}/src/boto3_assist/dynamodb/dynamodb_reserved_words.py
RENAMED
|
File without changes
|
{boto3_assist-0.2.7 → boto3_assist-0.2.8}/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
|
{boto3_assist-0.2.7 → boto3_assist-0.2.8}/src/boto3_assist/utilities/serialization_utility.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{boto3_assist-0.2.7 → boto3_assist-0.2.8}/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
|