arche.tools.helpers
¶
Module Contents¶
-
arche.tools.helpers.
is_collection_key
(value: str) → bool¶ <project id>/collections/s/<name>
-
arche.tools.helpers.
parse_collection_key
(value)¶
-
arche.tools.helpers.
is_job_key
(value)¶
-
arche.tools.helpers.
ms_to_time
(ms: int) → Optional[str]¶ Convert ms to human time, stripping ms.
>>> ms_to_time(12345678901) 142 days, 21:21:18
-
arche.tools.helpers.
ratio_diff
(source, target)¶ Return a difference in ratio between two values
-
arche.tools.helpers.
to_float_or_zero
(value)¶
-
arche.tools.helpers.
is_number
(s)¶
-
arche.tools.helpers.
cpus_count
() → Optional[int]¶