ActionStreamer 0.4.2__tar.gz → 0.4.4__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 (29) hide show
  1. {actionstreamer-0.4.2 → actionstreamer-0.4.4}/PKG-INFO +2 -2
  2. {actionstreamer-0.4.2/ActionStreamer → actionstreamer-0.4.4/actionstreamer}/CommonFunctions/CommonFunctions.py +1 -1
  3. {actionstreamer-0.4.2/ActionStreamer → actionstreamer-0.4.4/actionstreamer}/Model/Model.py +1 -0
  4. {actionstreamer-0.4.2/ActionStreamer → actionstreamer-0.4.4/actionstreamer}/WebService/VideoClip/VideoClip.py +26 -2
  5. {actionstreamer-0.4.2 → actionstreamer-0.4.4}/pyproject.toml +2 -2
  6. {actionstreamer-0.4.2 → actionstreamer-0.4.4}/README.md +0 -0
  7. {actionstreamer-0.4.2/ActionStreamer → actionstreamer-0.4.4/actionstreamer}/CommonFunctions/Wifi/Wifi.py +0 -0
  8. {actionstreamer-0.4.2/ActionStreamer → actionstreamer-0.4.4/actionstreamer}/CommonFunctions/Wifi/__init__.py +0 -0
  9. {actionstreamer-0.4.2/ActionStreamer → actionstreamer-0.4.4/actionstreamer}/CommonFunctions/__init__.py +0 -0
  10. {actionstreamer-0.4.2/ActionStreamer → actionstreamer-0.4.4/actionstreamer}/Config/Config.py +0 -0
  11. {actionstreamer-0.4.2/ActionStreamer → actionstreamer-0.4.4/actionstreamer}/Config/__init__.py +0 -0
  12. {actionstreamer-0.4.2/ActionStreamer → actionstreamer-0.4.4/actionstreamer}/Device/Device.py +0 -0
  13. {actionstreamer-0.4.2/ActionStreamer → actionstreamer-0.4.4/actionstreamer}/Device/__init__.py +0 -0
  14. {actionstreamer-0.4.2/ActionStreamer → actionstreamer-0.4.4/actionstreamer}/Model/__init__.py +0 -0
  15. {actionstreamer-0.4.2/ActionStreamer → actionstreamer-0.4.4/actionstreamer}/WebService/API/API.py +0 -0
  16. {actionstreamer-0.4.2/ActionStreamer → actionstreamer-0.4.4/actionstreamer}/WebService/API/__init__.py +0 -0
  17. {actionstreamer-0.4.2/ActionStreamer → actionstreamer-0.4.4/actionstreamer}/WebService/Event/Event.py +0 -0
  18. {actionstreamer-0.4.2/ActionStreamer → actionstreamer-0.4.4/actionstreamer}/WebService/Event/__init__.py +0 -0
  19. {actionstreamer-0.4.2/ActionStreamer → actionstreamer-0.4.4/actionstreamer}/WebService/File/File.py +0 -0
  20. {actionstreamer-0.4.2/ActionStreamer → actionstreamer-0.4.4/actionstreamer}/WebService/File/__init__.py +0 -0
  21. {actionstreamer-0.4.2/ActionStreamer → actionstreamer-0.4.4/actionstreamer}/WebService/Health/Health.py +0 -0
  22. {actionstreamer-0.4.2/ActionStreamer → actionstreamer-0.4.4/actionstreamer}/WebService/Health/__init__.py +0 -0
  23. {actionstreamer-0.4.2/ActionStreamer → actionstreamer-0.4.4/actionstreamer}/WebService/LogMessage/LogMessage.py +0 -0
  24. {actionstreamer-0.4.2/ActionStreamer → actionstreamer-0.4.4/actionstreamer}/WebService/LogMessage/__init__.py +0 -0
  25. {actionstreamer-0.4.2/ActionStreamer → actionstreamer-0.4.4/actionstreamer}/WebService/Patch/Patch.py +0 -0
  26. {actionstreamer-0.4.2/ActionStreamer → actionstreamer-0.4.4/actionstreamer}/WebService/Patch/__init__.py +0 -0
  27. {actionstreamer-0.4.2/ActionStreamer → actionstreamer-0.4.4/actionstreamer}/WebService/VideoClip/__init__.py +0 -0
  28. {actionstreamer-0.4.2/ActionStreamer → actionstreamer-0.4.4/actionstreamer}/WebService/__init__.py +0 -0
  29. {actionstreamer-0.4.2/ActionStreamer → actionstreamer-0.4.4/actionstreamer}/__init__.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
