pilot-platform-common 2.4.0__tar.gz → 2.6.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.
- {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/PKG-INFO +1 -1
- {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/common/project/project_client.py +4 -1
- {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/pilot_platform_common.egg-info/PKG-INFO +1 -1
- {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/pyproject.toml +1 -1
- {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/setup.py +1 -1
- {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/README.md +0 -0
- {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/common/__init__.py +0 -0
- {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/common/geid/__init__.py +0 -0
- {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/common/geid/geid_client.py +0 -0
- {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/common/jwt_handler/JWTHandler.py +0 -0
- {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/common/jwt_handler/__init__.py +0 -0
- {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/common/jwt_handler/jwt_handler_exception.py +0 -0
- {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/common/jwt_handler/models.py +0 -0
- {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/common/logging/__init__.py +0 -0
- {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/common/logging/formatter.py +0 -0
- {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/common/logging/logger.py +0 -0
- {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/common/logging/logging.py +0 -0
- {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/common/models/__init__.py +0 -0
- {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/common/models/config_center_policy.py +0 -0
- {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/common/models/service_id_generator.py +0 -0
- {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/common/object_storage_adaptor/__init__.py +0 -0
- {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/common/object_storage_adaptor/base_client.py +0 -0
- {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/common/object_storage_adaptor/boto3_admin_client.py +0 -0
- {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/common/object_storage_adaptor/boto3_client.py +0 -0
- {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/common/object_storage_adaptor/minio_policy_client.py +0 -0
- {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/common/permissions/__init__.py +0 -0
- {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/common/permissions/exceptions.py +0 -0
- {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/common/permissions/permissions.py +0 -0
- {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/common/permissions/permissions_manager.py +0 -0
- {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/common/permissions/schemas.py +0 -0
- {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/common/project/__init__.py +0 -0
- {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/common/project/project_exceptions.py +0 -0
- {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/common/services/__init__.py +0 -0
- {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/common/services/auth_client.py +0 -0
- {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/common/vault/__init__.py +0 -0
- {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/common/vault/vault_client.py +0 -0
- {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/common/vault/vault_exception.py +0 -0
- {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/pilot_platform_common.egg-info/SOURCES.txt +0 -0
- {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/pilot_platform_common.egg-info/dependency_links.txt +0 -0
- {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/pilot_platform_common.egg-info/requires.txt +0 -0
- {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/pilot_platform_common.egg-info/top_level.txt +0 -0
- {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/setup.cfg +0 -0
- {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/tests/__init__.py +0 -0
- {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/tests/conftest.py +0 -0
- {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/tests/fixtures/__init__.py +0 -0
- {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/tests/fixtures/fake.py +0 -0
- {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/tests/fixtures/metadata.py +0 -0
- {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/tests/permissions/__init__.py +0 -0
- {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/tests/permissions/test_auth_client.py +0 -0
- {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/tests/permissions/test_permissions.py +0 -0
- {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/tests/permissions/test_permissions_manager.py +0 -0
- {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/tests/test_formatter.py +0 -0
- {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/tests/test_geid_client.py +0 -0
- {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/tests/test_jwt_handler.py +0 -0
- {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/tests/test_logging.py +0 -0
- {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/tests/test_project_client.py +0 -0
- {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/tests/test_vault_client.py +0 -0
{pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/common/project/project_client.py
RENAMED
|
@@ -60,6 +60,7 @@ class ProjectObject:
|
|
|
60
60
|
system_tags=None,
|
|
61
61
|
is_discoverable=None,
|
|
62
62
|
state=None,
|
|
63
|
+
notify_users=None,
|
|
63
64
|
):
|
|
64
65
|
await self.project_client.connect_redis()
|
|
65
66
|
data = {
|
|
@@ -71,6 +72,7 @@ class ProjectObject:
|
|
|
71
72
|
'system_tags': system_tags,
|
|
72
73
|
'is_discoverable': is_discoverable,
|
|
73
74
|
'state': state,
|
|
75
|
+
'notify_users': notify_users,
|
|
74
76
|
}
|
|
75
77
|
# remove blank items
|
|
76
78
|
data = {k: v for k, v in data.items() if v is not None}
|
|
@@ -204,6 +206,7 @@ class ProjectClient:
|
|
|
204
206
|
tags: Union[list[str], None] = None,
|
|
205
207
|
system_tags: Union[list[str], None] = None,
|
|
206
208
|
is_discoverable: bool = True,
|
|
209
|
+
version: int = 1,
|
|
207
210
|
) -> ProjectObject:
|
|
208
211
|
if tags is None:
|
|
209
212
|
tags = []
|
|
@@ -224,7 +227,7 @@ class ProjectClient:
|
|
|
224
227
|
data = {k: v for k, v in data.items() if v is not None}
|
|
225
228
|
|
|
226
229
|
async with httpx.AsyncClient() as client:
|
|
227
|
-
response = await client.post(self.base_url + '/
|
|
230
|
+
response = await client.post(self.base_url + f'/v{version}/projects/', json=data)
|
|
228
231
|
if response.status_code != 200:
|
|
229
232
|
raise ProjectException(status_code=response.status_code, error_msg=response.json())
|
|
230
233
|
return self.project_object(response.json(), self)
|
|
@@ -11,7 +11,7 @@ long_description = (this_directory / 'README.md').read_text()
|
|
|
11
11
|
|
|
12
12
|
setuptools.setup(
|
|
13
13
|
name='pilot-platform-common',
|
|
14
|
-
version='2.
|
|
14
|
+
version='2.6.0',
|
|
15
15
|
author='Indoc Systems',
|
|
16
16
|
author_email='etaylor@indocresearch.org',
|
|
17
17
|
description='Generates entity ID and connects with Vault (secret engine) to retrieve credentials',
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/common/jwt_handler/JWTHandler.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
|
{pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/common/models/config_center_policy.py
RENAMED
|
File without changes
|
{pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/common/models/service_id_generator.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/common/permissions/exceptions.py
RENAMED
|
File without changes
|
{pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/common/permissions/permissions.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/common/project/project_exceptions.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
|
{pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/tests/permissions/test_auth_client.py
RENAMED
|
File without changes
|
{pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/tests/permissions/test_permissions.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
|