atk-common 1.26.0__py3-none-any.whl → 1.28.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.
@@ -1,31 +1,31 @@
1
1
  # __init__.py
2
2
  from atk_common.enums.api_error_type_enum import ApiErrorType
3
- from atk_common.enums.command_status_enum import CommandStatusType
4
- from atk_common.enums.detection_status_enum import DetectionStatus
3
+ from atk_common.enums.command_status_type_enum import CommandStatusType
4
+ from atk_common.enums.detection_status_type_enum import DetectionStatusType
5
5
  from atk_common.enums.encryption_type_enum import EncryptionType
6
6
  from atk_common.enums.image_encoding_type_enum import ImageEncodingType
7
- from atk_common.enums.image_part_category import ImagePartCategory
8
- from atk_common.enums.image_part_type import ImagePartType
7
+ from atk_common.enums.image_part_category_enum import ImagePartCategory
8
+ from atk_common.enums.image_part_type_enum import ImagePartType
9
9
  from atk_common.enums.piezo_vehicle_type_enum import PiezoVehicleType
10
- from atk_common.enums.process_status_enum import ProcessStatus
11
- from atk_common.enums.response_status_enum import ResponseStatus
10
+ from atk_common.enums.process_status_type_enum import ProcessStatusType
11
+ from atk_common.enums.response_status_type_enum import ResponseStatusType
12
12
  from atk_common.enums.section_role_enum import SectionRole
13
- from atk_common.enums.sensor_order import SensorOrder
13
+ from atk_common.enums.sensor_order_enum import SensorOrder
14
14
  from atk_common.enums.sensor_type_enum import SensorType
15
- from atk_common.enums.speed_control_status_enum import SpeedControlStatusType
15
+ from atk_common.enums.speed_control_status_type_enum import SpeedControlStatusType
16
16
  from atk_common.enums.violation_type_enum import ViolationType
17
17
 