- Name: ActionStreamer
3
- Version: 0.4.2
2
+ Name: actionstreamer
3
+ Version: 0.4.4
4
4
  Summary: A library for the ActionStreamer API.
5
5
  Author: ActionStreamer
6
6
  Author-email: joe@actionstreamer.com
@@ -143,7 +143,7 @@ def get_hmac_signature(secret_key: str, method: str, path: str, headers, paramet
143
143
  string_to_sign = '\n'.join([method, path, headerString, parameterString, body if body else ''])
144
144
 
145
145
  string_to_sign = string_to_sign.strip()
146
- log_to_console("stringToSign: " + string_to_sign)
146
+ #log_to_console("stringToSign: " + string_to_sign)
147
147
 
148
148
  # Generate the HMAC SHA256 signature
149
149
  hmac_signature = hmac.new(secret_key.encode('utf-8'), string_to_sign.encode('utf-8'), hashlib.sha256)
@@ -27,6 +27,7 @@ class EventType:
27
27
 
28
28
  class Transcoding(Enum):
29
29
  Transcode_file = 12
30
+ Concatenate_files = 16
30
31
 
31
32
  class Transfer(Enum):
32
33
  Transfer_file = 13
@@ -25,7 +25,7 @@ def create_video_clip(ws_config: WebServiceConfig, device_name: str, video_clip:
25
25
  print(ex)
26
26
 
27
27
  response_code = -1
28
- response_string = "Exception in CreateVideoClip"
28
+ response_string = "Exception in CreateVideoClip. Line number " + str(line_number)
29
29
 
30
30
  return response_code, response_string
31
31
 
@@ -53,6 +53,30 @@ def update_file_id(ws_config: WebServiceConfig, video_clip_id: int, file_id: int
53
53
  print(ex)
54
54
 
55
55
  response_code = -1
56
- response_string = "Exception in UpdateVideoClipFileID"
56
+ response_string = "Exception in UpdateVideoClipFileID Line number " + str(line_number)
57
+
58
+ return response_code, response_string
59
+
60
+ def get_video_clip_by_id(ws_config: WebServiceConfig, video_clip_id: int) -> tuple[int, str]:
61
+
62
+ try:
63
+
64
+ method = "GET"
65
+ path = 'v1/videoclip/' + str(video_clip_id)
66
+ url = ws_config.base_url + path
67
+ headers = {"Content-Type": "application/json"}
68
+ parameters = ''
69
+
70
+ response_code, response_string = CommonFunctions.send_signed_request(ws_config, method, url, path, headers, parameters)
71
+
72
+ except Exception as ex:
73
+
74
+ filename, line_number = CommonFunctions.get_exception_info()
75
+ if filename is not None and line_number is not None:
76
+ print(f"Exception occurred at line {line_number} in {filename}")
77
+ print(ex)
78
+
79
+ response_code = -1
80
+ response_string = "Exception in get_video_clip_by_id Line number " + str(line_number)
57
81
 
58
82
  return response_code, response_string
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
- name = "ActionStreamer"
3
- version = "0.4.2"
2
+ name = "actionstreamer"
3
+ version = "0.4.4"
4
4
  description = "A library for the ActionStreamer API."
5
5
  authors = ["ActionStreamer <joe@actionstreamer.com>"]
6
6
  readme = "README.md"
File without changes