pilot-platform-common 2.5.0__tar.gz → 2.7.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.5.0 → pilot_platform_common-2.7.0}/PKG-INFO +1 -1
- {pilot_platform_common-2.5.0 → pilot_platform_common-2.7.0}/common/project/project_client.py +3 -1
- {pilot_platform_common-2.5.0 → pilot_platform_common-2.7.0}/pilot_platform_common.egg-info/PKG-INFO +1 -1
- {pilot_platform_common-2.5.0 → pilot_platform_common-2.7.0}/pyproject.toml +1 -1
- {pilot_platform_common-2.5.0 → pilot_platform_common-2.7.0}/setup.py +1 -1
- {pilot_platform_common-2.5.0 → pilot_platform_common-2.7.0}/README.md +0 -0
- {pilot_platform_common-2.5.0 → pilot_platform_common-2.7.0}/common/__init__.py +0 -0
- {pilot_platform_common-2.5.0 → pilot_platform_common-2.7.0}/common/geid/__init__.py +0 -0
- {pilot_platform_common-2.5.0 → pilot_platform_common-2.7.0}/common/geid/geid_client.py +0 -0
- {pilot_platform_common-2.5.0 → pilot_platform_common-2.7.0}/common/jwt_handler/JWTHandler.py +0 -0
- {pilot_platform_common-2.5.0 → pilot_platform_common-2.7.0}/common/jwt_handler/__init__.py +0 -0
- {pilot_platform_common-2.5.0 → pilot_platform_common-2.7.0}/common/jwt_handler/jwt_handler_exception.py +0 -0
- {pilot_platform_common-2.5.0 → pilot_platform_common-2.7.0}/common/jwt_handler/models.py +0 -0
- {pilot_platform_common-2.5.0 → pilot_platform_common-2.7.0}/common/logging/__init__.py +0 -0
- {pilot_platform_common-2.5.0 → pilot_platform_common-2.7.0}/common/logging/formatter.py +0 -0
- {pilot_platform_common-2.5.0 → pilot_platform_common-2.7.0}/common/logging/logger.py +0 -0
- {pilot_platform_common-2.5.0 → pilot_platform_common-2.7.0}/common/logging/logging.py +0 -0
- {pilot_platform_common-2.5.0 → pilot_platform_common-2.7.0}/common/models/__init__.py +0 -0
- {pilot_platform_common-2.5.0 → pilot_platform_common-2.7.0}/common/models/config_center_policy.py +0 -0
- {pilot_platform_common-2.5.0 → pilot_platform_common-2.7.0}/common/models/service_id_generator.py +0 -0
- {pilot_platform_common-2.5.0 → pilot_platform_common-2.7.0}/common/object_storage_adaptor/__init__.py +0 -0
- {pilot_platform_common-2.5.0 → pilot_platform_common-2.7.0}/common/object_storage_adaptor/base_client.py +0 -0
- {pilot_platform_common-2.5.0 → pilot_platform_common-2.7.0}/common/object_storage_adaptor/boto3_admin_client.py +0 -0
- {pilot_platform_common-2.5.0 → pilot_platform_common-2.7.0}/common/object_storage_adaptor/boto3_client.py +0 -0
- {pilot_platform_common-2.5.0 → pilot_platform_common-2.7.0}/common/object_storage_adaptor/minio_policy_client.py +0 -0
- {pilot_platform_common-2.5.0 → pilot_platform_common-2.7.0}/common/permissions/__init__.py +0 -0
- {pilot_platform_common-2.5.0 → pilot_platform_common-2.7.0}/common/permissions/exceptions.py +0 -0
- {pilot_platform_common-2.5.0 → pilot_platform_common-2.7.0}/common/permissions/permissions.py +0 -0
- {pilot_platform_common-2.5.0 → pilot_platform_common-2.7.0}/common/permissions/permissions_manager.py +0 -0
- {pilot_platform_common-2.5.0 → pilot_platform_common-2.7.0}/common/permissions/schemas.py +0 -0
- {pilot_platform_common-2.5.0 → pilot_platform_common-2.7.0}/common/project/__init__.py +0 -0
- {pilot_platform_common-2.5.0 → pilot_platform_common-2.7.0}/common/project/project_exceptions.py +0 -0
- {pilot_platform_common-2.5.0 → pilot_platform_common-2.7.0}/common/services/__init__.py +0 -0
- {pilot_platform_common-2.5.0 → pilot_platform_common-2.7.0}/common/services/auth_client.py +0 -0
- {pilot_platform_common-2.5.0 → pilot_platform_common-2.7.0}/common/vault/__init__.py +0 -0
- {pilot_platform_common-2.5.0 → pilot_platform_common-2.7.0}/common/vault/vault_client.py +0 -0
- {pilot_platform_common-2.5.0 → pilot_platform_common-2.7.0}/common/vault/vault_exception.py +0 -0
- {pilot_platform_common-2.5.0 → pilot_platform_common-2.7.0}/pilot_platform_common.egg-info/SOURCES.txt +0 -0
- {pilot_platform_common-2.5.0 → pilot_platform_common-2.7.0}/pilot_platform_common.egg-info/dependency_links.txt +0 -0
- {pilot_platform_common-2.5.0 → pilot_platform_common-2.7.0}/pilot_platform_common.egg-info/requires.txt +0 -0
- {pilot_platform_common-2.5.0 → pilot_platform_common-2.7.0}/pilot_platform_common.egg-info/top_level.txt +0 -0
- {pilot_platform_common-2.5.0 → pilot_platform_common-2.7.0}/setup.cfg +0 -0
- {pilot_platform_common-2.5.0 → pilot_platform_common-2.7.0}/tests/__init__.py +0 -0
- {pilot_platform_common-2.5.0 → pilot_platform_common-2.7.0}/tests/conftest.py +0 -0
- {pilot_platform_common-2.5.0 → pilot_platform_common-2.7.0}/tests/fixtures/__init__.py +0 -0
- {pilot_platform_common-2.5.0 → pilot_platform_common-2.7.0}/tests/fixtures/fake.py +0 -0
- {pilot_platform_common-2.5.0 → pilot_platform_common-2.7.0}/tests/fixtures/metadata.py +0 -0
- {pilot_platform_common-2.5.0 → pilot_platform_common-2.7.0}/tests/permissions/__init__.py +0 -0
- {pilot_platform_common-2.5.0 → pilot_platform_common-2.7.0}/tests/permissions/test_auth_client.py +0 -0
- {pilot_platform_common-2.5.0 → pilot_platform_common-2.7.0}/tests/permissions/test_permissions.py +0 -0
- {pilot_platform_common-2.5.0 → pilot_platform_common-2.7.0}/tests/permissions/test_permissions_manager.py +0 -0
- {pilot_platform_common-2.5.0 → pilot_platform_common-2.7.0}/tests/test_formatter.py +0 -0
- {pilot_platform_common-2.5.0 → pilot_platform_common-2.7.0}/tests/test_geid_client.py +0 -0
- {pilot_platform_common-2.5.0 → pilot_platform_common-2.7.0}/tests/test_jwt_handler.py +0 -0
- {pilot_platform_common-2.5.0 → pilot_platform_common-2.7.0}/tests/test_logging.py +0 -0
- {pilot_platform_common-2.5.0 → pilot_platform_common-2.7.0}/tests/test_project_client.py +0 -0
- {pilot_platform_common-2.5.0 → pilot_platform_common-2.7.0}/tests/test_vault_client.py +0 -0
{pilot_platform_common-2.5.0 → pilot_platform_common-2.7.0}/common/project/project_client.py
RENAMED
|
@@ -34,6 +34,7 @@ class ProjectObject:
|
|
|
34
34
|
'is_favourite',
|
|
35
35
|
'state',
|
|
36
36
|
'created_by',
|
|
37
|
+
'deleted_at',
|
|
37
38
|
]
|
|
38
39
|
|
|
39
40
|
def __init__(self, data, project_client):
|
|
@@ -206,6 +207,7 @@ class ProjectClient:
|
|
|
206
207
|
tags: Union[list[str], None] = None,
|
|
207
208
|
system_tags: Union[list[str], None] = None,
|
|
208
209
|
is_discoverable: bool = True,
|
|
210
|
+
version: int = 1,
|
|
209
211
|
) -> ProjectObject:
|
|
210
212
|
if tags is None:
|
|
211
213
|
tags = []
|
|
@@ -226,7 +228,7 @@ class ProjectClient:
|
|
|
226
228
|
data = {k: v for k, v in data.items() if v is not None}
|
|
227
229
|
|
|
228
230
|
async with httpx.AsyncClient() as client:
|
|
229
|
-
response = await client.post(self.base_url + '/
|
|
231
|
+
response = await client.post(self.base_url + f'/v{version}/projects/', json=data)
|
|
230
232
|
if response.status_code != 200:
|
|
231
233
|
raise ProjectException(status_code=response.status_code, error_msg=response.json())
|
|
232
234
|
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.7.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.5.0 → pilot_platform_common-2.7.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.5.0 → pilot_platform_common-2.7.0}/common/models/config_center_policy.py
RENAMED
|
File without changes
|
{pilot_platform_common-2.5.0 → pilot_platform_common-2.7.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.5.0 → pilot_platform_common-2.7.0}/common/permissions/exceptions.py
RENAMED
|
File without changes
|
{pilot_platform_common-2.5.0 → pilot_platform_common-2.7.0}/common/permissions/permissions.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pilot_platform_common-2.5.0 → pilot_platform_common-2.7.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.5.0 → pilot_platform_common-2.7.0}/tests/permissions/test_auth_client.py
RENAMED
|
File without changes
|
{pilot_platform_common-2.5.0 → pilot_platform_common-2.7.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
|