dcicutils 8.4.0.1b10__tar.gz → 8.4.0.1b11__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {dcicutils-8.4.0.1b10 → dcicutils-8.4.0.1b11}/PKG-INFO +1 -1
- {dcicutils-8.4.0.1b10 → dcicutils-8.4.0.1b11}/dcicutils/structured_data.py +41 -9
- {dcicutils-8.4.0.1b10 → dcicutils-8.4.0.1b11}/pyproject.toml +1 -1
- {dcicutils-8.4.0.1b10 → dcicutils-8.4.0.1b11}/LICENSE.txt +0 -0
- {dcicutils-8.4.0.1b10 → dcicutils-8.4.0.1b11}/README.rst +0 -0
- {dcicutils-8.4.0.1b10 → dcicutils-8.4.0.1b11}/dcicutils/__init__.py +0 -0
- {dcicutils-8.4.0.1b10 → dcicutils-8.4.0.1b11}/dcicutils/base.py +0 -0
- {dcicutils-8.4.0.1b10 → dcicutils-8.4.0.1b11}/dcicutils/beanstalk_utils.py +0 -0
- {dcicutils-8.4.0.1b10 → dcicutils-8.4.0.1b11}/dcicutils/bundle_utils.py +0 -0
- {dcicutils-8.4.0.1b10 → dcicutils-8.4.0.1b11}/dcicutils/cloudformation_utils.py +0 -0
- {dcicutils-8.4.0.1b10 → dcicutils-8.4.0.1b11}/dcicutils/codebuild_utils.py +0 -0
- {dcicutils-8.4.0.1b10 → dcicutils-8.4.0.1b11}/dcicutils/command_utils.py +0 -0
- {dcicutils-8.4.0.1b10 → dcicutils-8.4.0.1b11}/dcicutils/common.py +0 -0
- {dcicutils-8.4.0.1b10 → dcicutils-8.4.0.1b11}/dcicutils/contribution_scripts.py +0 -0
- {dcicutils-8.4.0.1b10 → dcicutils-8.4.0.1b11}/dcicutils/contribution_utils.py +0 -0
- {dcicutils-8.4.0.1b10 → dcicutils-8.4.0.1b11}/dcicutils/creds_utils.py +0 -0
- {dcicutils-8.4.0.1b10 → dcicutils-8.4.0.1b11}/dcicutils/data_readers.py +0 -0
- {dcicutils-8.4.0.1b10 → dcicutils-8.4.0.1b11}/dcicutils/data_utils.py +0 -0
- {dcicutils-8.4.0.1b10 → dcicutils-8.4.0.1b11}/dcicutils/deployment_utils.py +0 -0
- {dcicutils-8.4.0.1b10 → dcicutils-8.4.0.1b11}/dcicutils/diff_utils.py +0 -0
- {dcicutils-8.4.0.1b10 → dcicutils-8.4.0.1b11}/dcicutils/docker_utils.py +0 -0
- {dcicutils-8.4.0.1b10 → dcicutils-8.4.0.1b11}/dcicutils/ecr_scripts.py +0 -0
- {dcicutils-8.4.0.1b10 → dcicutils-8.4.0.1b11}/dcicutils/ecr_utils.py +0 -0
- {dcicutils-8.4.0.1b10 → dcicutils-8.4.0.1b11}/dcicutils/ecs_utils.py +0 -0
- {dcicutils-8.4.0.1b10 → dcicutils-8.4.0.1b11}/dcicutils/env_base.py +0 -0
- {dcicutils-8.4.0.1b10 → dcicutils-8.4.0.1b11}/dcicutils/env_manager.py +0 -0
- {dcicutils-8.4.0.1b10 → dcicutils-8.4.0.1b11}/dcicutils/env_scripts.py +0 -0
- {dcicutils-8.4.0.1b10 → dcicutils-8.4.0.1b11}/dcicutils/env_utils.py +0 -0
- {dcicutils-8.4.0.1b10 → dcicutils-8.4.0.1b11}/dcicutils/env_utils_legacy.py +0 -0
- {dcicutils-8.4.0.1b10 → dcicutils-8.4.0.1b11}/dcicutils/es_utils.py +0 -0
- {dcicutils-8.4.0.1b10 → dcicutils-8.4.0.1b11}/dcicutils/exceptions.py +0 -0
- {dcicutils-8.4.0.1b10 → dcicutils-8.4.0.1b11}/dcicutils/ff_mocks.py +0 -0
- {dcicutils-8.4.0.1b10 → dcicutils-8.4.0.1b11}/dcicutils/ff_utils.py +0 -0
- {dcicutils-8.4.0.1b10 → dcicutils-8.4.0.1b11}/dcicutils/function_cache_decorator.py +0 -0
- {dcicutils-8.4.0.1b10 → dcicutils-8.4.0.1b11}/dcicutils/glacier_utils.py +0 -0
- {dcicutils-8.4.0.1b10 → dcicutils-8.4.0.1b11}/dcicutils/jh_utils.py +0 -0
- {dcicutils-8.4.0.1b10 → dcicutils-8.4.0.1b11}/dcicutils/kibana/dashboards.json +0 -0
- {dcicutils-8.4.0.1b10 → dcicutils-8.4.0.1b11}/dcicutils/kibana/readme.md +0 -0
- {dcicutils-8.4.0.1b10 → dcicutils-8.4.0.1b11}/dcicutils/lang_utils.py +0 -0
- {dcicutils-8.4.0.1b10 → dcicutils-8.4.0.1b11}/dcicutils/license_policies/c4-infrastructure.jsonc +0 -0
- {dcicutils-8.4.0.1b10 → dcicutils-8.4.0.1b11}/dcicutils/license_policies/c4-python-infrastructure.jsonc +0 -0
- {dcicutils-8.4.0.1b10 → dcicutils-8.4.0.1b11}/dcicutils/license_policies/park-lab-common-server.jsonc +0 -0
- {dcicutils-8.4.0.1b10 → dcicutils-8.4.0.1b11}/dcicutils/license_policies/park-lab-common.jsonc +0 -0
- {dcicutils-8.4.0.1b10 → dcicutils-8.4.0.1b11}/dcicutils/license_policies/park-lab-gpl-pipeline.jsonc +0 -0
- {dcicutils-8.4.0.1b10 → dcicutils-8.4.0.1b11}/dcicutils/license_policies/park-lab-pipeline.jsonc +0 -0
- {dcicutils-8.4.0.1b10 → dcicutils-8.4.0.1b11}/dcicutils/license_utils.py +0 -0
- {dcicutils-8.4.0.1b10 → dcicutils-8.4.0.1b11}/dcicutils/log_utils.py +0 -0
- {dcicutils-8.4.0.1b10 → dcicutils-8.4.0.1b11}/dcicutils/misc_utils.py +0 -0
- {dcicutils-8.4.0.1b10 → dcicutils-8.4.0.1b11}/dcicutils/obfuscation_utils.py +0 -0
- {dcicutils-8.4.0.1b10 → dcicutils-8.4.0.1b11}/dcicutils/opensearch_utils.py +0 -0
- {dcicutils-8.4.0.1b10 → dcicutils-8.4.0.1b11}/dcicutils/project_utils.py +0 -0
- {dcicutils-8.4.0.1b10 → dcicutils-8.4.0.1b11}/dcicutils/qa_checkers.py +0 -0
- {dcicutils-8.4.0.1b10 → dcicutils-8.4.0.1b11}/dcicutils/qa_utils.py +0 -0
- {dcicutils-8.4.0.1b10 → dcicutils-8.4.0.1b11}/dcicutils/redis_tools.py +0 -0
- {dcicutils-8.4.0.1b10 → dcicutils-8.4.0.1b11}/dcicutils/redis_utils.py +0 -0
- {dcicutils-8.4.0.1b10 → dcicutils-8.4.0.1b11}/dcicutils/s3_utils.py +0 -0
- {dcicutils-8.4.0.1b10 → dcicutils-8.4.0.1b11}/dcicutils/scripts/publish_to_pypi.py +0 -0
- {dcicutils-8.4.0.1b10 → dcicutils-8.4.0.1b11}/dcicutils/scripts/run_license_checker.py +0 -0
- {dcicutils-8.4.0.1b10 → dcicutils-8.4.0.1b11}/dcicutils/secrets_utils.py +0 -0
- {dcicutils-8.4.0.1b10 → dcicutils-8.4.0.1b11}/dcicutils/sheet_utils.py +0 -0
- {dcicutils-8.4.0.1b10 → dcicutils-8.4.0.1b11}/dcicutils/snapshot_utils.py +0 -0
- {dcicutils-8.4.0.1b10 → dcicutils-8.4.0.1b11}/dcicutils/ssl_certificate_utils.py +0 -0
- {dcicutils-8.4.0.1b10 → dcicutils-8.4.0.1b11}/dcicutils/task_utils.py +0 -0
- {dcicutils-8.4.0.1b10 → dcicutils-8.4.0.1b11}/dcicutils/trace_utils.py +0 -0
- {dcicutils-8.4.0.1b10 → dcicutils-8.4.0.1b11}/dcicutils/validation_utils.py +0 -0
- {dcicutils-8.4.0.1b10 → dcicutils-8.4.0.1b11}/dcicutils/variant_utils.py +0 -0
- {dcicutils-8.4.0.1b10 → dcicutils-8.4.0.1b11}/dcicutils/zip_utils.py +0 -0
@@ -543,11 +543,11 @@ class Schema:
|
|
543
543
|
class PortalBase:
|
544
544
|
|
545
545
|
def __init__(self,
|
546
|
-
arg: Optional[Union[VirtualApp, TestApp, Router,
|
546
|
+
arg: Optional[Union[VirtualApp, TestApp, Router, PortalBase, dict, tuple, str]] = None,
|
547
547
|
env: Optional[str] = None, app: OrchestratedApp = APP_SMAHT, server: Optional[str] = None,
|
548
548
|
key: Optional[Union[dict, tuple]] = None,
|
549
|
-
portal: Optional[Union[VirtualApp, TestApp, Router,
|
550
|
-
if ((isinstance(arg, (VirtualApp, TestApp, Router,
|
549
|
+
portal: Optional[Union[VirtualApp, TestApp, Router, PortalBase, str]] = None) -> PortalBase:
|
550
|
+
if ((isinstance(arg, (VirtualApp, TestApp, Router, PortalBase)) or
|
551
551
|
isinstance(arg, str) and arg.endswith(".ini")) and not portal):
|
552
552
|
portal = arg
|
553
553
|
elif isinstance(arg, str) and not env:
|
@@ -557,8 +557,11 @@ class PortalBase:
|
|
557
557
|
self._vapp = None
|
558
558
|
self._key = None
|
559
559
|
self._key_pair = None
|
560
|
+
self._key_file = None
|
561
|
+
self._env = env
|
562
|
+
self._app = app
|
560
563
|
self._server = None
|
561
|
-
if isinstance(portal,
|
564
|
+
if isinstance(portal, PortalBase):
|
562
565
|
self._vapp = portal._vapp
|
563
566
|
self._key = portal._key
|
564
567
|
self._key_pair = portal._key_pair
|
@@ -585,6 +588,35 @@ class PortalBase:
|
|
585
588
|
self._key = key_manager.get_keydict_for_server(server)
|
586
589
|
self._server = server
|
587
590
|
self._key_pair = key_manager.keydict_to_keypair(self._key) if self._key else None
|
591
|
+
self._key_file = key_manager.keys_file
|
592
|
+
|
593
|
+
@property
|
594
|
+
def env(self):
|
595
|
+
return self._env
|
596
|
+
|
597
|
+
@property
|
598
|
+
def app(self):
|
599
|
+
return self._app
|
600
|
+
|
601
|
+
@property
|
602
|
+
def key(self):
|
603
|
+
return self._key
|
604
|
+
|
605
|
+
@property
|
606
|
+
def key_pair(self):
|
607
|
+
return self._key_pair
|
608
|
+
|
609
|
+
@property
|
610
|
+
def key_file(self):
|
611
|
+
return self._key_file
|
612
|
+
|
613
|
+
@property
|
614
|
+
def server(self):
|
615
|
+
return self._server
|
616
|
+
|
617
|
+
@property
|
618
|
+
def vapp(self):
|
619
|
+
return self._vapp
|
588
620
|
|
589
621
|
def get_metadata(self, object_id: str) -> Optional[dict]:
|
590
622
|
return get_metadata(obj_id=object_id, vapp=self._vapp, key=self._key)
|
@@ -661,15 +693,15 @@ class PortalBase:
|
|
661
693
|
@staticmethod
|
662
694
|
def create_for_testing(ini_file: Optional[str] = None) -> PortalBase:
|
663
695
|
if isinstance(ini_file, str):
|
664
|
-
return
|
696
|
+
return PortalBase(PortalBase._create_testapp(ini_file))
|
665
697
|
minimal_ini_for_unit_testing = "[app:app]\nuse = egg:encoded\nsqlalchemy.url = postgresql://dummy\n"
|
666
698
|
with temporary_file(content=minimal_ini_for_unit_testing, suffix=".ini") as ini_file:
|
667
|
-
return
|
699
|
+
return PortalBase(PortalBase._create_testapp(ini_file))
|
668
700
|
|
669
701
|
@staticmethod
|
670
|
-
def create_for_testing_local(ini_file: Optional[str] = None) ->
|
702
|
+
def create_for_testing_local(ini_file: Optional[str] = None) -> PortalBase:
|
671
703
|
if isinstance(ini_file, str) and ini_file:
|
672
|
-
return
|
704
|
+
return PortalBase(PortalBase._create_testapp(ini_file))
|
673
705
|
minimal_ini_for_testing_local = "\n".join([
|
674
706
|
"[app:app]\nuse = egg:encoded\nfile_upload_bucket = dummy",
|
675
707
|
"sqlalchemy.url = postgresql://postgres@localhost:5441/postgres?host=/tmp/snovault/pgdata",
|
@@ -690,7 +722,7 @@ class PortalBase:
|
|
690
722
|
"multiauth.policy.auth0.base = encoded.authentication.Auth0AuthenticationPolicy"
|
691
723
|
])
|
692
724
|
with temporary_file(content=minimal_ini_for_testing_local, suffix=".ini") as minimal_ini_file:
|
693
|
-
return
|
725
|
+
return PortalBase(PortalBase._create_testapp(minimal_ini_file))
|
694
726
|
|
695
727
|
@staticmethod
|
696
728
|
def _create_testapp(value: Union[str, Router, TestApp] = "development.ini") -> TestApp:
|
@@ -1,6 +1,6 @@
|
|
1
1
|
[tool.poetry]
|
2
2
|
name = "dcicutils"
|
3
|
-
version = "8.4.0.
|
3
|
+
version = "8.4.0.1b11" # TODO: To become 8.4.1
|
4
4
|
description = "Utility package for interacting with the 4DN Data Portal and other 4DN resources"
|
5
5
|
authors = ["4DN-DCIC Team <support@4dnucleome.org>"]
|
6
6
|
license = "MIT"
|
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
|
{dcicutils-8.4.0.1b10 → dcicutils-8.4.0.1b11}/dcicutils/license_policies/c4-infrastructure.jsonc
RENAMED
File without changes
|
File without changes
|
File without changes
|
{dcicutils-8.4.0.1b10 → dcicutils-8.4.0.1b11}/dcicutils/license_policies/park-lab-common.jsonc
RENAMED
File without changes
|
{dcicutils-8.4.0.1b10 → dcicutils-8.4.0.1b11}/dcicutils/license_policies/park-lab-gpl-pipeline.jsonc
RENAMED
File without changes
|
{dcicutils-8.4.0.1b10 → dcicutils-8.4.0.1b11}/dcicutils/license_policies/park-lab-pipeline.jsonc
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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|