dcicutils 8.7.1.1b11__tar.gz → 8.7.1.1b12__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {dcicutils-8.7.1.1b11 → dcicutils-8.7.1.1b12}/PKG-INFO +1 -1
- {dcicutils-8.7.1.1b11 → dcicutils-8.7.1.1b12}/dcicutils/schema_utils.py +2 -2
- {dcicutils-8.7.1.1b11 → dcicutils-8.7.1.1b12}/dcicutils/structured_data.py +11 -9
- {dcicutils-8.7.1.1b11 → dcicutils-8.7.1.1b12}/pyproject.toml +1 -1
- {dcicutils-8.7.1.1b11 → dcicutils-8.7.1.1b12}/LICENSE.txt +0 -0
- {dcicutils-8.7.1.1b11 → dcicutils-8.7.1.1b12}/README.rst +0 -0
- {dcicutils-8.7.1.1b11 → dcicutils-8.7.1.1b12}/dcicutils/__init__.py +0 -0
- {dcicutils-8.7.1.1b11 → dcicutils-8.7.1.1b12}/dcicutils/base.py +0 -0
- {dcicutils-8.7.1.1b11 → dcicutils-8.7.1.1b12}/dcicutils/beanstalk_utils.py +0 -0
- {dcicutils-8.7.1.1b11 → dcicutils-8.7.1.1b12}/dcicutils/bundle_utils.py +0 -0
- {dcicutils-8.7.1.1b11 → dcicutils-8.7.1.1b12}/dcicutils/cloudformation_utils.py +0 -0
- {dcicutils-8.7.1.1b11 → dcicutils-8.7.1.1b12}/dcicutils/codebuild_utils.py +0 -0
- {dcicutils-8.7.1.1b11 → dcicutils-8.7.1.1b12}/dcicutils/command_utils.py +0 -0
- {dcicutils-8.7.1.1b11 → dcicutils-8.7.1.1b12}/dcicutils/common.py +0 -0
- {dcicutils-8.7.1.1b11 → dcicutils-8.7.1.1b12}/dcicutils/contribution_scripts.py +0 -0
- {dcicutils-8.7.1.1b11 → dcicutils-8.7.1.1b12}/dcicutils/contribution_utils.py +0 -0
- {dcicutils-8.7.1.1b11 → dcicutils-8.7.1.1b12}/dcicutils/creds_utils.py +0 -0
- {dcicutils-8.7.1.1b11 → dcicutils-8.7.1.1b12}/dcicutils/data_readers.py +0 -0
- {dcicutils-8.7.1.1b11 → dcicutils-8.7.1.1b12}/dcicutils/data_utils.py +0 -0
- {dcicutils-8.7.1.1b11 → dcicutils-8.7.1.1b12}/dcicutils/deployment_utils.py +0 -0
- {dcicutils-8.7.1.1b11 → dcicutils-8.7.1.1b12}/dcicutils/diff_utils.py +0 -0
- {dcicutils-8.7.1.1b11 → dcicutils-8.7.1.1b12}/dcicutils/docker_utils.py +0 -0
- {dcicutils-8.7.1.1b11 → dcicutils-8.7.1.1b12}/dcicutils/ecr_scripts.py +0 -0
- {dcicutils-8.7.1.1b11 → dcicutils-8.7.1.1b12}/dcicutils/ecr_utils.py +0 -0
- {dcicutils-8.7.1.1b11 → dcicutils-8.7.1.1b12}/dcicutils/ecs_utils.py +0 -0
- {dcicutils-8.7.1.1b11 → dcicutils-8.7.1.1b12}/dcicutils/env_base.py +0 -0
- {dcicutils-8.7.1.1b11 → dcicutils-8.7.1.1b12}/dcicutils/env_manager.py +0 -0
- {dcicutils-8.7.1.1b11 → dcicutils-8.7.1.1b12}/dcicutils/env_scripts.py +0 -0
- {dcicutils-8.7.1.1b11 → dcicutils-8.7.1.1b12}/dcicutils/env_utils.py +0 -0
- {dcicutils-8.7.1.1b11 → dcicutils-8.7.1.1b12}/dcicutils/env_utils_legacy.py +0 -0
- {dcicutils-8.7.1.1b11 → dcicutils-8.7.1.1b12}/dcicutils/es_utils.py +0 -0
- {dcicutils-8.7.1.1b11 → dcicutils-8.7.1.1b12}/dcicutils/exceptions.py +0 -0
- {dcicutils-8.7.1.1b11 → dcicutils-8.7.1.1b12}/dcicutils/ff_mocks.py +0 -0
- {dcicutils-8.7.1.1b11 → dcicutils-8.7.1.1b12}/dcicutils/ff_utils.py +0 -0
- {dcicutils-8.7.1.1b11 → dcicutils-8.7.1.1b12}/dcicutils/file_utils.py +0 -0
- {dcicutils-8.7.1.1b11 → dcicutils-8.7.1.1b12}/dcicutils/function_cache_decorator.py +0 -0
- {dcicutils-8.7.1.1b11 → dcicutils-8.7.1.1b12}/dcicutils/glacier_utils.py +0 -0
- {dcicutils-8.7.1.1b11 → dcicutils-8.7.1.1b12}/dcicutils/jh_utils.py +0 -0
- {dcicutils-8.7.1.1b11 → dcicutils-8.7.1.1b12}/dcicutils/kibana/dashboards.json +0 -0
- {dcicutils-8.7.1.1b11 → dcicutils-8.7.1.1b12}/dcicutils/kibana/readme.md +0 -0
- {dcicutils-8.7.1.1b11 → dcicutils-8.7.1.1b12}/dcicutils/lang_utils.py +0 -0
- {dcicutils-8.7.1.1b11 → dcicutils-8.7.1.1b12}/dcicutils/license_policies/c4-infrastructure.jsonc +0 -0
- {dcicutils-8.7.1.1b11 → dcicutils-8.7.1.1b12}/dcicutils/license_policies/c4-python-infrastructure.jsonc +0 -0
- {dcicutils-8.7.1.1b11 → dcicutils-8.7.1.1b12}/dcicutils/license_policies/park-lab-common-server.jsonc +0 -0
- {dcicutils-8.7.1.1b11 → dcicutils-8.7.1.1b12}/dcicutils/license_policies/park-lab-common.jsonc +0 -0
- {dcicutils-8.7.1.1b11 → dcicutils-8.7.1.1b12}/dcicutils/license_policies/park-lab-gpl-pipeline.jsonc +0 -0
- {dcicutils-8.7.1.1b11 → dcicutils-8.7.1.1b12}/dcicutils/license_policies/park-lab-pipeline.jsonc +0 -0
- {dcicutils-8.7.1.1b11 → dcicutils-8.7.1.1b12}/dcicutils/license_utils.py +0 -0
- {dcicutils-8.7.1.1b11 → dcicutils-8.7.1.1b12}/dcicutils/log_utils.py +0 -0
- {dcicutils-8.7.1.1b11 → dcicutils-8.7.1.1b12}/dcicutils/misc_utils.py +0 -0
- {dcicutils-8.7.1.1b11 → dcicutils-8.7.1.1b12}/dcicutils/obfuscation_utils.py +0 -0
- {dcicutils-8.7.1.1b11 → dcicutils-8.7.1.1b12}/dcicutils/opensearch_utils.py +0 -0
- {dcicutils-8.7.1.1b11 → dcicutils-8.7.1.1b12}/dcicutils/portal_object_utils.py +0 -0
- {dcicutils-8.7.1.1b11 → dcicutils-8.7.1.1b12}/dcicutils/portal_utils.py +0 -0
- {dcicutils-8.7.1.1b11 → dcicutils-8.7.1.1b12}/dcicutils/project_utils.py +0 -0
- {dcicutils-8.7.1.1b11 → dcicutils-8.7.1.1b12}/dcicutils/qa_checkers.py +0 -0
- {dcicutils-8.7.1.1b11 → dcicutils-8.7.1.1b12}/dcicutils/qa_utils.py +0 -0
- {dcicutils-8.7.1.1b11 → dcicutils-8.7.1.1b12}/dcicutils/redis_tools.py +0 -0
- {dcicutils-8.7.1.1b11 → dcicutils-8.7.1.1b12}/dcicutils/redis_utils.py +0 -0
- {dcicutils-8.7.1.1b11 → dcicutils-8.7.1.1b12}/dcicutils/s3_utils.py +0 -0
- {dcicutils-8.7.1.1b11 → dcicutils-8.7.1.1b12}/dcicutils/scripts/publish_to_pypi.py +0 -0
- {dcicutils-8.7.1.1b11 → dcicutils-8.7.1.1b12}/dcicutils/scripts/run_license_checker.py +0 -0
- {dcicutils-8.7.1.1b11 → dcicutils-8.7.1.1b12}/dcicutils/secrets_utils.py +0 -0
- {dcicutils-8.7.1.1b11 → dcicutils-8.7.1.1b12}/dcicutils/sheet_utils.py +0 -0
- {dcicutils-8.7.1.1b11 → dcicutils-8.7.1.1b12}/dcicutils/snapshot_utils.py +0 -0
- {dcicutils-8.7.1.1b11 → dcicutils-8.7.1.1b12}/dcicutils/ssl_certificate_utils.py +0 -0
- {dcicutils-8.7.1.1b11 → dcicutils-8.7.1.1b12}/dcicutils/task_utils.py +0 -0
- {dcicutils-8.7.1.1b11 → dcicutils-8.7.1.1b12}/dcicutils/tmpfile_utils.py +0 -0
- {dcicutils-8.7.1.1b11 → dcicutils-8.7.1.1b12}/dcicutils/trace_utils.py +0 -0
- {dcicutils-8.7.1.1b11 → dcicutils-8.7.1.1b12}/dcicutils/validation_utils.py +0 -0
- {dcicutils-8.7.1.1b11 → dcicutils-8.7.1.1b12}/dcicutils/variant_utils.py +0 -0
- {dcicutils-8.7.1.1b11 → dcicutils-8.7.1.1b12}/dcicutils/zip_utils.py +0 -0
@@ -189,9 +189,9 @@ def get_one_of_formats(schema: Dict[str, Any]) -> List[str]:
|
|
189
189
|
|
190
190
|
class Schema:
|
191
191
|
|
192
|
-
def __init__(self, schema: dict,
|
192
|
+
def __init__(self, schema: dict, type: Optional[str] = None) -> None:
|
193
193
|
self._data = schema if isinstance(schema, dict) else (schema.data if isinstance(schema, Schema) else {})
|
194
|
-
self._type = (isinstance(
|
194
|
+
self._type = (type if isinstance(type, str) else "") or Schema.type_name(self._data.get("title", ""))
|
195
195
|
|
196
196
|
@property
|
197
197
|
def data(self) -> dict:
|
@@ -16,6 +16,7 @@ from dcicutils.misc_utils import (create_dict, create_readonly_object, load_json
|
|
16
16
|
split_string, to_boolean, to_enum, to_float, to_integer, VirtualApp)
|
17
17
|
from dcicutils.portal_object_utils import PortalObject
|
18
18
|
from dcicutils.portal_utils import Portal as PortalBase
|
19
|
+
from dcicutils.schema_utils import Schema as SchemaBase
|
19
20
|
from dcicutils.zip_utils import unpack_gz_file_to_temporary_file, unpack_files
|
20
21
|
|
21
22
|
|
@@ -363,11 +364,12 @@ class _StructuredRowTemplate:
|
|
363
364
|
return structured_row_template
|
364
365
|
|
365
366
|
|
366
|
-
class Schema:
|
367
|
+
class Schema(SchemaBase):
|
367
368
|
|
368
369
|
def __init__(self, schema_json: dict, portal: Optional[Portal] = None) -> None:
|
369
|
-
|
370
|
-
|
370
|
+
super().__init__(schema_json)
|
371
|
+
# self._data = schema_json if isinstance(schema_json, dict) else {}
|
372
|
+
# self._type = Schema.type_name(schema_json.get("title", ""))
|
371
373
|
self._portal = portal # Needed only to resolve linkTo references.
|
372
374
|
self._map_value_functions = {
|
373
375
|
"boolean": self._map_function_boolean,
|
@@ -380,13 +382,13 @@ class Schema:
|
|
380
382
|
self._unresolved_refs = []
|
381
383
|
self._typeinfo = self._create_typeinfo(schema_json)
|
382
384
|
|
383
|
-
|
384
|
-
|
385
|
-
|
385
|
+
# @property
|
386
|
+
# def data(self) -> dict:
|
387
|
+
# return self._data
|
386
388
|
|
387
|
-
|
388
|
-
|
389
|
-
|
389
|
+
# @property
|
390
|
+
# def type(self) -> str:
|
391
|
+
# return self._type
|
390
392
|
|
391
393
|
@staticmethod
|
392
394
|
def load_by_name(name: str, portal: Portal) -> Optional[dict]:
|
@@ -1,6 +1,6 @@
|
|
1
1
|
[tool.poetry]
|
2
2
|
name = "dcicutils"
|
3
|
-
version = "8.7.1.
|
3
|
+
version = "8.7.1.1b12" # TODO: To become 8.7.2
|
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
|
File without changes
|
{dcicutils-8.7.1.1b11 → dcicutils-8.7.1.1b12}/dcicutils/license_policies/c4-infrastructure.jsonc
RENAMED
File without changes
|
File without changes
|
File without changes
|
{dcicutils-8.7.1.1b11 → dcicutils-8.7.1.1b12}/dcicutils/license_policies/park-lab-common.jsonc
RENAMED
File without changes
|
{dcicutils-8.7.1.1b11 → dcicutils-8.7.1.1b12}/dcicutils/license_policies/park-lab-gpl-pipeline.jsonc
RENAMED
File without changes
|
{dcicutils-8.7.1.1b11 → dcicutils-8.7.1.1b12}/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
|
File without changes
|
File without changes
|
File without changes
|