dcicutils 8.8.1.1b2__tar.gz → 8.8.1.1b4__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {dcicutils-8.8.1.1b2 → dcicutils-8.8.1.1b4}/PKG-INFO +1 -1
- {dcicutils-8.8.1.1b2 → dcicutils-8.8.1.1b4}/dcicutils/structured_data.py +6 -3
- {dcicutils-8.8.1.1b2 → dcicutils-8.8.1.1b4}/pyproject.toml +1 -1
- {dcicutils-8.8.1.1b2 → dcicutils-8.8.1.1b4}/LICENSE.txt +0 -0
- {dcicutils-8.8.1.1b2 → dcicutils-8.8.1.1b4}/README.rst +0 -0
- {dcicutils-8.8.1.1b2 → dcicutils-8.8.1.1b4}/dcicutils/__init__.py +0 -0
- {dcicutils-8.8.1.1b2 → dcicutils-8.8.1.1b4}/dcicutils/base.py +0 -0
- {dcicutils-8.8.1.1b2 → dcicutils-8.8.1.1b4}/dcicutils/beanstalk_utils.py +0 -0
- {dcicutils-8.8.1.1b2 → dcicutils-8.8.1.1b4}/dcicutils/bundle_utils.py +0 -0
- {dcicutils-8.8.1.1b2 → dcicutils-8.8.1.1b4}/dcicutils/captured_output.py +0 -0
- {dcicutils-8.8.1.1b2 → dcicutils-8.8.1.1b4}/dcicutils/cloudformation_utils.py +0 -0
- {dcicutils-8.8.1.1b2 → dcicutils-8.8.1.1b4}/dcicutils/codebuild_utils.py +0 -0
- {dcicutils-8.8.1.1b2 → dcicutils-8.8.1.1b4}/dcicutils/command_utils.py +0 -0
- {dcicutils-8.8.1.1b2 → dcicutils-8.8.1.1b4}/dcicutils/common.py +0 -0
- {dcicutils-8.8.1.1b2 → dcicutils-8.8.1.1b4}/dcicutils/contribution_scripts.py +0 -0
- {dcicutils-8.8.1.1b2 → dcicutils-8.8.1.1b4}/dcicutils/contribution_utils.py +0 -0
- {dcicutils-8.8.1.1b2 → dcicutils-8.8.1.1b4}/dcicutils/creds_utils.py +0 -0
- {dcicutils-8.8.1.1b2 → dcicutils-8.8.1.1b4}/dcicutils/data_readers.py +0 -0
- {dcicutils-8.8.1.1b2 → dcicutils-8.8.1.1b4}/dcicutils/data_utils.py +0 -0
- {dcicutils-8.8.1.1b2 → dcicutils-8.8.1.1b4}/dcicutils/datetime_utils.py +0 -0
- {dcicutils-8.8.1.1b2 → dcicutils-8.8.1.1b4}/dcicutils/deployment_utils.py +0 -0
- {dcicutils-8.8.1.1b2 → dcicutils-8.8.1.1b4}/dcicutils/diff_utils.py +0 -0
- {dcicutils-8.8.1.1b2 → dcicutils-8.8.1.1b4}/dcicutils/docker_utils.py +0 -0
- {dcicutils-8.8.1.1b2 → dcicutils-8.8.1.1b4}/dcicutils/ecr_scripts.py +0 -0
- {dcicutils-8.8.1.1b2 → dcicutils-8.8.1.1b4}/dcicutils/ecr_utils.py +0 -0
- {dcicutils-8.8.1.1b2 → dcicutils-8.8.1.1b4}/dcicutils/ecs_utils.py +0 -0
- {dcicutils-8.8.1.1b2 → dcicutils-8.8.1.1b4}/dcicutils/env_base.py +0 -0
- {dcicutils-8.8.1.1b2 → dcicutils-8.8.1.1b4}/dcicutils/env_manager.py +0 -0
- {dcicutils-8.8.1.1b2 → dcicutils-8.8.1.1b4}/dcicutils/env_scripts.py +0 -0
- {dcicutils-8.8.1.1b2 → dcicutils-8.8.1.1b4}/dcicutils/env_utils.py +0 -0
- {dcicutils-8.8.1.1b2 → dcicutils-8.8.1.1b4}/dcicutils/env_utils_legacy.py +0 -0
- {dcicutils-8.8.1.1b2 → dcicutils-8.8.1.1b4}/dcicutils/es_utils.py +0 -0
- {dcicutils-8.8.1.1b2 → dcicutils-8.8.1.1b4}/dcicutils/exceptions.py +0 -0
- {dcicutils-8.8.1.1b2 → dcicutils-8.8.1.1b4}/dcicutils/ff_mocks.py +0 -0
- {dcicutils-8.8.1.1b2 → dcicutils-8.8.1.1b4}/dcicutils/ff_utils.py +0 -0
- {dcicutils-8.8.1.1b2 → dcicutils-8.8.1.1b4}/dcicutils/file_utils.py +0 -0
- {dcicutils-8.8.1.1b2 → dcicutils-8.8.1.1b4}/dcicutils/function_cache_decorator.py +0 -0
- {dcicutils-8.8.1.1b2 → dcicutils-8.8.1.1b4}/dcicutils/glacier_utils.py +0 -0
- {dcicutils-8.8.1.1b2 → dcicutils-8.8.1.1b4}/dcicutils/jh_utils.py +0 -0
- {dcicutils-8.8.1.1b2 → dcicutils-8.8.1.1b4}/dcicutils/kibana/dashboards.json +0 -0
- {dcicutils-8.8.1.1b2 → dcicutils-8.8.1.1b4}/dcicutils/kibana/readme.md +0 -0
- {dcicutils-8.8.1.1b2 → dcicutils-8.8.1.1b4}/dcicutils/lang_utils.py +0 -0
- {dcicutils-8.8.1.1b2 → dcicutils-8.8.1.1b4}/dcicutils/license_policies/c4-infrastructure.jsonc +0 -0
- {dcicutils-8.8.1.1b2 → dcicutils-8.8.1.1b4}/dcicutils/license_policies/c4-python-infrastructure.jsonc +0 -0
- {dcicutils-8.8.1.1b2 → dcicutils-8.8.1.1b4}/dcicutils/license_policies/park-lab-common-server.jsonc +0 -0
- {dcicutils-8.8.1.1b2 → dcicutils-8.8.1.1b4}/dcicutils/license_policies/park-lab-common.jsonc +0 -0
- {dcicutils-8.8.1.1b2 → dcicutils-8.8.1.1b4}/dcicutils/license_policies/park-lab-gpl-pipeline.jsonc +0 -0
- {dcicutils-8.8.1.1b2 → dcicutils-8.8.1.1b4}/dcicutils/license_policies/park-lab-pipeline.jsonc +0 -0
- {dcicutils-8.8.1.1b2 → dcicutils-8.8.1.1b4}/dcicutils/license_utils.py +0 -0
- {dcicutils-8.8.1.1b2 → dcicutils-8.8.1.1b4}/dcicutils/log_utils.py +0 -0
- {dcicutils-8.8.1.1b2 → dcicutils-8.8.1.1b4}/dcicutils/misc_utils.py +0 -0
- {dcicutils-8.8.1.1b2 → dcicutils-8.8.1.1b4}/dcicutils/obfuscation_utils.py +0 -0
- {dcicutils-8.8.1.1b2 → dcicutils-8.8.1.1b4}/dcicutils/opensearch_utils.py +0 -0
- {dcicutils-8.8.1.1b2 → dcicutils-8.8.1.1b4}/dcicutils/portal_object_utils.py +0 -0
- {dcicutils-8.8.1.1b2 → dcicutils-8.8.1.1b4}/dcicutils/portal_utils.py +0 -0
- {dcicutils-8.8.1.1b2 → dcicutils-8.8.1.1b4}/dcicutils/project_utils.py +0 -0
- {dcicutils-8.8.1.1b2 → dcicutils-8.8.1.1b4}/dcicutils/qa_checkers.py +0 -0
- {dcicutils-8.8.1.1b2 → dcicutils-8.8.1.1b4}/dcicutils/qa_utils.py +0 -0
- {dcicutils-8.8.1.1b2 → dcicutils-8.8.1.1b4}/dcicutils/redis_tools.py +0 -0
- {dcicutils-8.8.1.1b2 → dcicutils-8.8.1.1b4}/dcicutils/redis_utils.py +0 -0
- {dcicutils-8.8.1.1b2 → dcicutils-8.8.1.1b4}/dcicutils/s3_utils.py +0 -0
- {dcicutils-8.8.1.1b2 → dcicutils-8.8.1.1b4}/dcicutils/schema_utils.py +0 -0
- {dcicutils-8.8.1.1b2 → dcicutils-8.8.1.1b4}/dcicutils/scripts/publish_to_pypi.py +0 -0
- {dcicutils-8.8.1.1b2 → dcicutils-8.8.1.1b4}/dcicutils/scripts/run_license_checker.py +0 -0
- {dcicutils-8.8.1.1b2 → dcicutils-8.8.1.1b4}/dcicutils/scripts/view_portal_object.py +0 -0
- {dcicutils-8.8.1.1b2 → dcicutils-8.8.1.1b4}/dcicutils/secrets_utils.py +0 -0
- {dcicutils-8.8.1.1b2 → dcicutils-8.8.1.1b4}/dcicutils/sheet_utils.py +0 -0
- {dcicutils-8.8.1.1b2 → dcicutils-8.8.1.1b4}/dcicutils/snapshot_utils.py +0 -0
- {dcicutils-8.8.1.1b2 → dcicutils-8.8.1.1b4}/dcicutils/ssl_certificate_utils.py +0 -0
- {dcicutils-8.8.1.1b2 → dcicutils-8.8.1.1b4}/dcicutils/task_utils.py +0 -0
- {dcicutils-8.8.1.1b2 → dcicutils-8.8.1.1b4}/dcicutils/tmpfile_utils.py +0 -0
- {dcicutils-8.8.1.1b2 → dcicutils-8.8.1.1b4}/dcicutils/trace_utils.py +0 -0
- {dcicutils-8.8.1.1b2 → dcicutils-8.8.1.1b4}/dcicutils/validation_utils.py +0 -0
- {dcicutils-8.8.1.1b2 → dcicutils-8.8.1.1b4}/dcicutils/variant_utils.py +0 -0
- {dcicutils-8.8.1.1b2 → dcicutils-8.8.1.1b4}/dcicutils/zip_utils.py +0 -0
@@ -99,7 +99,7 @@ class StructuredDataSet:
|
|
99
99
|
self._debug_sleep = float(debug_sleep)
|
100
100
|
except Exception:
|
101
101
|
self._debug_sleep = None
|
102
|
-
self.
|
102
|
+
self.load_file(file) if file else None
|
103
103
|
|
104
104
|
@property
|
105
105
|
def data(self) -> dict:
|
@@ -239,7 +239,7 @@ class StructuredDataSet:
|
|
239
239
|
progress({"finish": True})
|
240
240
|
return diffs
|
241
241
|
|
242
|
-
def
|
242
|
+
def load_file(self, file: str) -> None:
|
243
243
|
# Returns a dictionary where each property is the name (i.e. the type) of the data,
|
244
244
|
# and the value is array of dictionaries for the data itself. Handle these kinds of files:
|
245
245
|
# 1. Single CSV, TSV, or JSON file, where the (base) name of the file is the data type name.
|
@@ -252,6 +252,9 @@ class StructuredDataSet:
|
|
252
252
|
return self._load_normal_file(file)
|
253
253
|
return self._load_normal_file(file)
|
254
254
|
|
255
|
+
def _load_file(self, file: str) -> None:
|
256
|
+
return self.load_file(file)
|
257
|
+
|
255
258
|
def _load_normal_file(self, file: str) -> None:
|
256
259
|
if file.endswith(".csv") or file.endswith(".tsv"):
|
257
260
|
self._load_csv_file(file)
|
@@ -264,7 +267,7 @@ class StructuredDataSet:
|
|
264
267
|
|
265
268
|
def _load_packed_file(self, file: str) -> None:
|
266
269
|
for file in unpack_files(file, suffixes=ACCEPTABLE_FILE_SUFFIXES):
|
267
|
-
self.
|
270
|
+
self.load_file(file)
|
268
271
|
|
269
272
|
def _load_csv_file(self, file: str) -> None:
|
270
273
|
self._load_reader(CsvReader(file), type_name=Schema.type_name(file))
|
@@ -1,6 +1,6 @@
|
|
1
1
|
[tool.poetry]
|
2
2
|
name = "dcicutils"
|
3
|
-
version = "8.8.1.
|
3
|
+
version = "8.8.1.1b4" # TODO: To become 8.8.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
|
File without changes
|
File without changes
|
{dcicutils-8.8.1.1b2 → dcicutils-8.8.1.1b4}/dcicutils/license_policies/c4-infrastructure.jsonc
RENAMED
File without changes
|
File without changes
|
{dcicutils-8.8.1.1b2 → dcicutils-8.8.1.1b4}/dcicutils/license_policies/park-lab-common-server.jsonc
RENAMED
File without changes
|
{dcicutils-8.8.1.1b2 → dcicutils-8.8.1.1b4}/dcicutils/license_policies/park-lab-common.jsonc
RENAMED
File without changes
|
{dcicutils-8.8.1.1b2 → dcicutils-8.8.1.1b4}/dcicutils/license_policies/park-lab-gpl-pipeline.jsonc
RENAMED
File without changes
|
{dcicutils-8.8.1.1b2 → dcicutils-8.8.1.1b4}/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
|