dcicutils 8.8.3.1b18__tar.gz → 8.8.3.1b20__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {dcicutils-8.8.3.1b18 → dcicutils-8.8.3.1b20}/PKG-INFO +1 -1
- {dcicutils-8.8.3.1b18 → dcicutils-8.8.3.1b20}/dcicutils/datetime_utils.py +10 -7
- {dcicutils-8.8.3.1b18 → dcicutils-8.8.3.1b20}/dcicutils/progress_bar.py +1 -1
- {dcicutils-8.8.3.1b18 → dcicutils-8.8.3.1b20}/pyproject.toml +1 -1
- {dcicutils-8.8.3.1b18 → dcicutils-8.8.3.1b20}/LICENSE.txt +0 -0
- {dcicutils-8.8.3.1b18 → dcicutils-8.8.3.1b20}/README.rst +0 -0
- {dcicutils-8.8.3.1b18 → dcicutils-8.8.3.1b20}/dcicutils/__init__.py +0 -0
- {dcicutils-8.8.3.1b18 → dcicutils-8.8.3.1b20}/dcicutils/base.py +0 -0
- {dcicutils-8.8.3.1b18 → dcicutils-8.8.3.1b20}/dcicutils/beanstalk_utils.py +0 -0
- {dcicutils-8.8.3.1b18 → dcicutils-8.8.3.1b20}/dcicutils/bundle_utils.py +0 -0
- {dcicutils-8.8.3.1b18 → dcicutils-8.8.3.1b20}/dcicutils/captured_output.py +0 -0
- {dcicutils-8.8.3.1b18 → dcicutils-8.8.3.1b20}/dcicutils/cloudformation_utils.py +0 -0
- {dcicutils-8.8.3.1b18 → dcicutils-8.8.3.1b20}/dcicutils/codebuild_utils.py +0 -0
- {dcicutils-8.8.3.1b18 → dcicutils-8.8.3.1b20}/dcicutils/command_utils.py +0 -0
- {dcicutils-8.8.3.1b18 → dcicutils-8.8.3.1b20}/dcicutils/common.py +0 -0
- {dcicutils-8.8.3.1b18 → dcicutils-8.8.3.1b20}/dcicutils/contribution_scripts.py +0 -0
- {dcicutils-8.8.3.1b18 → dcicutils-8.8.3.1b20}/dcicutils/contribution_utils.py +0 -0
- {dcicutils-8.8.3.1b18 → dcicutils-8.8.3.1b20}/dcicutils/creds_utils.py +0 -0
- {dcicutils-8.8.3.1b18 → dcicutils-8.8.3.1b20}/dcicutils/data_readers.py +0 -0
- {dcicutils-8.8.3.1b18 → dcicutils-8.8.3.1b20}/dcicutils/data_utils.py +0 -0
- {dcicutils-8.8.3.1b18 → dcicutils-8.8.3.1b20}/dcicutils/deployment_utils.py +0 -0
- {dcicutils-8.8.3.1b18 → dcicutils-8.8.3.1b20}/dcicutils/diff_utils.py +0 -0
- {dcicutils-8.8.3.1b18 → dcicutils-8.8.3.1b20}/dcicutils/docker_utils.py +0 -0
- {dcicutils-8.8.3.1b18 → dcicutils-8.8.3.1b20}/dcicutils/ecr_scripts.py +0 -0
- {dcicutils-8.8.3.1b18 → dcicutils-8.8.3.1b20}/dcicutils/ecr_utils.py +0 -0
- {dcicutils-8.8.3.1b18 → dcicutils-8.8.3.1b20}/dcicutils/ecs_utils.py +0 -0
- {dcicutils-8.8.3.1b18 → dcicutils-8.8.3.1b20}/dcicutils/env_base.py +0 -0
- {dcicutils-8.8.3.1b18 → dcicutils-8.8.3.1b20}/dcicutils/env_manager.py +0 -0
- {dcicutils-8.8.3.1b18 → dcicutils-8.8.3.1b20}/dcicutils/env_scripts.py +0 -0
- {dcicutils-8.8.3.1b18 → dcicutils-8.8.3.1b20}/dcicutils/env_utils.py +0 -0
- {dcicutils-8.8.3.1b18 → dcicutils-8.8.3.1b20}/dcicutils/env_utils_legacy.py +0 -0
- {dcicutils-8.8.3.1b18 → dcicutils-8.8.3.1b20}/dcicutils/es_utils.py +0 -0
- {dcicutils-8.8.3.1b18 → dcicutils-8.8.3.1b20}/dcicutils/exceptions.py +0 -0
- {dcicutils-8.8.3.1b18 → dcicutils-8.8.3.1b20}/dcicutils/ff_mocks.py +0 -0
- {dcicutils-8.8.3.1b18 → dcicutils-8.8.3.1b20}/dcicutils/ff_utils.py +0 -0
- {dcicutils-8.8.3.1b18 → dcicutils-8.8.3.1b20}/dcicutils/file_utils.py +0 -0
- {dcicutils-8.8.3.1b18 → dcicutils-8.8.3.1b20}/dcicutils/function_cache_decorator.py +0 -0
- {dcicutils-8.8.3.1b18 → dcicutils-8.8.3.1b20}/dcicutils/glacier_utils.py +0 -0
- {dcicutils-8.8.3.1b18 → dcicutils-8.8.3.1b20}/dcicutils/jh_utils.py +0 -0
- {dcicutils-8.8.3.1b18 → dcicutils-8.8.3.1b20}/dcicutils/kibana/dashboards.json +0 -0
- {dcicutils-8.8.3.1b18 → dcicutils-8.8.3.1b20}/dcicutils/kibana/readme.md +0 -0
- {dcicutils-8.8.3.1b18 → dcicutils-8.8.3.1b20}/dcicutils/lang_utils.py +0 -0
- {dcicutils-8.8.3.1b18 → dcicutils-8.8.3.1b20}/dcicutils/license_policies/c4-infrastructure.jsonc +0 -0
- {dcicutils-8.8.3.1b18 → dcicutils-8.8.3.1b20}/dcicutils/license_policies/c4-python-infrastructure.jsonc +0 -0
- {dcicutils-8.8.3.1b18 → dcicutils-8.8.3.1b20}/dcicutils/license_policies/park-lab-common-server.jsonc +0 -0
- {dcicutils-8.8.3.1b18 → dcicutils-8.8.3.1b20}/dcicutils/license_policies/park-lab-common.jsonc +0 -0
- {dcicutils-8.8.3.1b18 → dcicutils-8.8.3.1b20}/dcicutils/license_policies/park-lab-gpl-pipeline.jsonc +0 -0
- {dcicutils-8.8.3.1b18 → dcicutils-8.8.3.1b20}/dcicutils/license_policies/park-lab-pipeline.jsonc +0 -0
- {dcicutils-8.8.3.1b18 → dcicutils-8.8.3.1b20}/dcicutils/license_utils.py +0 -0
- {dcicutils-8.8.3.1b18 → dcicutils-8.8.3.1b20}/dcicutils/log_utils.py +0 -0
- {dcicutils-8.8.3.1b18 → dcicutils-8.8.3.1b20}/dcicutils/misc_utils.py +0 -0
- {dcicutils-8.8.3.1b18 → dcicutils-8.8.3.1b20}/dcicutils/obfuscation_utils.py +0 -0
- {dcicutils-8.8.3.1b18 → dcicutils-8.8.3.1b20}/dcicutils/opensearch_utils.py +0 -0
- {dcicutils-8.8.3.1b18 → dcicutils-8.8.3.1b20}/dcicutils/portal_object_utils.py +0 -0
- {dcicutils-8.8.3.1b18 → dcicutils-8.8.3.1b20}/dcicutils/portal_utils.py +0 -0
- {dcicutils-8.8.3.1b18 → dcicutils-8.8.3.1b20}/dcicutils/project_utils.py +0 -0
- {dcicutils-8.8.3.1b18 → dcicutils-8.8.3.1b20}/dcicutils/qa_checkers.py +0 -0
- {dcicutils-8.8.3.1b18 → dcicutils-8.8.3.1b20}/dcicutils/qa_utils.py +0 -0
- {dcicutils-8.8.3.1b18 → dcicutils-8.8.3.1b20}/dcicutils/redis_tools.py +0 -0
- {dcicutils-8.8.3.1b18 → dcicutils-8.8.3.1b20}/dcicutils/redis_utils.py +0 -0
- {dcicutils-8.8.3.1b18 → dcicutils-8.8.3.1b20}/dcicutils/s3_utils.py +0 -0
- {dcicutils-8.8.3.1b18 → dcicutils-8.8.3.1b20}/dcicutils/schema_utils.py +0 -0
- {dcicutils-8.8.3.1b18 → dcicutils-8.8.3.1b20}/dcicutils/scripts/publish_to_pypi.py +0 -0
- {dcicutils-8.8.3.1b18 → dcicutils-8.8.3.1b20}/dcicutils/scripts/run_license_checker.py +0 -0
- {dcicutils-8.8.3.1b18 → dcicutils-8.8.3.1b20}/dcicutils/scripts/view_portal_object.py +0 -0
- {dcicutils-8.8.3.1b18 → dcicutils-8.8.3.1b20}/dcicutils/secrets_utils.py +0 -0
- {dcicutils-8.8.3.1b18 → dcicutils-8.8.3.1b20}/dcicutils/sheet_utils.py +0 -0
- {dcicutils-8.8.3.1b18 → dcicutils-8.8.3.1b20}/dcicutils/snapshot_utils.py +0 -0
- {dcicutils-8.8.3.1b18 → dcicutils-8.8.3.1b20}/dcicutils/ssl_certificate_utils.py +0 -0
- {dcicutils-8.8.3.1b18 → dcicutils-8.8.3.1b20}/dcicutils/structured_data.py +0 -0
- {dcicutils-8.8.3.1b18 → dcicutils-8.8.3.1b20}/dcicutils/submitr/progress_constants.py +0 -0
- {dcicutils-8.8.3.1b18 → dcicutils-8.8.3.1b20}/dcicutils/submitr/ref_lookup_strategy.py +0 -0
- {dcicutils-8.8.3.1b18 → dcicutils-8.8.3.1b20}/dcicutils/task_utils.py +0 -0
- {dcicutils-8.8.3.1b18 → dcicutils-8.8.3.1b20}/dcicutils/tmpfile_utils.py +0 -0
- {dcicutils-8.8.3.1b18 → dcicutils-8.8.3.1b20}/dcicutils/trace_utils.py +0 -0
- {dcicutils-8.8.3.1b18 → dcicutils-8.8.3.1b20}/dcicutils/validation_utils.py +0 -0
- {dcicutils-8.8.3.1b18 → dcicutils-8.8.3.1b20}/dcicutils/variant_utils.py +0 -0
- {dcicutils-8.8.3.1b18 → dcicutils-8.8.3.1b20}/dcicutils/zip_utils.py +0 -0
@@ -235,8 +235,8 @@ def format_datetime(value: datetime,
|
|
235
235
|
return value.strftime(f"%Y-%m-%d")
|
236
236
|
else:
|
237
237
|
return value.strftime(f"%Y-%m-%dT%H:%M")
|
238
|
-
tz
|
239
|
-
|
238
|
+
if len(tz := value.strftime("%z")) > 3:
|
239
|
+
tz = tz[:3] + ":" + tz[3:]
|
240
240
|
if nodate is True:
|
241
241
|
return value.strftime(f"%H:%M") + tz
|
242
242
|
elif notime is True:
|
@@ -244,7 +244,11 @@ def format_datetime(value: datetime,
|
|
244
244
|
else:
|
245
245
|
return value.strftime(f"%Y-%m-%dT%H:%M") + tz
|
246
246
|
if nodate is True:
|
247
|
-
|
247
|
+
if (not (notz is True)) and len(tz := value.strftime("%z")) > 3:
|
248
|
+
tz = tz[:3] + ":" + tz[3:]
|
249
|
+
else:
|
250
|
+
tz = ""
|
251
|
+
return value.strftime(f"%H:%M:%S{f'.%f' if ms is True else ''}") + tz
|
248
252
|
elif notime is True:
|
249
253
|
return value.strftime(f"%Y-%m-%d")
|
250
254
|
else:
|
@@ -278,21 +282,20 @@ def format_datetime(value: datetime,
|
|
278
282
|
|
279
283
|
def format_date(value: datetime,
|
280
284
|
utc: bool = False,
|
281
|
-
iso: bool = False,
|
282
285
|
tz: Optional[Union[timezone, bool]] = None,
|
283
286
|
verbose: bool = False,
|
284
287
|
noday: bool = False) -> str:
|
285
|
-
return format_datetime(value, utc=utc,
|
288
|
+
return format_datetime(value, utc=utc, tz=tz, verbose=verbose, noday=noday, notime=True)
|
286
289
|
|
287
290
|
|
288
291
|
def format_time(value: datetime,
|
289
292
|
utc: bool = False,
|
290
293
|
iso: bool = False,
|
291
|
-
ms: bool = False,
|
292
294
|
tz: Optional[Union[timezone, bool]] = None,
|
295
|
+
ms: bool = False,
|
293
296
|
notz: bool = False,
|
294
297
|
noseconds: bool = False,
|
295
298
|
verbose: bool = False,
|
296
299
|
noday: bool = False) -> str:
|
297
|
-
return format_datetime(value, utc=utc, iso=iso, ms=ms,
|
300
|
+
return format_datetime(value, utc=utc, tz=tz, iso=iso, ms=ms, notz=notz,
|
298
301
|
noseconds=noseconds, verbose=verbose, nodate=True)
|
@@ -298,7 +298,7 @@ class ProgressBar:
|
|
298
298
|
spinc = spina[spini % spinn] if not ("100%|" in text) else "✓" ; spini += 1 # noqa
|
299
299
|
text = replace_first(text, sentinel_internal, f" {spinc}")
|
300
300
|
text = replace_first(text, "%|", "% ◀|")
|
301
|
-
text = remove_extra_trailing_spaces(text)
|
301
|
+
text = remove_extra_trailing_spaces(text) + f"{spinc} "
|
302
302
|
# Another oddity: for the rate sometimes tqdm intermittently prints
|
303
303
|
# something like "1.54s/" rather than "1.54/s"; something to do with
|
304
304
|
# the unit we gave, which is empty; idunno; just replace it here.
|
@@ -1,6 +1,6 @@
|
|
1
1
|
[tool.poetry]
|
2
2
|
name = "dcicutils"
|
3
|
-
version = "8.8.3.
|
3
|
+
version = "8.8.3.1b20" # TODO: To become 8.8.4
|
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
|
{dcicutils-8.8.3.1b18 → dcicutils-8.8.3.1b20}/dcicutils/license_policies/c4-infrastructure.jsonc
RENAMED
File without changes
|
File without changes
|
File without changes
|
{dcicutils-8.8.3.1b18 → dcicutils-8.8.3.1b20}/dcicutils/license_policies/park-lab-common.jsonc
RENAMED
File without changes
|
{dcicutils-8.8.3.1b18 → dcicutils-8.8.3.1b20}/dcicutils/license_policies/park-lab-gpl-pipeline.jsonc
RENAMED
File without changes
|
{dcicutils-8.8.3.1b18 → dcicutils-8.8.3.1b20}/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
|