dcicutils 8.14.0.1b24__py3-none-any.whl → 8.14.0.1b26__py3-none-any.whl

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.
@@ -534,7 +534,7 @@ def _load_data(portal: Portal, load: str, ini_file: str, explicit_schema_name: O
534
534
  if isinstance(data, list):
535
535
  if not (schema_name := explicit_schema_name):
536
536
  if not (schema_name := _get_schema_name_from_schema_named_json_file_name(portal, inserts_file)):
537
- _print("Unable to determine schema name for JSON data file: {inserts_file}")
537
+ _print(f"Unable to determine schema name for JSON data file: {inserts_file}")
538
538
  return False
539
539
  elif not (schema_name := _get_schema(portal, explicit_schema_name)[1]):
540
540
  _print(f"Unknown specified schema name: {explicit_schema_name}")
@@ -707,9 +707,10 @@ def _create_portal(env: Optional[str] = None, ini: Optional[str] = None, app: Op
707
707
  if (not load) and (app == APP_SMAHT) and (env := os.environ.get(_SMAHT_ENV_ENVIRON_NAME)):
708
708
  env_from_environ = True
709
709
  if not env:
710
- if os.path.exists(ini_file := os.path.normpath(os.path.join(os.getcwd(), _DEFAULT_INI_FILE_FOR_LOAD))):
711
- return _create_portal(ini=ini_file, app=app, verbose=verbose, debug=debug)
712
- return None
710
+ if not os.path.exists(ini_file := os.path.normpath(os.path.join(os.getcwd(), _DEFAULT_INI_FILE_FOR_LOAD))):
711
+ _print("Must specify --ini or --env option in order to create a Portal object.")
712
+ return None
713
+ return _create_portal(ini=ini_file, app=app, verbose=verbose, debug=debug)
713
714
  if not (portal := Portal(env, app=app) if env or app else None):
714
715
  _print(f"Cannot create access-key based Portal object: {env}{f' ({app})' if app else ''}")
715
716
  return None
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dcicutils
3
- Version: 8.14.0.1b24
3
+ Version: 8.14.0.1b26
4
4
  Summary: Utility package for interacting with the 4DN Data Portal and other 4DN resources
5
5
  Home-page: https://github.com/4dn-dcic/utils
6
6
  License: MIT
@@ -60,7 +60,7 @@ dcicutils/s3_utils.py,sha256=h2B9ftOo-kxqfiKth5ZDC_cAUFy1Pbu7BrVanFnE5Iw,28839
60
60
  dcicutils/schema_utils.py,sha256=GmRm-XqZKJ6qine16SQF1txcby9WougDav_sYmKNs9E,12400
61
61
  dcicutils/scripts/publish_to_pypi.py,sha256=sMd4WASQGlxlh7uLrt2eGkFRXYgONVmvIg8mClMS5RQ,13903
62
62
  dcicutils/scripts/run_license_checker.py,sha256=z2keYnRDZsHQbTeo1XORAXSXNJK5axVzL5LjiNqZ7jE,4184
63
- dcicutils/scripts/update_portal_object.py,sha256=pRTzbfT4Ul64KwlBJa6cqfNRDIqPh2Uyi9BmXeAjoeU,40135
63
+ dcicutils/scripts/update_portal_object.py,sha256=I7658tq1gQqMRf_iuF51VXwhLZF5Usd6alUazzmCHAA,40237
64
64
  dcicutils/scripts/view_portal_object.py,sha256=vsJzS985JFEW6-xOe_ExkuE4Dk21G6d8xfC9RBUNwUg,38655
65
65
  dcicutils/secrets_utils.py,sha256=8dppXAsiHhJzI6NmOcvJV5ldvKkQZzh3Fl-cb8Wm7MI,19745
66
66
  dcicutils/sheet_utils.py,sha256=VlmzteONW5VF_Q4vo0yA5vesz1ViUah1MZ_yA1rwZ0M,33629
@@ -75,8 +75,8 @@ dcicutils/trace_utils.py,sha256=g8kwV4ebEy5kXW6oOrEAUsurBcCROvwtZqz9fczsGRE,1769
75
75
  dcicutils/validation_utils.py,sha256=cMZIU2cY98FYtzK52z5WUYck7urH6JcqOuz9jkXpqzg,14797
76
76
  dcicutils/variant_utils.py,sha256=2H9azNx3xAj-MySg-uZ2SFqbWs4kZvf61JnK6b-h4Qw,4343
77
77
  dcicutils/zip_utils.py,sha256=_Y9EmL3D2dUZhxucxHvrtmmlbZmK4FpSsHEb7rGSJLU,3265
78
- dcicutils-8.14.0.1b24.dist-info/LICENSE.txt,sha256=qnwSmfnEWMl5l78VPDEzAmEbLVrRqQvfUQiHT0ehrOo,1102
79
- dcicutils-8.14.0.1b24.dist-info/METADATA,sha256=--NOgMq_sOYeaWu5pPyGNBnAw9tBJfOAg4nmveNRZxY,3440
80
- dcicutils-8.14.0.1b24.dist-info/WHEEL,sha256=7Z8_27uaHI_UZAc4Uox4PpBhQ9Y5_modZXWMxtUi4NU,88
81
- dcicutils-8.14.0.1b24.dist-info/entry_points.txt,sha256=W6kEWdUJk9tQ4myAgpehPdebcwvCAZ7UgB-wyPgDUMg,335
82
- dcicutils-8.14.0.1b24.dist-info/RECORD,,
78
+ dcicutils-8.14.0.1b26.dist-info/LICENSE.txt,sha256=qnwSmfnEWMl5l78VPDEzAmEbLVrRqQvfUQiHT0ehrOo,1102
79
+ dcicutils-8.14.0.1b26.dist-info/METADATA,sha256=SUWggoccgWGfOmng7IAUTPtQxioG626BNeEYNkWHcoU,3440
80
+ dcicutils-8.14.0.1b26.dist-info/WHEEL,sha256=7Z8_27uaHI_UZAc4Uox4PpBhQ9Y5_modZXWMxtUi4NU,88
81
+ dcicutils-8.14.0.1b26.dist-info/entry_points.txt,sha256=W6kEWdUJk9tQ4myAgpehPdebcwvCAZ7UgB-wyPgDUMg,335
82
+ dcicutils-8.14.0.1b26.dist-info/RECORD,,