atk-common 1.26.0__tar.gz → 1.27.0__tar.gz

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.
Files changed (45) hide show
  1. {atk_common-1.26.0 → atk_common-1.27.0}/PKG-INFO +1 -1
  2. {atk_common-1.26.0 → atk_common-1.27.0}/setup.py +1 -1
  3. atk_common-1.27.0/src/atk_common/enums/__init__.py +36 -0
  4. atk_common-1.26.0/src/atk_common/enums/detection_status_enum.py → atk_common-1.27.0/src/atk_common/enums/detection_status_type_enum.py +1 -1
  5. atk_common-1.27.0/src/atk_common/enums/history_status_type_enum.py +8 -0
  6. atk_common-1.26.0/src/atk_common/enums/process_status_enum.py → atk_common-1.27.0/src/atk_common/enums/process_status_type_enum.py +1 -1
  7. atk_common-1.26.0/src/atk_common/enums/response_status_enum.py → atk_common-1.27.0/src/atk_common/enums/response_status_type_enum.py +1 -1
  8. {atk_common-1.26.0 → atk_common-1.27.0}/src/atk_common/response_utils.py +2 -2
  9. {atk_common-1.26.0 → atk_common-1.27.0}/src/atk_common.egg-info/PKG-INFO +1 -1
  10. {atk_common-1.26.0 → atk_common-1.27.0}/src/atk_common.egg-info/SOURCES.txt +9 -8
  11. atk_common-1.26.0/src/atk_common/enums/__init__.py +0 -34
  12. {atk_common-1.26.0 → atk_common-1.27.0}/README.md +0 -0
  13. {atk_common-1.26.0 → atk_common-1.27.0}/license.txt +0 -0
  14. {atk_common-1.26.0 → atk_common-1.27.0}/pyproject.toml +0 -0
  15. {atk_common-1.26.0 → atk_common-1.27.0}/setup.cfg +0 -0
  16. {atk_common-1.26.0 → atk_common-1.27.0}/src/atk_common/__init__.py +0 -0
  17. {atk_common-1.26.0 → atk_common-1.27.0}/src/atk_common/datetime_utils.py +0 -0
  18. {atk_common-1.26.0 → atk_common-1.27.0}/src/atk_common/db_utils.py +0 -0
  19. {atk_common-1.26.0 → atk_common-1.27.0}/src/atk_common/docker_utils.py +0 -0
  20. {atk_common-1.26.0 → atk_common-1.27.0}/src/atk_common/enums/api_error_type_enum.py +0 -0
  21. /atk_common-1.26.0/src/atk_common/enums/command_status_enum.py → /atk_common-1.27.0/src/atk_common/enums/command_status_type_enum.py +0 -0
  22. {atk_common-1.26.0 → atk_common-1.27.0}/src/atk_common/enums/encryption_type_enum.py +0 -0
  23. {atk_common-1.26.0 → atk_common-1.27.0}/src/atk_common/enums/image_encoding_type_enum.py +0 -0
  24. /atk_common-1.26.0/src/atk_common/enums/image_part_category.py → /atk_common-1.27.0/src/atk_common/enums/image_part_category_enum.py +0 -0
  25. /atk_common-1.26.0/src/atk_common/enums/image_part_type.py → /atk_common-1.27.0/src/atk_common/enums/image_part_type_enum.py +0 -0
  26. {atk_common-1.26.0 → atk_common-1.27.0}/src/atk_common/enums/piezo_vehicle_type_enum.py +0 -0
  27. {atk_common-1.26.0 → atk_common-1.27.0}/src/atk_common/enums/section_role_enum.py +0 -0
  28. /atk_common-1.26.0/src/atk_common/enums/sensor_order.py → /atk_common-1.27.0/src/atk_common/enums/sensor_order_enum.py +0 -0
  29. {atk_common-1.26.0 → atk_common-1.27.0}/src/atk_common/enums/sensor_type_enum.py +0 -0
  30. /atk_common-1.26.0/src/atk_common/enums/speed_control_status_enum.py → /atk_common-1.27.0/src/atk_common/enums/speed_control_status_type_enum.py +0 -0
  31. {atk_common-1.26.0 → atk_common-1.27.0}/src/atk_common/enums/violation_type_enum.py +0 -0
  32. {atk_common-1.26.0 → atk_common-1.27.0}/src/atk_common/env_utils.py +0 -0
  33. {atk_common-1.26.0 → atk_common-1.27.0}/src/atk_common/error_utils.py +0 -0
  34. {atk_common-1.26.0 → atk_common-1.27.0}/src/atk_common/http_utils.py +0 -0
  35. {atk_common-1.26.0 → atk_common-1.27.0}/src/atk_common/log_utils.py +0 -0
  36. {atk_common-1.26.0 → atk_common-1.27.0}/src/atk_common/mq_utils.py +0 -0
  37. {atk_common-1.26.0 → atk_common-1.27.0}/src/atk_common/rabbitmq_consumer.py +0 -0
  38. {atk_common-1.26.0 → atk_common-1.27.0}/src/atk_common.egg-info/dependency_links.txt +0 -0
  39. {atk_common-1.26.0 → atk_common-1.27.0}/src/atk_common.egg-info/requires.txt +0 -0
  40. {atk_common-1.26.0 → atk_common-1.27.0}/src/atk_common.egg-info/top_level.txt +0 -0
  41. {atk_common-1.26.0 → atk_common-1.27.0}/src/shared_python_atk_enforcement/__init__.py +0 -0
  42. {atk_common-1.26.0 → atk_common-1.27.0}/tests/test_docker_utils.py +0 -0
  43. {atk_common-1.26.0 → atk_common-1.27.0}/tests/test_error_utils.py +0 -0
  44. {atk_common-1.26.0 → atk_common-1.27.0}/tests/test_http_utils.py +0 -0
  45. {atk_common-1.26.0 → atk_common-1.27.0}/tests/test_log_utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: atk_common
