aws-python-helper 0.38.0__tar.gz → 1.0.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.
Files changed (53) hide show
  1. {aws_python_helper-0.38.0 → aws_python_helper-1.0.0}/PKG-INFO +1 -1
  2. {aws_python_helper-0.38.0 → aws_python_helper-1.0.0}/aws_python_helper/invoker/lambda_invoker.py +3 -2
  3. {aws_python_helper-0.38.0 → aws_python_helper-1.0.0}/aws_python_helper.egg-info/PKG-INFO +1 -1
  4. {aws_python_helper-0.38.0 → aws_python_helper-1.0.0}/pyproject.toml +1 -1
  5. {aws_python_helper-0.38.0 → aws_python_helper-1.0.0}/README.md +0 -0
  6. {aws_python_helper-0.38.0 → aws_python_helper-1.0.0}/aws_python_helper/__init__.py +0 -0
  7. {aws_python_helper-0.38.0 → aws_python_helper-1.0.0}/aws_python_helper/api/__init__.py +0 -0
  8. {aws_python_helper-0.38.0 → aws_python_helper-1.0.0}/aws_python_helper/api/auth_middleware.py +0 -0
  9. {aws_python_helper-0.38.0 → aws_python_helper-1.0.0}/aws_python_helper/api/auth_validators.py +0 -0
  10. {aws_python_helper-0.38.0 → aws_python_helper-1.0.0}/aws_python_helper/api/base.py +0 -0
  11. {aws_python_helper-0.38.0 → aws_python_helper-1.0.0}/aws_python_helper/api/dispatcher.py +0 -0
  12. {aws_python_helper-0.38.0 → aws_python_helper-1.0.0}/aws_python_helper/api/exceptions.py +0 -0
  13. {aws_python_helper-0.38.0 → aws_python_helper-1.0.0}/aws_python_helper/api/fetcher.py +0 -0
  14. {aws_python_helper-0.38.0 → aws_python_helper-1.0.0}/aws_python_helper/api/handler.py +0 -0
  15. {aws_python_helper-0.38.0 → aws_python_helper-1.0.0}/aws_python_helper/context/__init__.py +0 -0
  16. {aws_python_helper-0.38.0 → aws_python_helper-1.0.0}/aws_python_helper/context/session.py +0 -0
  17. {aws_python_helper-0.38.0 → aws_python_helper-1.0.0}/aws_python_helper/context/state_validator.py +0 -0
  18. {aws_python_helper-0.38.0 → aws_python_helper-1.0.0}/aws_python_helper/database/__init__.py +0 -0
  19. {aws_python_helper-0.38.0 → aws_python_helper-1.0.0}/aws_python_helper/database/database_proxy.py +0 -0
  20. {aws_python_helper-0.38.0 → aws_python_helper-1.0.0}/aws_python_helper/database/external_database_proxy.py +0 -0
  21. {aws_python_helper-0.38.0 → aws_python_helper-1.0.0}/aws_python_helper/database/external_mongo_manager.py +0 -0
  22. {aws_python_helper-0.38.0 → aws_python_helper-1.0.0}/aws_python_helper/database/mongo_manager.py +0 -0
  23. {aws_python_helper-0.38.0 → aws_python_helper-1.0.0}/aws_python_helper/fargate/__init__.py +0 -0
  24. {aws_python_helper-0.38.0 → aws_python_helper-1.0.0}/aws_python_helper/fargate/executor.py +0 -0
  25. {aws_python_helper-0.38.0 → aws_python_helper-1.0.0}/aws_python_helper/fargate/fetcher.py +0 -0
  26. {aws_python_helper-0.38.0 → aws_python_helper-1.0.0}/aws_python_helper/fargate/handler.py +0 -0
  27. {aws_python_helper-0.38.0 → aws_python_helper-1.0.0}/aws_python_helper/fargate/task_base.py +0 -0
  28. {aws_python_helper-0.38.0 → aws_python_helper-1.0.0}/aws_python_helper/invoker/__init__.py +0 -0
  29. {aws_python_helper-0.38.0 → aws_python_helper-1.0.0}/aws_python_helper/invoker/api_client.py +0 -0
  30. {aws_python_helper-0.38.0 → aws_python_helper-1.0.0}/aws_python_helper/invoker/exceptions.py +0 -0
  31. {aws_python_helper-0.38.0 → aws_python_helper-1.0.0}/aws_python_helper/lambda_standalone/__init__.py +0 -0
  32. {aws_python_helper-0.38.0 → aws_python_helper-1.0.0}/aws_python_helper/lambda_standalone/base.py +0 -0
  33. {aws_python_helper-0.38.0 → aws_python_helper-1.0.0}/aws_python_helper/lambda_standalone/fetcher.py +0 -0
  34. {aws_python_helper-0.38.0 → aws_python_helper-1.0.0}/aws_python_helper/lambda_standalone/handler.py +0 -0
  35. {aws_python_helper-0.38.0 → aws_python_helper-1.0.0}/aws_python_helper/model_query/__init__.py +0 -0
  36. {aws_python_helper-0.38.0 → aws_python_helper-1.0.0}/aws_python_helper/model_query/base.py +0 -0
  37. {aws_python_helper-0.38.0 → aws_python_helper-1.0.0}/aws_python_helper/repository/__init__.py +0 -0
  38. {aws_python_helper-0.38.0 → aws_python_helper-1.0.0}/aws_python_helper/repository/base.py +0 -0
  39. {aws_python_helper-0.38.0 → aws_python_helper-1.0.0}/aws_python_helper/sns/__init__.py +0 -0
  40. {aws_python_helper-0.38.0 → aws_python_helper-1.0.0}/aws_python_helper/sns/publisher.py +0 -0
  41. {aws_python_helper-0.38.0 → aws_python_helper-1.0.0}/aws_python_helper/sqs/__init__.py +0 -0
  42. {aws_python_helper-0.38.0 → aws_python_helper-1.0.0}/aws_python_helper/sqs/consumer_base.py +0 -0
  43. {aws_python_helper-0.38.0 → aws_python_helper-1.0.0}/aws_python_helper/sqs/fetcher.py +0 -0
  44. {aws_python_helper-0.38.0 → aws_python_helper-1.0.0}/aws_python_helper/sqs/handler.py +0 -0
  45. {aws_python_helper-0.38.0 → aws_python_helper-1.0.0}/aws_python_helper/utils/__init__.py +0 -0
  46. {aws_python_helper-0.38.0 → aws_python_helper-1.0.0}/aws_python_helper/utils/json_encoder.py +0 -0
  47. {aws_python_helper-0.38.0 → aws_python_helper-1.0.0}/aws_python_helper/utils/response.py +0 -0
  48. {aws_python_helper-0.38.0 → aws_python_helper-1.0.0}/aws_python_helper/utils/serializer.py +0 -0
  49. {aws_python_helper-0.38.0 → aws_python_helper-1.0.0}/aws_python_helper.egg-info/SOURCES.txt +0 -0
  50. {aws_python_helper-0.38.0 → aws_python_helper-1.0.0}/aws_python_helper.egg-info/dependency_links.txt +0 -0
  51. {aws_python_helper-0.38.0 → aws_python_helper-1.0.0}/aws_python_helper.egg-info/requires.txt +0 -0
  52. {aws_python_helper-0.38.0 → aws_python_helper-1.0.0}/aws_python_helper.egg-info/top_level.txt +0 -0
  53. {aws_python_helper-0.38.0 → aws_python_helper-1.0.0}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: aws-python-helper
