atk-common 1.53.0__py3-none-any.whl → 1.55.0__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.
- atk_common/__init__.py +9 -1
- atk_common/datetime_utils.py +3 -0
- {atk_common-1.53.0.dist-info → atk_common-1.55.0.dist-info}/METADATA +1 -1
- {atk_common-1.53.0.dist-info → atk_common-1.55.0.dist-info}/RECORD +7 -7
- {atk_common-1.53.0.dist-info → atk_common-1.55.0.dist-info}/WHEEL +0 -0
- {atk_common-1.53.0.dist-info → atk_common-1.55.0.dist-info}/licenses/license.txt +0 -0
- {atk_common-1.53.0.dist-info → atk_common-1.55.0.dist-info}/top_level.txt +0 -0
atk_common/__init__.py
CHANGED
@@ -1,5 +1,12 @@
|
|
1
1
|
# __init__.py
|
2
|
-
from atk_common.datetime_utils import
|
2
|
+
from atk_common.datetime_utils import \
|
3
|
+
get_utc_date_time, \
|
4
|
+
get_utc_date_time_str, \
|
5
|
+
seconds_to_utc_timestamp, \
|
6
|
+
get_utc_date_from_iso, \
|
7
|
+
adjust_millisescond, \
|
8
|
+
convert_to_utc, \
|
9
|
+
convert_to_utc_image_dt
|
3
10
|
from atk_common.db_utils import sql, sql_with_record, convert_none_to_null, date_time_utc_column
|
4
11
|
from atk_common.docker_utils import get_current_container_info
|
5
12
|
from atk_common.env_utils import get_env_value
|
@@ -20,6 +27,7 @@ __all__ = [
|
|
20
27
|
'get_utc_date_from_iso',
|
21
28
|
'adjust_millisescond',
|
22
29
|
'convert_to_utc',
|
30
|
+
'convert_to_utc_image_dt',
|
23
31
|
'sql',
|
24
32
|
'sql_with_record',
|
25
33
|
'convert_none_to_null',
|
atk_common/datetime_utils.py
CHANGED
@@ -7,6 +7,9 @@ def get_utc_date_time():
|
|
7
7
|
def get_utc_date_time_str():
|
8
8
|
return str(datetime.now(timezone.utc))
|
9
9
|
|
10
|
+
def get_utc_date_time_str_with_z():
|
11
|
+
return datetime.now(timezone.utc).strftime('%Y-%m-%dT%H:%M:%SZ')
|
12
|
+
|
10
13
|
def seconds_to_utc_timestamp(seconds):
|
11
14
|
return str(datetime.fromtimestamp(seconds, tz=timezone.utc))
|
12
15
|
|
@@ -1,5 +1,5 @@
|
|
1
|
-
atk_common/__init__.py,sha256=
|
2
|
-
atk_common/datetime_utils.py,sha256=
|
1
|
+
atk_common/__init__.py,sha256=0XaUct8Jkw1Lla88SCS32Pmtcs7mWWsR-gioYWUYASM,2084
|
2
|
+
atk_common/datetime_utils.py,sha256=0SC5-Nai4RJH9B0VzvGKUQts_QeRXGb7tJLlsh73LJw,3556
|
3
3
|
atk_common/db_utils.py,sha256=odUtXcS7Mumw5eGyVyVimL_U_lP7TqMX9v8nWO5nMvg,902
|
4
4
|
atk_common/docker_utils.py,sha256=nkUhp2OhwJsm41JDujHDY-JxQfdDjy91duprH59Esfk,2084
|
5
5
|
atk_common/env_utils.py,sha256=66v-S0vlkJNaun6ay1XcOGRtYJb4Ce4odJsWxuaHsQc,373
|
@@ -52,7 +52,7 @@ atk_common/enums/speed_control_status_type_enum.py,sha256=qpURh0K1L1tSpbrzVnckoe
|
|
52
52
|
atk_common/enums/speed_control_stop_reason.py,sha256=pvLS6fpDhsCiIDAmiQBsHctxZnq-Dl2BOgJOxQnT5Hc,200
|
53
53
|
atk_common/enums/test_image_type_enum.py,sha256=HUjxJorehnzRXMNF2uHk2DrAJ3Y_ajQvp0jW-mtlOhU,140
|
54
54
|
atk_common/enums/violation_type_enum.py,sha256=01qTHOj-O8bOc-nwIHVnxLosm4cusD_YuqXM3ZsiRRk,86
|
55
|
-
atk_common-1.
|
55
|
+
atk_common-1.55.0.dist-info/licenses/license.txt,sha256=_0O6fWM00-wTurDjnZhUP_N5QiwGhItaQZqHq5eqadA,1063
|
56
56
|
atk_package/__init__.py,sha256=NcsmwFadivgIeWV0-5ACZxqmfo4EzTkJX0r4N6DFAdg,820
|
57
57
|
atk_package/datetime_utils.py,sha256=qsVF7l90P1-xukG2tV_jLqG9J_Yfl5wTpyfrdPBlyMo,239
|
58
58
|
atk_package/env_utils.py,sha256=bXOrxM3fZUslqfmZt75iphbEJHbG4riJa8XOVzPwIII,313
|
@@ -65,7 +65,7 @@ atk_package/enums/__init__.py,sha256=EtUr_--MQj1Rc_R0sF_ELXIThmhpfmhDWq3YaK9oQMk
|
|
65
65
|
atk_package/enums/command_status_enum.py,sha256=M2Nln27a_DbzI07-gfytWQk2X087JhkU6Fmard5qVHs,127
|
66
66
|
atk_package/enums/speed_control_status_enum.py,sha256=qpURh0K1L1tSpbrzVnckoe4hUn1illIkbo7k4mLfzIM,182
|
67
67
|
shared_python_atk_enforcement/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
68
|
-
atk_common-1.
|
69
|
-
atk_common-1.
|
70
|
-
atk_common-1.
|
71
|
-
atk_common-1.
|
68
|
+
atk_common-1.55.0.dist-info/METADATA,sha256=cQsqtVvcf1oLFr_bKofN3WWrjBUsuKwUBElMxDdZohg,1464
|
69
|
+
atk_common-1.55.0.dist-info/WHEEL,sha256=pxyMxgL8-pra_rKaQ4drOZAegBVuX-G_4nRHjjgWbmo,91
|
70
|
+
atk_common-1.55.0.dist-info/top_level.txt,sha256=4CwRjkLnheIdI4jQwc4tK3dbRc58WqUmoqjkdDTWlME,41
|
71
|
+
atk_common-1.55.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|