3
- Version: 1.26.0
3
+ Version: 1.27.0
4
4
  Summary: ATK common methods
5
5
  Home-page: https://github.com/pypa/atk_common
6
6
  Author: Roger
@@ -36,7 +36,7 @@ setup(
36
36
  # For a discussion on single-sourcing the version across setup.py and the
37
37
  # project code, see
38
38
  # https://packaging.python.org/guides/single-sourcing-package-version/
39
- version="1.26.0", # Required
39
+ version="1.27.0", # Required
40
40
  # This is a one-line description or tagline of what your project does. This
41
41
  # corresponds to the "Summary" metadata field:
42
42
  # https://packaging.python.org/specifications/core-metadata/#summary
@@ -0,0 +1,36 @@
1
+ # __init__.py
2
+ from atk_common.enums.api_error_type_enum import ApiErrorType
3
+ from atk_common.enums.command_status_type_enum import CommandStatusType
4
+ from atk_common.enums.detection_status_type_enum import DetectionStatusType
5
+ from atk_common.enums.encryption_type_enum import EncryptionType
6
+ from atk_common.enums.history_status_type_enum import HistoryStatusType
7
+ from atk_common.enums.image_encoding_type_enum import ImageEncodingType
8
+ from atk_common.enums.image_part_category_enum import ImagePartCategory
9
+ from atk_common.enums.image_part_type_enum import ImagePartType
10
+ from atk_common.enums.piezo_vehicle_type_enum import PiezoVehicleType
11
+ from atk_common.enums.process_status_type_enum import ProcessStatusType
12
+ from atk_common.enums.response_status_type_enum import ResponseStatusType
13
+ from atk_common.enums.section_role_enum import SectionRole
14
+ from atk_common.enums.sensor_order_enum import SensorOrder
15
+ from atk_common.enums.sensor_type_enum import SensorType
16
+ from atk_common.enums.speed_control_status_type_enum import SpeedControlStatusType
17
+ from atk_common.enums.violation_type_enum import ViolationType
18
+
19
+ __all__ = [
20
+ 'ApiErrorType',
21
+ 'CommandStatusType',
22
+ 'DetectionStatusType',
23
+ 'EncryptionType',
24
+ 'HistoryStatusType',
25
+ 'ImageEncodingType',
26
+ 'ImagePartCategory',
27
+ 'ImagePartType',
28
+ 'PiezoVehicleType',
29
+ 'ProcessStatusType',
30
+ 'ResponseStatusType',
31
+ 'SectionRole',
32
+ 'SensorOrder',
33
+ 'SensorType',
34
+ 'SpeedControlStatusType',
35
+ 'ViolationType',
36
+ ]
@@ -1,5 +1,5 @@
1
1
  from enum import Enum
2
2
 
3
- class DetectionStatus(Enum):
3
+ class DetectionStatusType(Enum):
4
4
  OK = 1
5
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
@@ -1,6 +1,6 @@
1
1
  from enum import Enum
2
2
 
3
- class ProcessStatus(Enum):
3
+ class ProcessStatusType(Enum):
4
4
  NEW = 1
5
5
  STARTED = 2
6
6
  FINALIZED = 3
@@ -1,6 +1,6 @@
1
1
  from enum import Enum
2
2
 
3
- class ResponseStatus(Enum):
3
+ class ResponseStatusType(Enum):
4
4
  OK = 0
5
5
  HTTP = 1
6
6
  INTERNAL = 2
@@ -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.27.0
4
4
  Summary: ATK common methods
5
5
  Home-page: https://github.com/pypa/atk_common
6
6
  Author: Roger
@@ -21,19 +21,20 @@ src/atk_common.egg-info/requires.txt
21
21
  src/atk_common.egg-info/top_level.txt
22
22
  src/atk_common/enums/__init__.py
23
23
  src/atk_common/enums/api_error_type_enum.py
24
- src/atk_common/enums/command_status_enum.py
25
- src/atk_common/enums/detection_status_enum.py
24
+ src/atk_common/enums/command_status_type_enum.py
25
+ src/atk_common/enums/detection_status_type_enum.py
26
26
  src/atk_common/enums/encryption_type_enum.py
27
+ src/atk_common/enums/history_status_type_enum.py
27
28
  src/atk_common/enums/image_encoding_type_enum.py
28
- src/atk_common/enums/image_part_category.py
29
- src/atk_common/enums/image_part_type.py
29
+ src/atk_common/enums/image_part_category_enum.py
30
+ src/atk_common/enums/image_part_type_enum.py
30
31
  src/atk_common/enums/piezo_vehicle_type_enum.py
31
- src/atk_common/enums/process_status_enum.py
32
- src/atk_common/enums/response_status_enum.py
32
+ src/atk_common/enums/process_status_type_enum.py
33
+ src/atk_common/enums/response_status_type_enum.py
33
34
  src/atk_common/enums/section_role_enum.py
34
- src/atk_common/enums/sensor_order.py
35
+ src/atk_common/enums/sensor_order_enum.py
35
36
  src/atk_common/enums/sensor_type_enum.py
36
- src/atk_common/enums/speed_control_status_enum.py
37
+ src/atk_common/enums/speed_control_status_type_enum.py
37
38
  src/atk_common/enums/violation_type_enum.py
38
39
  src/shared_python_atk_enforcement/__init__.py
39
40
  tests/test_docker_utils.py
@@ -1,34 +0,0 @@
1
- # __init__.py
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
5
- from atk_common.enums.encryption_type_enum import EncryptionType
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
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
12
- from atk_common.enums.section_role_enum import SectionRole
13
- from atk_common.enums.sensor_order import SensorOrder
14
- from atk_common.enums.sensor_type_enum import SensorType
15
- from atk_common.enums.speed_control_status_enum import SpeedControlStatusType
16
- from atk_common.enums.violation_type_enum import ViolationType
17
-
18
- __all__ = [
19
- 'ApiErrorType',
20
- 'CommandStatusType',
21
- 'DetectionStatus',
22
- 'EncryptionType',
23
- 'ImageEncodingType',
24
- 'ImagePartCategory',
25
- 'ImagePartType',
26
- 'PiezoVehicleType',
27
- 'ProcessStatus',
28
- 'ResponseStatus',
29
- 'SectionRole',
30
- 'SensorOrder',
31
- 'SensorType',
32
- 'SpeedControlStatusType',
33
- 'ViolationType',
34
- ]
File without changes
File without changes
File without changes
File without changes