modular-sdk 8.0.0__tar.gz → 8.1.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.
- {modular_sdk-8.0.0/modular_sdk.egg-info → modular_sdk-8.1.0}/PKG-INFO +4 -2
- {modular_sdk-8.0.0 → modular_sdk-8.1.0}/modular_sdk/modular.py +19 -0
- modular_sdk-8.1.0/modular_sdk/services/jwt_token_service.py +174 -0
- {modular_sdk-8.0.0 → modular_sdk-8.1.0/modular_sdk.egg-info}/PKG-INFO +4 -2
- {modular_sdk-8.0.0 → modular_sdk-8.1.0}/modular_sdk.egg-info/SOURCES.txt +1 -0
- {modular_sdk-8.0.0 → modular_sdk-8.1.0}/modular_sdk.egg-info/requires.txt +4 -1
- {modular_sdk-8.0.0 → modular_sdk-8.1.0}/pyproject.toml +8 -2
- {modular_sdk-8.0.0 → modular_sdk-8.1.0}/LICENSE +0 -0
- {modular_sdk-8.0.0 → modular_sdk-8.1.0}/MANIFEST.in +0 -0
- {modular_sdk-8.0.0 → modular_sdk-8.1.0}/README.md +0 -0
- {modular_sdk-8.0.0 → modular_sdk-8.1.0}/modular_sdk/__init__.py +0 -0
- {modular_sdk-8.0.0 → modular_sdk-8.1.0}/modular_sdk/commons/__init__.py +0 -0
- {modular_sdk-8.0.0 → modular_sdk-8.1.0}/modular_sdk/commons/constants.py +0 -0
- {modular_sdk-8.0.0 → modular_sdk-8.1.0}/modular_sdk/commons/exception.py +0 -0
- {modular_sdk-8.0.0 → modular_sdk-8.1.0}/modular_sdk/commons/helpers.py +0 -0
- {modular_sdk-8.0.0 → modular_sdk-8.1.0}/modular_sdk/commons/log_helper.py +0 -0
- {modular_sdk-8.0.0 → modular_sdk-8.1.0}/modular_sdk/commons/time_helper.py +0 -0
- {modular_sdk-8.0.0 → modular_sdk-8.1.0}/modular_sdk/commons/trace_helper.py +0 -0
- {modular_sdk-8.0.0 → modular_sdk-8.1.0}/modular_sdk/connections/__init__.py +0 -0
- {modular_sdk-8.0.0 → modular_sdk-8.1.0}/modular_sdk/connections/rabbit_connection.py +0 -0
- {modular_sdk-8.0.0 → modular_sdk-8.1.0}/modular_sdk/models/__init__.py +0 -0
- {modular_sdk-8.0.0 → modular_sdk-8.1.0}/modular_sdk/models/application.py +0 -0
- {modular_sdk-8.0.0 → modular_sdk-8.1.0}/modular_sdk/models/base_meta.py +0 -0
- {modular_sdk-8.0.0 → modular_sdk-8.1.0}/modular_sdk/models/customer.py +0 -0
- {modular_sdk-8.0.0 → modular_sdk-8.1.0}/modular_sdk/models/customer_settings.py +0 -0
- {modular_sdk-8.0.0 → modular_sdk-8.1.0}/modular_sdk/models/execution_trace.py +0 -0
- {modular_sdk-8.0.0 → modular_sdk-8.1.0}/modular_sdk/models/heartbeat.py +0 -0
- {modular_sdk-8.0.0 → modular_sdk-8.1.0}/modular_sdk/models/job.py +0 -0
- {modular_sdk-8.0.0 → modular_sdk-8.1.0}/modular_sdk/models/operation_mode.py +0 -0
- {modular_sdk-8.0.0 → modular_sdk-8.1.0}/modular_sdk/models/parent.py +0 -0
- {modular_sdk-8.0.0 → modular_sdk-8.1.0}/modular_sdk/models/pynamongo/__init__.py +0 -0
- {modular_sdk-8.0.0 → modular_sdk-8.1.0}/modular_sdk/models/pynamongo/adapter.py +0 -0
- {modular_sdk-8.0.0 → modular_sdk-8.1.0}/modular_sdk/models/pynamongo/attributes.py +0 -0
- {modular_sdk-8.0.0 → modular_sdk-8.1.0}/modular_sdk/models/pynamongo/convertors.py +0 -0
- {modular_sdk-8.0.0 → modular_sdk-8.1.0}/modular_sdk/models/pynamongo/indexes_creator.py +0 -0
- {modular_sdk-8.0.0 → modular_sdk-8.1.0}/modular_sdk/models/pynamongo/models.py +0 -0
- {modular_sdk-8.0.0 → modular_sdk-8.1.0}/modular_sdk/models/pynamongo/patch.py +0 -0
- {modular_sdk-8.0.0 → modular_sdk-8.1.0}/modular_sdk/models/region.py +0 -0
- {modular_sdk-8.0.0 → modular_sdk-8.1.0}/modular_sdk/models/setting.py +0 -0
- {modular_sdk-8.0.0 → modular_sdk-8.1.0}/modular_sdk/models/tenant.py +0 -0
- {modular_sdk-8.0.0 → modular_sdk-8.1.0}/modular_sdk/models/tenant_settings.py +0 -0
- {modular_sdk-8.0.0 → modular_sdk-8.1.0}/modular_sdk/services/__init__.py +0 -0
- {modular_sdk-8.0.0 → modular_sdk-8.1.0}/modular_sdk/services/application_service.py +0 -0
- {modular_sdk-8.0.0 → modular_sdk-8.1.0}/modular_sdk/services/aws_creds_provider.py +0 -0
- {modular_sdk-8.0.0 → modular_sdk-8.1.0}/modular_sdk/services/customer_service.py +0 -0
- {modular_sdk-8.0.0 → modular_sdk-8.1.0}/modular_sdk/services/customer_settings_service.py +0 -0
- {modular_sdk-8.0.0 → modular_sdk-8.1.0}/modular_sdk/services/environment_service.py +0 -0
- {modular_sdk-8.0.0 → modular_sdk-8.1.0}/modular_sdk/services/events_service.py +0 -0
- {modular_sdk-8.0.0 → modular_sdk-8.1.0}/modular_sdk/services/impl/__init__.py +0 -0
- {modular_sdk-8.0.0 → modular_sdk-8.1.0}/modular_sdk/services/impl/maestro_credentials_service.py +0 -0
- {modular_sdk-8.0.0 → modular_sdk-8.1.0}/modular_sdk/services/impl/maestro_http_transport_service.py +0 -0
- {modular_sdk-8.0.0 → modular_sdk-8.1.0}/modular_sdk/services/impl/maestro_rabbit_transport_service.py +0 -0
- {modular_sdk-8.0.0 → modular_sdk-8.1.0}/modular_sdk/services/impl/maestro_signature_builder.py +0 -0
- {modular_sdk-8.0.0 → modular_sdk-8.1.0}/modular_sdk/services/job_service.py +0 -0
- {modular_sdk-8.0.0 → modular_sdk-8.1.0}/modular_sdk/services/lambda_service.py +0 -0
- {modular_sdk-8.0.0 → modular_sdk-8.1.0}/modular_sdk/services/parent_service.py +0 -0
- {modular_sdk-8.0.0 → modular_sdk-8.1.0}/modular_sdk/services/rabbit_transport_service.py +0 -0
- {modular_sdk-8.0.0 → modular_sdk-8.1.0}/modular_sdk/services/region_service.py +0 -0
- {modular_sdk-8.0.0 → modular_sdk-8.1.0}/modular_sdk/services/settings_management_service.py +0 -0
- {modular_sdk-8.0.0 → modular_sdk-8.1.0}/modular_sdk/services/sqs_service.py +0 -0
- {modular_sdk-8.0.0 → modular_sdk-8.1.0}/modular_sdk/services/ssm_service.py +0 -0
- {modular_sdk-8.0.0 → modular_sdk-8.1.0}/modular_sdk/services/sts_service.py +0 -0
- {modular_sdk-8.0.0 → modular_sdk-8.1.0}/modular_sdk/services/tenant_service.py +0 -0
- {modular_sdk-8.0.0 → modular_sdk-8.1.0}/modular_sdk/services/tenant_settings_service.py +0 -0
- {modular_sdk-8.0.0 → modular_sdk-8.1.0}/modular_sdk/services/thread_local_storage_service.py +0 -0
- {modular_sdk-8.0.0 → modular_sdk-8.1.0}/modular_sdk/utils/__init__.py +0 -0
- {modular_sdk-8.0.0 → modular_sdk-8.1.0}/modular_sdk/utils/job_tracer/__init__.py +0 -0
- {modular_sdk-8.0.0 → modular_sdk-8.1.0}/modular_sdk/utils/job_tracer/abstract.py +0 -0
- {modular_sdk-8.0.0 → modular_sdk-8.1.0}/modular_sdk/utils/job_tracer/generic.py +0 -0
- {modular_sdk-8.0.0 → modular_sdk-8.1.0}/modular_sdk/utils/operation_mode/__init__.py +0 -0
- {modular_sdk-8.0.0 → modular_sdk-8.1.0}/modular_sdk/utils/operation_mode/abstract.py +0 -0
- {modular_sdk-8.0.0 → modular_sdk-8.1.0}/modular_sdk/utils/operation_mode/generic.py +0 -0
- {modular_sdk-8.0.0 → modular_sdk-8.1.0}/modular_sdk/utils/runtime_tracer/__init__.py +0 -0
- {modular_sdk-8.0.0 → modular_sdk-8.1.0}/modular_sdk/utils/runtime_tracer/abstract.py +0 -0
- {modular_sdk-8.0.0 → modular_sdk-8.1.0}/modular_sdk/utils/runtime_tracer/generic.py +0 -0
- {modular_sdk-8.0.0 → modular_sdk-8.1.0}/modular_sdk.egg-info/dependency_links.txt +0 -0
- {modular_sdk-8.0.0 → modular_sdk-8.1.0}/modular_sdk.egg-info/top_level.txt +0 -0
- {modular_sdk-8.0.0 → modular_sdk-8.1.0}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: modular_sdk
|
|
3
|
-
Version: 8.
|
|
3
|
+
Version: 8.1.0
|
|
4
4
|
Summary: Data level integration for services built atop of Modular Framework
|
|
5
5
|
Author-email: EPAM Systems <support@syndicate.team>
|
|
6
6
|
License: Apache License
|
|
@@ -226,6 +226,8 @@ Requires-Dist: cachetools<8,>=5.5.1
|
|
|
226
226
|
Requires-Dist: pynamodb==6.1.0
|
|
227
227
|
Provides-Extra: cryptography
|
|
228
228
|
Requires-Dist: cryptography~=43.0.3; extra == "cryptography"
|
|
229
|
+
Provides-Extra: jwt
|
|
230
|
+
Requires-Dist: PyJWT<3,>=2.8.0; extra == "jwt"
|
|
229
231
|
Provides-Extra: hvac
|
|
230
232
|
Requires-Dist: hvac~=2.1.0; extra == "hvac"
|
|
231
233
|
Provides-Extra: test
|
|
@@ -234,7 +236,7 @@ Requires-Dist: mongomock>=4.3.0; extra == "test"
|
|
|
234
236
|
Requires-Dist: pytest-xdist>=3.8.0; extra == "test"
|
|
235
237
|
Requires-Dist: pytest-cov>=7.0.0; extra == "test"
|
|
236
238
|
Provides-Extra: all
|
|
237
|
-
Requires-Dist: modular-sdk[cryptography,hvac,test]; extra == "all"
|
|
239
|
+
Requires-Dist: modular-sdk[cryptography,hvac,jwt,test]; extra == "all"
|
|
238
240
|
Dynamic: license-file
|
|
239
241
|
|
|
240
242
|
[](http://www.apache.org/licenses/LICENSE-2.0.txt)
|
|
@@ -44,6 +44,7 @@ if TYPE_CHECKING:
|
|
|
44
44
|
from modular_sdk.services.thread_local_storage_service import (
|
|
45
45
|
ThreadLocalStorageService,
|
|
46
46
|
)
|
|
47
|
+
from modular_sdk.services.jwt_token_service import JWTTokenService
|
|
47
48
|
|
|
48
49
|
|
|
49
50
|
class ModularServiceProvider(metaclass=SingletonMeta):
|
|
@@ -70,6 +71,7 @@ class ModularServiceProvider(metaclass=SingletonMeta):
|
|
|
70
71
|
|
|
71
72
|
__ssm_service = None
|
|
72
73
|
__assume_role_ssm_service = None
|
|
74
|
+
__jwt_token_service = None
|
|
73
75
|
|
|
74
76
|
def __str__(self):
|
|
75
77
|
return str(id(self))
|
|
@@ -306,6 +308,23 @@ class ModularServiceProvider(metaclass=SingletonMeta):
|
|
|
306
308
|
self.__thread_local_storage_service = ThreadLocalStorageService()
|
|
307
309
|
return self.__thread_local_storage_service
|
|
308
310
|
|
|
311
|
+
def jwt_token_service(
|
|
312
|
+
self,
|
|
313
|
+
secret_key: str,
|
|
314
|
+
algorithm: str | None = None,
|
|
315
|
+
public_key: str | None = None,
|
|
316
|
+
|
|
317
|
+
) -> 'JWTTokenService':
|
|
318
|
+
if not self.__jwt_token_service:
|
|
319
|
+
from modular_sdk.services.jwt_token_service import JWTTokenService
|
|
320
|
+
|
|
321
|
+
self.__jwt_token_service = JWTTokenService(
|
|
322
|
+
secret_key=secret_key,
|
|
323
|
+
algorithm=algorithm,
|
|
324
|
+
public_key=public_key
|
|
325
|
+
)
|
|
326
|
+
return self.__jwt_token_service
|
|
327
|
+
|
|
309
328
|
def reset(self, service: str):
|
|
310
329
|
"""
|
|
311
330
|
Removes the saved instance of the service. It is useful,
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
from datetime import datetime, timedelta, timezone
|
|
2
|
+
from typing import Any, Dict
|
|
3
|
+
|
|
4
|
+
from modular_sdk.commons.log_helper import get_logger
|
|
5
|
+
|
|
6
|
+
_LOG = get_logger(__name__)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class JWTTokenService:
|
|
10
|
+
"""
|
|
11
|
+
Service for encoding and decoding JWT tokens.
|
|
12
|
+
Requires PyJWT to be installed: pip install PyJWT
|
|
13
|
+
|
|
14
|
+
For HMAC algorithms (HS256, HS384, HS512):
|
|
15
|
+
- Use same key for both encoding and decoding
|
|
16
|
+
|
|
17
|
+
For RSA algorithms (RS256, RS384, RS512):
|
|
18
|
+
- Encoding: use private key
|
|
19
|
+
- Decoding: use public key
|
|
20
|
+
"""
|
|
21
|
+
|
|
22
|
+
def __init__(
|
|
23
|
+
self,
|
|
24
|
+
secret_key: str,
|
|
25
|
+
algorithm: str | None = None,
|
|
26
|
+
public_key: str | None = None,
|
|
27
|
+
):
|
|
28
|
+
"""
|
|
29
|
+
Initialize JWT Token Service.
|
|
30
|
+
|
|
31
|
+
:param secret_key: Secret key for signing tokens (or private key for RS*)
|
|
32
|
+
:param algorithm: Algorithm to use (default: HS256)
|
|
33
|
+
:param public_key: Public key for verifying tokens (only for RS* algorithms)
|
|
34
|
+
"""
|
|
35
|
+
try:
|
|
36
|
+
import jwt
|
|
37
|
+
self.jwt = jwt
|
|
38
|
+
except ImportError:
|
|
39
|
+
raise ImportError(
|
|
40
|
+
'PyJWT is required for JWTTokenService'
|
|
41
|
+
)
|
|
42
|
+
|
|
43
|
+
if not secret_key:
|
|
44
|
+
raise ValueError('secret_key cannot be empty')
|
|
45
|
+
|
|
46
|
+
self.secret_key = secret_key
|
|
47
|
+
self.algorithm = algorithm or 'HS256'
|
|
48
|
+
self.public_key = public_key
|
|
49
|
+
|
|
50
|
+
def encode(
|
|
51
|
+
self,
|
|
52
|
+
payload: Dict[str, Any],
|
|
53
|
+
expires_in: int | None = None,
|
|
54
|
+
) -> str:
|
|
55
|
+
"""
|
|
56
|
+
Encode a JWT token.
|
|
57
|
+
|
|
58
|
+
:param payload: Dictionary containing token claims
|
|
59
|
+
:param expires_in: Token expiration time in seconds
|
|
60
|
+
(if None, token won't have expiration)
|
|
61
|
+
:return: Encoded JWT token string
|
|
62
|
+
:raises ValueError: If payload is empty or invalid
|
|
63
|
+
"""
|
|
64
|
+
if not payload:
|
|
65
|
+
raise ValueError('payload cannot be empty')
|
|
66
|
+
|
|
67
|
+
token_payload = payload.copy()
|
|
68
|
+
|
|
69
|
+
if expires_in:
|
|
70
|
+
token_payload['exp'] = datetime.now(
|
|
71
|
+
tz=timezone.utc
|
|
72
|
+
) + timedelta(seconds=expires_in)
|
|
73
|
+
token_payload['iat'] = datetime.now(tz=timezone.utc)
|
|
74
|
+
|
|
75
|
+
try:
|
|
76
|
+
token = self.jwt.encode(
|
|
77
|
+
token_payload, self.secret_key, algorithm=self.algorithm
|
|
78
|
+
)
|
|
79
|
+
_LOG.debug(f'Token encoded successfully with payload keys: '
|
|
80
|
+
f'{list(payload.keys())}')
|
|
81
|
+
return token
|
|
82
|
+
except Exception as e:
|
|
83
|
+
_LOG.error(f'Error encoding JWT token: {str(e)}')
|
|
84
|
+
raise
|
|
85
|
+
|
|
86
|
+
def decode(
|
|
87
|
+
self,
|
|
88
|
+
token: str,
|
|
89
|
+
verify_exp: bool = True,
|
|
90
|
+
algorithms: list | None = None,
|
|
91
|
+
) -> Dict[str, Any]:
|
|
92
|
+
"""
|
|
93
|
+
Decode and verify a JWT token.
|
|
94
|
+
|
|
95
|
+
:param token: JWT token string to decode
|
|
96
|
+
:param verify_exp: Whether to verify token expiration
|
|
97
|
+
(default: True)
|
|
98
|
+
:param algorithms: List of allowed algorithms
|
|
99
|
+
(default: uses service's algorithm)
|
|
100
|
+
:return: Decoded token payload as dictionary
|
|
101
|
+
:raises ValueError: If token is empty
|
|
102
|
+
:raises jwt.DecodeError: If token is invalid
|
|
103
|
+
:raises jwt.ExpiredSignatureError: If token is expired
|
|
104
|
+
"""
|
|
105
|
+
if not token:
|
|
106
|
+
raise ValueError('token cannot be empty')
|
|
107
|
+
|
|
108
|
+
if algorithms is None:
|
|
109
|
+
algorithms = [self.algorithm]
|
|
110
|
+
|
|
111
|
+
# For RS* algorithms, use public_key; for HS* use secret_key
|
|
112
|
+
verify_key = self.public_key or self.secret_key
|
|
113
|
+
|
|
114
|
+
try:
|
|
115
|
+
decoded = self.jwt.decode(
|
|
116
|
+
token,
|
|
117
|
+
verify_key,
|
|
118
|
+
algorithms=algorithms,
|
|
119
|
+
options={'verify_exp': verify_exp},
|
|
120
|
+
)
|
|
121
|
+
_LOG.debug(f'Token decoded successfully with payload keys: '
|
|
122
|
+
f'{list(decoded.keys())}')
|
|
123
|
+
return decoded
|
|
124
|
+
except self.jwt.ExpiredSignatureError as e:
|
|
125
|
+
_LOG.warning(f'Token has expired: {str(e)}')
|
|
126
|
+
raise
|
|
127
|
+
except self.jwt.DecodeError as e:
|
|
128
|
+
_LOG.warning(f'Error decoding JWT token: {str(e)}')
|
|
129
|
+
raise
|
|
130
|
+
except Exception as e:
|
|
131
|
+
_LOG.error(f'Unexpected error decoding JWT token: {str(e)}')
|
|
132
|
+
raise
|
|
133
|
+
|
|
134
|
+
def is_token_valid(self, token: str) -> bool:
|
|
135
|
+
"""
|
|
136
|
+
Check if a token is valid (well-formed and not expired).
|
|
137
|
+
|
|
138
|
+
:param token: JWT token string to validate
|
|
139
|
+
:return: True if token is valid, False otherwise
|
|
140
|
+
"""
|
|
141
|
+
if not token:
|
|
142
|
+
return False
|
|
143
|
+
|
|
144
|
+
try:
|
|
145
|
+
self.decode(token, verify_exp=True)
|
|
146
|
+
return True
|
|
147
|
+
except Exception as e:
|
|
148
|
+
_LOG.error(f'JWT token is invalid. Decoding error: {str(e)}')
|
|
149
|
+
return False
|
|
150
|
+
|
|
151
|
+
def decode_without_verification(self, token: str) -> Dict[str, Any]:
|
|
152
|
+
"""
|
|
153
|
+
Decode token without verifying signature or expiration.
|
|
154
|
+
Use with caution - only for inspection purposes.
|
|
155
|
+
|
|
156
|
+
:param token: JWT token string to decode
|
|
157
|
+
:return: Decoded token payload
|
|
158
|
+
:raises ValueError: If token is empty
|
|
159
|
+
:raises jwt.DecodeError: If token format is invalid
|
|
160
|
+
"""
|
|
161
|
+
if not token:
|
|
162
|
+
raise ValueError('token cannot be empty')
|
|
163
|
+
|
|
164
|
+
try:
|
|
165
|
+
decoded = self.jwt.decode(
|
|
166
|
+
token,
|
|
167
|
+
options={'verify_signature': False},
|
|
168
|
+
)
|
|
169
|
+
_LOG.debug('Token decoded without verification')
|
|
170
|
+
return decoded
|
|
171
|
+
except Exception as e:
|
|
172
|
+
_LOG.error(f'Error decoding token without verification: '
|
|
173
|
+
f'{str(e)}')
|
|
174
|
+
raise
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: modular_sdk
|
|
3
|
-
Version: 8.
|
|
3
|
+
Version: 8.1.0
|
|
4
4
|
Summary: Data level integration for services built atop of Modular Framework
|
|
5
5
|
Author-email: EPAM Systems <support@syndicate.team>
|
|
6
6
|
License: Apache License
|
|
@@ -226,6 +226,8 @@ Requires-Dist: cachetools<8,>=5.5.1
|
|
|
226
226
|
Requires-Dist: pynamodb==6.1.0
|
|
227
227
|
Provides-Extra: cryptography
|
|
228
228
|
Requires-Dist: cryptography~=43.0.3; extra == "cryptography"
|
|
229
|
+
Provides-Extra: jwt
|
|
230
|
+
Requires-Dist: PyJWT<3,>=2.8.0; extra == "jwt"
|
|
229
231
|
Provides-Extra: hvac
|
|
230
232
|
Requires-Dist: hvac~=2.1.0; extra == "hvac"
|
|
231
233
|
Provides-Extra: test
|
|
@@ -234,7 +236,7 @@ Requires-Dist: mongomock>=4.3.0; extra == "test"
|
|
|
234
236
|
Requires-Dist: pytest-xdist>=3.8.0; extra == "test"
|
|
235
237
|
Requires-Dist: pytest-cov>=7.0.0; extra == "test"
|
|
236
238
|
Provides-Extra: all
|
|
237
|
-
Requires-Dist: modular-sdk[cryptography,hvac,test]; extra == "all"
|
|
239
|
+
Requires-Dist: modular-sdk[cryptography,hvac,jwt,test]; extra == "all"
|
|
238
240
|
Dynamic: license-file
|
|
239
241
|
|
|
240
242
|
[](http://www.apache.org/licenses/LICENSE-2.0.txt)
|
|
@@ -47,6 +47,7 @@ modular_sdk/services/customer_settings_service.py
|
|
|
47
47
|
modular_sdk/services/environment_service.py
|
|
48
48
|
modular_sdk/services/events_service.py
|
|
49
49
|
modular_sdk/services/job_service.py
|
|
50
|
+
modular_sdk/services/jwt_token_service.py
|
|
50
51
|
modular_sdk/services/lambda_service.py
|
|
51
52
|
modular_sdk/services/parent_service.py
|
|
52
53
|
modular_sdk/services/rabbit_transport_service.py
|
|
@@ -7,7 +7,7 @@ cachetools<8,>=5.5.1
|
|
|
7
7
|
pynamodb==6.1.0
|
|
8
8
|
|
|
9
9
|
[all]
|
|
10
|
-
modular-sdk[cryptography,hvac,test]
|
|
10
|
+
modular-sdk[cryptography,hvac,jwt,test]
|
|
11
11
|
|
|
12
12
|
[cryptography]
|
|
13
13
|
cryptography~=43.0.3
|
|
@@ -15,6 +15,9 @@ cryptography~=43.0.3
|
|
|
15
15
|
[hvac]
|
|
16
16
|
hvac~=2.1.0
|
|
17
17
|
|
|
18
|
+
[jwt]
|
|
19
|
+
PyJWT<3,>=2.8.0
|
|
20
|
+
|
|
18
21
|
[test]
|
|
19
22
|
pytest>=9.0.2
|
|
20
23
|
mongomock>=4.3.0
|
|
@@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
|
|
|
6
6
|
[project]
|
|
7
7
|
name = "modular_sdk"
|
|
8
8
|
|
|
9
|
-
version = "8.
|
|
9
|
+
version = "8.1.0"
|
|
10
10
|
|
|
11
11
|
authors = [
|
|
12
12
|
{name = "EPAM Systems", email = "support@syndicate.team"}
|
|
@@ -36,6 +36,9 @@ dependencies = [
|
|
|
36
36
|
cryptography = [
|
|
37
37
|
"cryptography~=43.0.3",
|
|
38
38
|
]
|
|
39
|
+
jwt = [
|
|
40
|
+
"PyJWT>=2.8.0,<3",
|
|
41
|
+
]
|
|
39
42
|
hvac = [
|
|
40
43
|
"hvac~=2.1.0",
|
|
41
44
|
]
|
|
@@ -46,7 +49,7 @@ test = [
|
|
|
46
49
|
"pytest-cov>=7.0.0",
|
|
47
50
|
]
|
|
48
51
|
all = [
|
|
49
|
-
"modular-sdk[cryptography,hvac,
|
|
52
|
+
"modular-sdk[cryptography,jwt,hvac,test]"
|
|
50
53
|
]
|
|
51
54
|
|
|
52
55
|
|
|
@@ -94,6 +97,9 @@ markers = [
|
|
|
94
97
|
# =============================================================================
|
|
95
98
|
# Coverage Configuration
|
|
96
99
|
# =============================================================================
|
|
100
|
+
# Coverage is opt-in so plain `pytest` works without `pytest-cov`.
|
|
101
|
+
# Use `pytest --cov=modular_sdk.models.pynamongo --cov-report=term-missing`
|
|
102
|
+
# (or the CI command) when you want coverage output.
|
|
97
103
|
[tool.coverage.run]
|
|
98
104
|
source = ["modular_sdk"]
|
|
99
105
|
branch = true
|
|
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
|
|
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
|
{modular_sdk-8.0.0 → modular_sdk-8.1.0}/modular_sdk/services/impl/maestro_credentials_service.py
RENAMED
|
File without changes
|
{modular_sdk-8.0.0 → modular_sdk-8.1.0}/modular_sdk/services/impl/maestro_http_transport_service.py
RENAMED
|
File without changes
|
|
File without changes
|
{modular_sdk-8.0.0 → modular_sdk-8.1.0}/modular_sdk/services/impl/maestro_signature_builder.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
|
{modular_sdk-8.0.0 → modular_sdk-8.1.0}/modular_sdk/services/thread_local_storage_service.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
|