aws-python-helper 0.23.0__tar.gz → 0.24.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.
- {aws_python_helper-0.23.0 → aws_python_helper-0.24.0}/PKG-INFO +2 -2
- {aws_python_helper-0.23.0 → aws_python_helper-0.24.0}/aws_python_helper/fargate/executor.py +12 -12
- {aws_python_helper-0.23.0 → aws_python_helper-0.24.0}/aws_python_helper.egg-info/PKG-INFO +2 -2
- {aws_python_helper-0.23.0 → aws_python_helper-0.24.0}/pyproject.toml +2 -2
- {aws_python_helper-0.23.0 → aws_python_helper-0.24.0}/README.md +0 -0
- {aws_python_helper-0.23.0 → aws_python_helper-0.24.0}/aws_python_helper/__init__.py +0 -0
- {aws_python_helper-0.23.0 → aws_python_helper-0.24.0}/aws_python_helper/api/__init__.py +0 -0
- {aws_python_helper-0.23.0 → aws_python_helper-0.24.0}/aws_python_helper/api/auth_middleware.py +0 -0
- {aws_python_helper-0.23.0 → aws_python_helper-0.24.0}/aws_python_helper/api/auth_validators.py +0 -0
- {aws_python_helper-0.23.0 → aws_python_helper-0.24.0}/aws_python_helper/api/base.py +0 -0
- {aws_python_helper-0.23.0 → aws_python_helper-0.24.0}/aws_python_helper/api/dispatcher.py +0 -0
- {aws_python_helper-0.23.0 → aws_python_helper-0.24.0}/aws_python_helper/api/exceptions.py +0 -0
- {aws_python_helper-0.23.0 → aws_python_helper-0.24.0}/aws_python_helper/api/fetcher.py +0 -0
- {aws_python_helper-0.23.0 → aws_python_helper-0.24.0}/aws_python_helper/api/handler.py +0 -0
- {aws_python_helper-0.23.0 → aws_python_helper-0.24.0}/aws_python_helper/database/__init__.py +0 -0
- {aws_python_helper-0.23.0 → aws_python_helper-0.24.0}/aws_python_helper/database/database_proxy.py +0 -0
- {aws_python_helper-0.23.0 → aws_python_helper-0.24.0}/aws_python_helper/database/external_database_proxy.py +0 -0
- {aws_python_helper-0.23.0 → aws_python_helper-0.24.0}/aws_python_helper/database/external_mongo_manager.py +0 -0
- {aws_python_helper-0.23.0 → aws_python_helper-0.24.0}/aws_python_helper/database/mongo_manager.py +0 -0
- {aws_python_helper-0.23.0 → aws_python_helper-0.24.0}/aws_python_helper/fargate/__init__.py +0 -0
- {aws_python_helper-0.23.0 → aws_python_helper-0.24.0}/aws_python_helper/fargate/fetcher.py +0 -0
- {aws_python_helper-0.23.0 → aws_python_helper-0.24.0}/aws_python_helper/fargate/handler.py +0 -0
- {aws_python_helper-0.23.0 → aws_python_helper-0.24.0}/aws_python_helper/fargate/task_base.py +0 -0
- {aws_python_helper-0.23.0 → aws_python_helper-0.24.0}/aws_python_helper/lambda_standalone/__init__.py +0 -0
- {aws_python_helper-0.23.0 → aws_python_helper-0.24.0}/aws_python_helper/lambda_standalone/base.py +0 -0
- {aws_python_helper-0.23.0 → aws_python_helper-0.24.0}/aws_python_helper/lambda_standalone/fetcher.py +0 -0
- {aws_python_helper-0.23.0 → aws_python_helper-0.24.0}/aws_python_helper/lambda_standalone/handler.py +0 -0
- {aws_python_helper-0.23.0 → aws_python_helper-0.24.0}/aws_python_helper/sns/__init__.py +0 -0
- {aws_python_helper-0.23.0 → aws_python_helper-0.24.0}/aws_python_helper/sns/publisher.py +0 -0
- {aws_python_helper-0.23.0 → aws_python_helper-0.24.0}/aws_python_helper/sqs/__init__.py +0 -0
- {aws_python_helper-0.23.0 → aws_python_helper-0.24.0}/aws_python_helper/sqs/consumer_base.py +0 -0
- {aws_python_helper-0.23.0 → aws_python_helper-0.24.0}/aws_python_helper/sqs/fetcher.py +0 -0
- {aws_python_helper-0.23.0 → aws_python_helper-0.24.0}/aws_python_helper/sqs/handler.py +0 -0
- {aws_python_helper-0.23.0 → aws_python_helper-0.24.0}/aws_python_helper/utils/__init__.py +0 -0
- {aws_python_helper-0.23.0 → aws_python_helper-0.24.0}/aws_python_helper/utils/json_encoder.py +0 -0
- {aws_python_helper-0.23.0 → aws_python_helper-0.24.0}/aws_python_helper/utils/response.py +0 -0
- {aws_python_helper-0.23.0 → aws_python_helper-0.24.0}/aws_python_helper/utils/serializer.py +0 -0
- {aws_python_helper-0.23.0 → aws_python_helper-0.24.0}/aws_python_helper.egg-info/SOURCES.txt +0 -0
- {aws_python_helper-0.23.0 → aws_python_helper-0.24.0}/aws_python_helper.egg-info/dependency_links.txt +0 -0
- {aws_python_helper-0.23.0 → aws_python_helper-0.24.0}/aws_python_helper.egg-info/requires.txt +0 -0
- {aws_python_helper-0.23.0 → aws_python_helper-0.24.0}/aws_python_helper.egg-info/top_level.txt +0 -0
- {aws_python_helper-0.23.0 → aws_python_helper-0.24.0}/setup.cfg +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: aws-python-helper
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.24.0
|
|
4
4
|
Summary: AWS Python Helper Framework
|
|
5
|
-
Author-email: Fabian
|
|
5
|
+
Author-email: Fabian Claros <neufabiae@gmail.com>
|
|
6
6
|
License: MIT
|
|
7
7
|
Project-URL: Homepage, https://github.com/fabiae/aws-python-framework
|
|
8
8
|
Project-URL: Source Code, https://github.com/fabiae/aws-python-framework
|
|
@@ -26,7 +26,6 @@ class FargateExecutor:
|
|
|
26
26
|
self,
|
|
27
27
|
cluster: str = None,
|
|
28
28
|
subnets: List[str] = None,
|
|
29
|
-
assign_public_ip: str = None,
|
|
30
29
|
region: str = None
|
|
31
30
|
):
|
|
32
31
|
"""
|
|
@@ -39,7 +38,10 @@ class FargateExecutor:
|
|
|
39
38
|
region: AWS region (default: from AWS_REGION or us-east-2)
|
|
40
39
|
"""
|
|
41
40
|
# Configuration
|
|
42
|
-
self.cluster = cluster or os.getenv('ECS_CLUSTER'
|
|
41
|
+
self.cluster = cluster or os.getenv('ECS_CLUSTER')
|
|
42
|
+
|
|
43
|
+
if not self.cluster:
|
|
44
|
+
raise ValueError("ECS_CLUSTER environment variable is required")
|
|
43
45
|
|
|
44
46
|
# Subnets: accept list or string separated by commas
|
|
45
47
|
if subnets:
|
|
@@ -50,15 +52,12 @@ class FargateExecutor:
|
|
|
50
52
|
|
|
51
53
|
# If no subnets are configured, use the default ones
|
|
52
54
|
if not self.subnets:
|
|
53
|
-
|
|
54
|
-
'subnet-0014a556ff4b9ad25',
|
|
55
|
-
'subnet-0f3a12222df52ddc0',
|
|
56
|
-
'subnet-0d271a90b055826cd',
|
|
57
|
-
'subnet-05bdb3178e6dadef0'
|
|
58
|
-
]
|
|
55
|
+
raise ValueError("ECS_SUBNETS environment variable is required")
|
|
59
56
|
|
|
60
|
-
self.
|
|
61
|
-
|
|
57
|
+
self.region = region or os.getenv('AWS_REGION')
|
|
58
|
+
|
|
59
|
+
if not self.region:
|
|
60
|
+
raise ValueError("AWS_REGION environment variable is required")
|
|
62
61
|
|
|
63
62
|
# ECS client
|
|
64
63
|
self._ecs_client = None
|
|
@@ -83,7 +82,8 @@ class FargateExecutor:
|
|
|
83
82
|
container_name: str = None,
|
|
84
83
|
task_definition_revision: int = None,
|
|
85
84
|
count: int = 1,
|
|
86
|
-
launch_type: str = 'FARGATE'
|
|
85
|
+
launch_type: str = 'FARGATE',
|
|
86
|
+
assign_public_ip: str = 'ENABLED'
|
|
87
87
|
) -> str:
|
|
88
88
|
"""
|
|
89
89
|
Executes a Fargate task
|
|
@@ -131,7 +131,7 @@ class FargateExecutor:
|
|
|
131
131
|
networkConfiguration={
|
|
132
132
|
'awsvpcConfiguration': {
|
|
133
133
|
'subnets': self.subnets,
|
|
134
|
-
'assignPublicIp':
|
|
134
|
+
'assignPublicIp': assign_public_ip
|
|
135
135
|
}
|
|
136
136
|
},
|
|
137
137
|
overrides={
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: aws-python-helper
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.24.0
|
|
4
4
|
Summary: AWS Python Helper Framework
|
|
5
|
-
Author-email: Fabian
|
|
5
|
+
Author-email: Fabian Claros <neufabiae@gmail.com>
|
|
6
6
|
License: MIT
|
|
7
7
|
Project-URL: Homepage, https://github.com/fabiae/aws-python-framework
|
|
8
8
|
Project-URL: Source Code, https://github.com/fabiae/aws-python-framework
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "aws-python-helper"
|
|
7
|
-
version = "0.
|
|
7
|
+
version = "0.24.0"
|
|
8
8
|
description = "AWS Python Helper Framework"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.9"
|
|
@@ -16,7 +16,7 @@ dependencies = [
|
|
|
16
16
|
]
|
|
17
17
|
|
|
18
18
|
authors = [
|
|
19
|
-
{ name="Fabian
|
|
19
|
+
{ name="Fabian Claros", email="neufabiae@gmail.com" }
|
|
20
20
|
]
|
|
21
21
|
|
|
22
22
|
license = { text = "MIT" }
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{aws_python_helper-0.23.0 → aws_python_helper-0.24.0}/aws_python_helper/api/auth_middleware.py
RENAMED
|
File without changes
|
{aws_python_helper-0.23.0 → aws_python_helper-0.24.0}/aws_python_helper/api/auth_validators.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{aws_python_helper-0.23.0 → aws_python_helper-0.24.0}/aws_python_helper/database/__init__.py
RENAMED
|
File without changes
|
{aws_python_helper-0.23.0 → aws_python_helper-0.24.0}/aws_python_helper/database/database_proxy.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{aws_python_helper-0.23.0 → aws_python_helper-0.24.0}/aws_python_helper/database/mongo_manager.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{aws_python_helper-0.23.0 → aws_python_helper-0.24.0}/aws_python_helper/fargate/task_base.py
RENAMED
|
File without changes
|
|
File without changes
|
{aws_python_helper-0.23.0 → aws_python_helper-0.24.0}/aws_python_helper/lambda_standalone/base.py
RENAMED
|
File without changes
|
{aws_python_helper-0.23.0 → aws_python_helper-0.24.0}/aws_python_helper/lambda_standalone/fetcher.py
RENAMED
|
File without changes
|
{aws_python_helper-0.23.0 → aws_python_helper-0.24.0}/aws_python_helper/lambda_standalone/handler.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{aws_python_helper-0.23.0 → aws_python_helper-0.24.0}/aws_python_helper/sqs/consumer_base.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{aws_python_helper-0.23.0 → aws_python_helper-0.24.0}/aws_python_helper/utils/json_encoder.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{aws_python_helper-0.23.0 → aws_python_helper-0.24.0}/aws_python_helper.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{aws_python_helper-0.23.0 → aws_python_helper-0.24.0}/aws_python_helper.egg-info/requires.txt
RENAMED
|
File without changes
|
{aws_python_helper-0.23.0 → aws_python_helper-0.24.0}/aws_python_helper.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|