dcicutils 8.8.6.1b12__tar.gz → 8.8.6.1b13__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {dcicutils-8.8.6.1b12 → dcicutils-8.8.6.1b13}/PKG-INFO +1 -1
- {dcicutils-8.8.6.1b12 → dcicutils-8.8.6.1b13}/dcicutils/structured_data.py +8 -15
- {dcicutils-8.8.6.1b12 → dcicutils-8.8.6.1b13}/pyproject.toml +1 -1
- {dcicutils-8.8.6.1b12 → dcicutils-8.8.6.1b13}/LICENSE.txt +0 -0
- {dcicutils-8.8.6.1b12 → dcicutils-8.8.6.1b13}/README.rst +0 -0
- {dcicutils-8.8.6.1b12 → dcicutils-8.8.6.1b13}/dcicutils/__init__.py +0 -0
- {dcicutils-8.8.6.1b12 → dcicutils-8.8.6.1b13}/dcicutils/base.py +0 -0
- {dcicutils-8.8.6.1b12 → dcicutils-8.8.6.1b13}/dcicutils/beanstalk_utils.py +0 -0
- {dcicutils-8.8.6.1b12 → dcicutils-8.8.6.1b13}/dcicutils/bundle_utils.py +0 -0
- {dcicutils-8.8.6.1b12 → dcicutils-8.8.6.1b13}/dcicutils/captured_output.py +0 -0
- {dcicutils-8.8.6.1b12 → dcicutils-8.8.6.1b13}/dcicutils/cloudformation_utils.py +0 -0
- {dcicutils-8.8.6.1b12 → dcicutils-8.8.6.1b13}/dcicutils/codebuild_utils.py +0 -0
- {dcicutils-8.8.6.1b12 → dcicutils-8.8.6.1b13}/dcicutils/command_utils.py +0 -0
- {dcicutils-8.8.6.1b12 → dcicutils-8.8.6.1b13}/dcicutils/common.py +0 -0
- {dcicutils-8.8.6.1b12 → dcicutils-8.8.6.1b13}/dcicutils/contribution_scripts.py +0 -0
- {dcicutils-8.8.6.1b12 → dcicutils-8.8.6.1b13}/dcicutils/contribution_utils.py +0 -0
- {dcicutils-8.8.6.1b12 → dcicutils-8.8.6.1b13}/dcicutils/creds_utils.py +0 -0
- {dcicutils-8.8.6.1b12 → dcicutils-8.8.6.1b13}/dcicutils/data_readers.py +0 -0
- {dcicutils-8.8.6.1b12 → dcicutils-8.8.6.1b13}/dcicutils/data_utils.py +0 -0
- {dcicutils-8.8.6.1b12 → dcicutils-8.8.6.1b13}/dcicutils/datetime_utils.py +0 -0
- {dcicutils-8.8.6.1b12 → dcicutils-8.8.6.1b13}/dcicutils/deployment_utils.py +0 -0
- {dcicutils-8.8.6.1b12 → dcicutils-8.8.6.1b13}/dcicutils/diff_utils.py +0 -0
- {dcicutils-8.8.6.1b12 → dcicutils-8.8.6.1b13}/dcicutils/docker_utils.py +0 -0
- {dcicutils-8.8.6.1b12 → dcicutils-8.8.6.1b13}/dcicutils/ecr_scripts.py +0 -0
- {dcicutils-8.8.6.1b12 → dcicutils-8.8.6.1b13}/dcicutils/ecr_utils.py +0 -0
- {dcicutils-8.8.6.1b12 → dcicutils-8.8.6.1b13}/dcicutils/ecs_utils.py +0 -0
- {dcicutils-8.8.6.1b12 → dcicutils-8.8.6.1b13}/dcicutils/env_base.py +0 -0
- {dcicutils-8.8.6.1b12 → dcicutils-8.8.6.1b13}/dcicutils/env_manager.py +0 -0
- {dcicutils-8.8.6.1b12 → dcicutils-8.8.6.1b13}/dcicutils/env_scripts.py +0 -0
- {dcicutils-8.8.6.1b12 → dcicutils-8.8.6.1b13}/dcicutils/env_utils.py +0 -0
- {dcicutils-8.8.6.1b12 → dcicutils-8.8.6.1b13}/dcicutils/env_utils_legacy.py +0 -0
- {dcicutils-8.8.6.1b12 → dcicutils-8.8.6.1b13}/dcicutils/es_utils.py +0 -0
- {dcicutils-8.8.6.1b12 → dcicutils-8.8.6.1b13}/dcicutils/exceptions.py +0 -0
- {dcicutils-8.8.6.1b12 → dcicutils-8.8.6.1b13}/dcicutils/ff_mocks.py +0 -0
- {dcicutils-8.8.6.1b12 → dcicutils-8.8.6.1b13}/dcicutils/ff_utils.py +0 -0
- {dcicutils-8.8.6.1b12 → dcicutils-8.8.6.1b13}/dcicutils/file_utils.py +0 -0
- {dcicutils-8.8.6.1b12 → dcicutils-8.8.6.1b13}/dcicutils/function_cache_decorator.py +0 -0
- {dcicutils-8.8.6.1b12 → dcicutils-8.8.6.1b13}/dcicutils/glacier_utils.py +0 -0
- {dcicutils-8.8.6.1b12 → dcicutils-8.8.6.1b13}/dcicutils/http_utils.py +0 -0
- {dcicutils-8.8.6.1b12 → dcicutils-8.8.6.1b13}/dcicutils/jh_utils.py +0 -0
- {dcicutils-8.8.6.1b12 → dcicutils-8.8.6.1b13}/dcicutils/kibana/dashboards.json +0 -0
- {dcicutils-8.8.6.1b12 → dcicutils-8.8.6.1b13}/dcicutils/kibana/readme.md +0 -0
- {dcicutils-8.8.6.1b12 → dcicutils-8.8.6.1b13}/dcicutils/lang_utils.py +0 -0
- {dcicutils-8.8.6.1b12 → dcicutils-8.8.6.1b13}/dcicutils/license_policies/c4-infrastructure.jsonc +0 -0
- {dcicutils-8.8.6.1b12 → dcicutils-8.8.6.1b13}/dcicutils/license_policies/c4-python-infrastructure.jsonc +0 -0
- {dcicutils-8.8.6.1b12 → dcicutils-8.8.6.1b13}/dcicutils/license_policies/park-lab-common-server.jsonc +0 -0
- {dcicutils-8.8.6.1b12 → dcicutils-8.8.6.1b13}/dcicutils/license_policies/park-lab-common.jsonc +0 -0
- {dcicutils-8.8.6.1b12 → dcicutils-8.8.6.1b13}/dcicutils/license_policies/park-lab-gpl-pipeline.jsonc +0 -0
- {dcicutils-8.8.6.1b12 → dcicutils-8.8.6.1b13}/dcicutils/license_policies/park-lab-pipeline.jsonc +0 -0
- {dcicutils-8.8.6.1b12 → dcicutils-8.8.6.1b13}/dcicutils/license_utils.py +0 -0
- {dcicutils-8.8.6.1b12 → dcicutils-8.8.6.1b13}/dcicutils/log_utils.py +0 -0
- {dcicutils-8.8.6.1b12 → dcicutils-8.8.6.1b13}/dcicutils/misc_utils.py +0 -0
- {dcicutils-8.8.6.1b12 → dcicutils-8.8.6.1b13}/dcicutils/obfuscation_utils.py +0 -0
- {dcicutils-8.8.6.1b12 → dcicutils-8.8.6.1b13}/dcicutils/opensearch_utils.py +0 -0
- {dcicutils-8.8.6.1b12 → dcicutils-8.8.6.1b13}/dcicutils/portal_object_utils.py +0 -0
- {dcicutils-8.8.6.1b12 → dcicutils-8.8.6.1b13}/dcicutils/portal_utils.py +0 -0
- {dcicutils-8.8.6.1b12 → dcicutils-8.8.6.1b13}/dcicutils/progress_bar.py +0 -0
- {dcicutils-8.8.6.1b12 → dcicutils-8.8.6.1b13}/dcicutils/project_utils.py +0 -0
- {dcicutils-8.8.6.1b12 → dcicutils-8.8.6.1b13}/dcicutils/qa_checkers.py +0 -0
- {dcicutils-8.8.6.1b12 → dcicutils-8.8.6.1b13}/dcicutils/qa_utils.py +0 -0
- {dcicutils-8.8.6.1b12 → dcicutils-8.8.6.1b13}/dcicutils/redis_tools.py +0 -0
- {dcicutils-8.8.6.1b12 → dcicutils-8.8.6.1b13}/dcicutils/redis_utils.py +0 -0
- {dcicutils-8.8.6.1b12 → dcicutils-8.8.6.1b13}/dcicutils/s3_utils.py +0 -0
- {dcicutils-8.8.6.1b12 → dcicutils-8.8.6.1b13}/dcicutils/schema_utils.py +0 -0
- {dcicutils-8.8.6.1b12 → dcicutils-8.8.6.1b13}/dcicutils/scripts/publish_to_pypi.py +0 -0
- {dcicutils-8.8.6.1b12 → dcicutils-8.8.6.1b13}/dcicutils/scripts/run_license_checker.py +0 -0
- {dcicutils-8.8.6.1b12 → dcicutils-8.8.6.1b13}/dcicutils/scripts/view_portal_object.py +0 -0
- {dcicutils-8.8.6.1b12 → dcicutils-8.8.6.1b13}/dcicutils/secrets_utils.py +0 -0
- {dcicutils-8.8.6.1b12 → dcicutils-8.8.6.1b13}/dcicutils/sheet_utils.py +0 -0
- {dcicutils-8.8.6.1b12 → dcicutils-8.8.6.1b13}/dcicutils/snapshot_utils.py +0 -0
- {dcicutils-8.8.6.1b12 → dcicutils-8.8.6.1b13}/dcicutils/ssl_certificate_utils.py +0 -0
- {dcicutils-8.8.6.1b12 → dcicutils-8.8.6.1b13}/dcicutils/submitr/progress_constants.py +0 -0
- {dcicutils-8.8.6.1b12 → dcicutils-8.8.6.1b13}/dcicutils/submitr/ref_lookup_strategy.py +0 -0
- {dcicutils-8.8.6.1b12 → dcicutils-8.8.6.1b13}/dcicutils/task_utils.py +0 -0
- {dcicutils-8.8.6.1b12 → dcicutils-8.8.6.1b13}/dcicutils/tmpfile_utils.py +0 -0
- {dcicutils-8.8.6.1b12 → dcicutils-8.8.6.1b13}/dcicutils/trace_utils.py +0 -0
- {dcicutils-8.8.6.1b12 → dcicutils-8.8.6.1b13}/dcicutils/validation_utils.py +0 -0
- {dcicutils-8.8.6.1b12 → dcicutils-8.8.6.1b13}/dcicutils/variant_utils.py +0 -0
- {dcicutils-8.8.6.1b12 → dcicutils-8.8.6.1b13}/dcicutils/zip_utils.py +0 -0
@@ -11,7 +11,6 @@ from webtest.app import TestApp
|
|
11
11
|
from dcicutils.common import OrchestratedApp
|
12
12
|
from dcicutils.data_readers import CsvReader, Excel, RowReader
|
13
13
|
from dcicutils.datetime_utils import normalize_date_string, normalize_datetime_string
|
14
|
-
from dcicutils.file_utils import search_for_file
|
15
14
|
from dcicutils.misc_utils import (create_dict, create_readonly_object, is_uuid, load_json_if,
|
16
15
|
merge_objects, remove_empty_properties, right_trim, split_string,
|
17
16
|
to_boolean, to_enum, to_float, to_integer, VirtualApp)
|
@@ -209,14 +208,6 @@ class StructuredDataSet:
|
|
209
208
|
result.append({"type": type_name, "file": file_name})
|
210
209
|
return result
|
211
210
|
|
212
|
-
def upload_files_located(self,
|
213
|
-
location: Union[str, Optional[List[str]]] = None, recursive: bool = False) -> List[str]:
|
214
|
-
upload_files = copy.deepcopy(self.upload_files)
|
215
|
-
for upload_file in upload_files:
|
216
|
-
if file_path := search_for_file(upload_file["file"], location, recursive=recursive, single=True):
|
217
|
-
upload_file["path"] = file_path
|
218
|
-
return upload_files
|
219
|
-
|
220
211
|
@property
|
221
212
|
def nrows(self) -> int:
|
222
213
|
return self._nrows
|
@@ -351,20 +342,22 @@ class StructuredDataSet:
|
|
351
342
|
|
352
343
|
def _load_json_file(self, file: str) -> None:
|
353
344
|
with open(file) as f:
|
354
|
-
|
345
|
+
data = json.load(f)
|
346
|
+
import pdb ; pdb.set_trace() # noqa
|
347
|
+
pass
|
355
348
|
if ((schema_name_inferred_from_file_name := Schema.type_name(file)) and
|
356
349
|
(self._portal.get_schema(schema_name_inferred_from_file_name) is not None)): # noqa
|
357
350
|
# If the JSON file name looks like a schema name then assume it
|
358
351
|
# contains an object or an array of object of that schema type.
|
359
352
|
if self._merge:
|
360
|
-
|
361
|
-
self._add(Schema.type_name(file),
|
362
|
-
elif isinstance(
|
353
|
+
data = self._merge_with_existing_portal_object(data, schema_name_inferred_from_file_name)
|
354
|
+
self._add(Schema.type_name(file), data)
|
355
|
+
elif isinstance(data, dict):
|
363
356
|
# Otherwise if the JSON file name does not look like a schema name then
|
364
357
|
# assume it a dictionary where each property is the name of a schema, and
|
365
358
|
# which (each property) contains a list of object of that schema type.
|
366
|
-
for schema_name in
|
367
|
-
item =
|
359
|
+
for schema_name in data:
|
360
|
+
item = data[schema_name]
|
368
361
|
if self._merge:
|
369
362
|
item = self._merge_with_existing_portal_object(item, schema_name)
|
370
363
|
self._add(schema_name, item)
|
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
|
{dcicutils-8.8.6.1b12 → dcicutils-8.8.6.1b13}/dcicutils/license_policies/c4-infrastructure.jsonc
RENAMED
File without changes
|
File without changes
|
File without changes
|
{dcicutils-8.8.6.1b12 → dcicutils-8.8.6.1b13}/dcicutils/license_policies/park-lab-common.jsonc
RENAMED
File without changes
|
{dcicutils-8.8.6.1b12 → dcicutils-8.8.6.1b13}/dcicutils/license_policies/park-lab-gpl-pipeline.jsonc
RENAMED
File without changes
|
{dcicutils-8.8.6.1b12 → dcicutils-8.8.6.1b13}/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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|