3
- Version: 0.38.0
3
+ Version: 1.0.0
4
4
  Summary: AWS Python Helper Framework
5
5
  Author-email: Fabian Claros <neufabiae@gmail.com>
6
6
  License-Expression: MIT
@@ -6,6 +6,7 @@ from typing import Any, Dict
6
6
  import boto3
7
7
 
8
8
  from .exceptions import LambdaInvocationError, LambdaResponseError
9
+ from ..utils.json_encoder import MongoJSONEncoder
9
10
 
10
11
  logger = logging.getLogger(__name__)
11
12
 
@@ -58,7 +59,7 @@ class LambdaInvoker:
58
59
  response = self._boto_client.invoke(
59
60
  FunctionName=function_name,
60
61
  InvocationType="RequestResponse",
61
- Payload=json.dumps(payload),
62
+ Payload=json.dumps(payload, cls=MongoJSONEncoder),
62
63
  )
63
64
  except Exception as exc:
64
65
  logger.error("Failed to invoke lambda %s: %s", function_name, exc)
@@ -86,7 +87,7 @@ class LambdaInvoker:
86
87
  self._boto_client.invoke(
87
88
  FunctionName=function_name,
88
89
  InvocationType="Event",
89
- Payload=json.dumps(payload),
90
+ Payload=json.dumps(payload, cls=MongoJSONEncoder),
90
91
  )
91
92
  logger.info("Async invocation dispatched to %s", function_name)
92
93
  except Exception as exc:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: aws-python-helper
3
- Version: 0.38.0
3
+ Version: 1.0.0
4
4
  Summary: AWS Python Helper Framework
5
5
  Author-email: Fabian Claros <neufabiae@gmail.com>
6
6
  License-Expression: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "aws-python-helper"
7
- version = "0.38.0"
7
+ version = "1.0.0"
8
8
  description = "AWS Python Helper Framework"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.9"