18
18
  __all__ = [
19
19
  'ApiErrorType',
20
20
  'CommandStatusType',
21
- 'DetectionStatus',
21
+ 'DetectionStatusType',
22
22
  'EncryptionType',
23
23
  'ImageEncodingType',
24
24
  'ImagePartCategory',
25
25
  'ImagePartType',
26
26
  'PiezoVehicleType',
27
- 'ProcessStatus',
28
- 'ResponseStatus',
27
+ 'ProcessStatusType',
28
+ 'ResponseStatusType',
29
29
  'SectionRole',
30
30
  'SensorOrder',
31
31
  'SensorType',
@@ -0,0 +1,7 @@
1
+ from enum import Enum
2
+
3
+ class CommandStatusType(Enum):
4
+ CREATED = 1
5
+ COMPLETED = 2
6
+ EXPIRED = 3
7
+ FAILED = 4
@@ -0,0 +1,5 @@
1
+ from enum import Enum
2
+
3
+ class DetectionStatusType(Enum):
4
+ OK = 1
5
+ FAILED = 2
@@ -0,0 +1,8 @@
1
+ from enum import Enum
2
+
3
+ class HistoryStatusType(Enum):
4
+ PRODUCED = 1
5
+ CONNECTED = 2
6
+ DISCONNECTED = 3
7
+ REPAIR = 4
8
+ DISCARDED = 5
@@ -0,0 +1,5 @@
1
+ from enum import Enum
2
+
3
+ class ImagePartCategory(Enum):
4
+ PART = 1
5
+ HATCH = 2
@@ -0,0 +1,6 @@
1
+ from enum import Enum
2
+
3
+ class ImagePartType(Enum):
4
+ LICENSEPLATE = 1
5
+ DRIVER = 2
6
+ PHOTOZONE = 3
@@ -0,0 +1,8 @@
1
+ from enum import Enum
2
+
3
+ class ProcessStatusType(Enum):
4
+ NEW = 1
5
+ STARTED = 2
6
+ FINALIZED = 3
7
+ LOCKED = 4
8
+ NOTAPPROVED = 5
@@ -0,0 +1,6 @@
1
+ from enum import Enum
2
+
3
+ class ResponseStatusType(Enum):
4
+ OK = 0
5
+ HTTP = 1
6
+ INTERNAL = 2
@@ -0,0 +1,5 @@
1
+ from enum import Enum
2
+
3
+ class SensorOrder(Enum):
4
+ FIRST = 1
5
+ LAST = 2
@@ -0,0 +1,10 @@
1
+ from enum import Enum
2
+
3
+ class SpeedControlStatusType(Enum):
4
+ CREATED = 1
5
+ CONFIRMED = 2
6
+ STARTED = 3
7
+ FAILED = 4
8
+ PAUSED = 5
9
+ STOPPED = 6
10
+ DELETED = 7
@@ -1,4 +1,4 @@
1
- from atk_common.enums.response_status_enum import ResponseStatus
1
+ from atk_common.enums.response_status_type_enum import ResponseStatusType
2
2
 
3
3
  def create_response(status, status_code, response_msg):
4
4
  data = {}
@@ -8,4 +8,4 @@ def create_response(status, status_code, response_msg):
8
8
  return data
9
9
 
10
10
  def is_response_ok(response):
11
- return response['status'] == ResponseStatus.OK
11
+ return response['status'] == ResponseStatusType.OK
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: atk_common
3
- Version: 1.26.0
3
+ Version: 1.28.0
4
4
  Summary: ATK common methods
5
5
  Home-page: https://github.com/pypa/atk_common
6
6
  Author: Roger
@@ -8,25 +8,34 @@ atk_common/http_utils.py,sha256=M1Qz2Cus3Ek8nUOqraT-30GKSj7nkAvJx2f7rnpX5Pk,656
8
8
  atk_common/log_utils.py,sha256=k7VaknmSGvHQV6-eznltNUa3BOAywjFHkhVzDT1P0Hs,496
9
9
  atk_common/mq_utils.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10
10
  atk_common/rabbitmq_consumer.py,sha256=4MhuwZs47Jt1fX4sUxr1MKRe7o2QRbPe9_utXEsa8QE,1907
11
- atk_common/response_utils.py,sha256=jlCm3a7GKolV6zR1emIEGmMH93V6yktiv-lgNa3TNEw,349
12
- atk_common/enums/__init__.py,sha256=Nn08Ly-jR5Mf2cg98N9RM8meHt18zXZoZbCSWdKcNTM,1366
11
+ atk_common/response_utils.py,sha256=tGnIbPRbRwPRSN-Oii18S0jwBcKWqspjjYVkxU7JjOc,362
12
+ atk_common/enums/__init__.py,sha256=bYGBX8MQHWxcTsI9JzPbG5Bbtc6BsEXEQGn6aitylWk,1430
13
13
  atk_common/enums/api_error_type_enum.py,sha256=9oW6ZaZ3lhMwR8r2sVNWGliS9C_jV-otiOYdezAuTp0,91
14
14
  atk_common/enums/command_status_enum.py,sha256=M2Nln27a_DbzI07-gfytWQk2X087JhkU6Fmard5qVHs,127
15
+ atk_common/enums/command_status_type_enum.py,sha256=M2Nln27a_DbzI07-gfytWQk2X087JhkU6Fmard5qVHs,127
15
16
  atk_common/enums/detection_status_enum.py,sha256=852t9-LaQAzcTELtHtiGPfgwhX58q4uWMvgzq2Spyzs,84
17
+ atk_common/enums/detection_status_type_enum.py,sha256=oHmoOP2zhcWQBBchj7CwECf99EdT8QSY6T8l5n8Kvcg,88
16
18
  atk_common/enums/encryption_type_enum.py,sha256=jlrKeH2-Iakkuby8pwq8uXhX8A2FTvdULe633edGOc4,91
19
+ atk_common/enums/history_status_type_enum.py,sha256=itxQEQL8zQhkCR-fzKk3PcMDN1YcrbrcDlLcNCQDNHs,152
17
20
  atk_common/enums/http_status_enum.py,sha256=bJSTmkLxHnb04fWSDKuhTWrh_v9iCQM7otAVr731JDk,139
18
21
  atk_common/enums/image_encoding_type_enum.py,sha256=s32PjcrprGUf7MG4UQNE3ssH-y9RiLtbwtNwKQxWMvE,98
19
22
  atk_common/enums/image_part_category.py,sha256=YQ7xtO8v7Ja77Tu-Wo_wewLOULtalPtDsmHvEEWsnsw,87
23
+ atk_common/enums/image_part_category_enum.py,sha256=YQ7xtO8v7Ja77Tu-Wo_wewLOULtalPtDsmHvEEWsnsw,87
20
24
  atk_common/enums/image_part_type.py,sha256=tg6W9kYMRShOlsxhAJRNRdWH50gC-eF0sqvqsponP-M,111
25
+ atk_common/enums/image_part_type_enum.py,sha256=tg6W9kYMRShOlsxhAJRNRdWH50gC-eF0sqvqsponP-M,111
21
26
  atk_common/enums/piezo_vehicle_type_enum.py,sha256=tlFk9dP7KkJVBna8SIJf6MH9zJD_szSUcDxFATJ6LZE,89
22
27
  atk_common/enums/process_status_enum.py,sha256=09kRE5Cy8Sc7e7wf5gSkIw0RnNzFAWxIrMvn-aElqt8,140
28
+ atk_common/enums/process_status_type_enum.py,sha256=eihCfOTTWvmS1hEp_wYzl0PqIPawuUcrlWgyhbyKd48,144
23
29
  atk_common/enums/response_status_enum.py,sha256=ogYXlGm0gJJDGlY6Fwq9Kvl861aGPop2qzfXXExzMKw,99
30
+ atk_common/enums/response_status_type_enum.py,sha256=LjGttBOMwbf5JB-DTXbKCIC7BU8nntP0mW-c8GTeu90,103
24
31
  atk_common/enums/section_role_enum.py,sha256=9rwep4Wmvyvnlrey08TRRoi8VQYAPkylpP00uafIQMg,74
25
32
  atk_common/enums/sensor_order.py,sha256=TQtLlvjyc8-CnhmA6-iHLhreQziPoBlgFV_hoN9evfw,81
33
+ atk_common/enums/sensor_order_enum.py,sha256=TQtLlvjyc8-CnhmA6-iHLhreQziPoBlgFV_hoN9evfw,81
26
34
  atk_common/enums/sensor_type_enum.py,sha256=UBa3LPyGTKgEJV578CqFlwXjnlXqVlybrvzdjsHhjSU,80
27
35
  atk_common/enums/speed_control_status_enum.py,sha256=qpURh0K1L1tSpbrzVnckoe4hUn1illIkbo7k4mLfzIM,182
36
+ atk_common/enums/speed_control_status_type_enum.py,sha256=qpURh0K1L1tSpbrzVnckoe4hUn1illIkbo7k4mLfzIM,182
28
37
  atk_common/enums/violation_type_enum.py,sha256=01qTHOj-O8bOc-nwIHVnxLosm4cusD_YuqXM3ZsiRRk,86
29
- atk_common-1.26.0.dist-info/licenses/license.txt,sha256=_0O6fWM00-wTurDjnZhUP_N5QiwGhItaQZqHq5eqadA,1063
38
+ atk_common-1.28.0.dist-info/licenses/license.txt,sha256=_0O6fWM00-wTurDjnZhUP_N5QiwGhItaQZqHq5eqadA,1063
30
39
  atk_package/__init__.py,sha256=EceDa352WFHTdC_LxYANXf_TS9pGzK3MCx87bwAKTvg,811
31
40
  atk_package/datetime_utils.py,sha256=qsVF7l90P1-xukG2tV_jLqG9J_Yfl5wTpyfrdPBlyMo,239
32
41
  atk_package/env_utils.py,sha256=bXOrxM3fZUslqfmZt75iphbEJHbG4riJa8XOVzPwIII,313
@@ -35,11 +44,11 @@ atk_package/http_utils.py,sha256=5PjGYy-TiBbtNOElEDhsCs3BPDTfqg_aMQBNCuHfcrQ,90
35
44
  atk_package/log_utils.py,sha256=DGGwXjD5jvpMZJNW1QBoJRdDaTY1e1Z69j0LSOOzsWA,419
36
45
  atk_package/rabbitmq_consumer.py,sha256=wmZQieeONkfXB5RmM6yiNkwl0_QK4oWWDBSfiD47CdA,1753
37
46
  atk_package/response_utils.py,sha256=ezqTSNdGwueFXzijKB7CKPWxZml39bqjAZOeIMWMntk,197
38
- atk_package/enums/__init__.py,sha256=oW0aVnwewfH6sNu14jjZ5_uP4iRN4pRmGdTNC204rHo,236
47
+ atk_package/enums/__init__.py,sha256=EtUr_--MQj1Rc_R0sF_ELXIThmhpfmhDWq3YaK9oQMk,246
39
48
  atk_package/enums/command_status_enum.py,sha256=M2Nln27a_DbzI07-gfytWQk2X087JhkU6Fmard5qVHs,127
40
49
  atk_package/enums/speed_control_status_enum.py,sha256=qpURh0K1L1tSpbrzVnckoe4hUn1illIkbo7k4mLfzIM,182
41
50
  shared_python_atk_enforcement/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
42
- atk_common-1.26.0.dist-info/METADATA,sha256=Nf_gK73tnrlI2PdCbH8CRtYPqNYNT_YXPQR5DQoa48A,1464
43
- atk_common-1.26.0.dist-info/WHEEL,sha256=pxyMxgL8-pra_rKaQ4drOZAegBVuX-G_4nRHjjgWbmo,91
44
- atk_common-1.26.0.dist-info/top_level.txt,sha256=4CwRjkLnheIdI4jQwc4tK3dbRc58WqUmoqjkdDTWlME,41
45
- atk_common-1.26.0.dist-info/RECORD,,
51
+ atk_common-1.28.0.dist-info/METADATA,sha256=e1SFJ1JZzPW5peBNF_vWKvLBR9ihLsne5KUPd2CwNPA,1464
52
+ atk_common-1.28.0.dist-info/WHEEL,sha256=pxyMxgL8-pra_rKaQ4drOZAegBVuX-G_4nRHjjgWbmo,91
53
+ atk_common-1.28.0.dist-info/top_level.txt,sha256=4CwRjkLnheIdI4jQwc4tK3dbRc58WqUmoqjkdDTWlME,41
54
+ atk_common-1.28.0.dist-info/RECORD,,
@@ -1,6 +1,6 @@
1
1
  # __init__.py
2
- from atk_common.enums.command_status_enum import CommandStatusType
3
- from atk_common.enums.speed_control_status_enum import SpeedControlStatusType
2
+ from atk_common.enums.command_status_type_enum import CommandStatusType
3
+ from atk_common.enums.speed_control_status_type_enum import SpeedControlStatusType
4
4
 
5
5
  __all__ = [
6
6
  'CommandStatusType',