ActionStreamer 0.2.16__tar.gz → 0.2.18__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.2.16 → actionstreamer-0.2.18}/ActionStreamer/WebService/File/File.py +5 -9
  2. {actionstreamer-0.2.16 → actionstreamer-0.2.18}/PKG-INFO +1 -1
  3. {actionstreamer-0.2.16 → actionstreamer-0.2.18}/pyproject.toml +1 -1
  4. {actionstreamer-0.2.16 → actionstreamer-0.2.18}/ActionStreamer/CommonFunctions/CommonFunctions.py +0 -0
  5. {actionstreamer-0.2.16 → actionstreamer-0.2.18}/ActionStreamer/CommonFunctions/Wifi/Wifi.py +0 -0
  6. {actionstreamer-0.2.16 → actionstreamer-0.2.18}/ActionStreamer/CommonFunctions/Wifi/__init__.py +0 -0
  7. {actionstreamer-0.2.16 → actionstreamer-0.2.18}/ActionStreamer/CommonFunctions/__init__.py +0 -0
  8. {actionstreamer-0.2.16 → actionstreamer-0.2.18}/ActionStreamer/Config/Config.py +0 -0
  9. {actionstreamer-0.2.16 → actionstreamer-0.2.18}/ActionStreamer/Config/__init__.py +0 -0
  10. {actionstreamer-0.2.16 → actionstreamer-0.2.18}/ActionStreamer/Device/Device.py +0 -0
  11. {actionstreamer-0.2.16 → actionstreamer-0.2.18}/ActionStreamer/Device/__init__.py +0 -0
  12. {actionstreamer-0.2.16 → actionstreamer-0.2.18}/ActionStreamer/Model/Model.py +0 -0
  13. {actionstreamer-0.2.16 → actionstreamer-0.2.18}/ActionStreamer/Model/__init__.py +0 -0
  14. {actionstreamer-0.2.16 → actionstreamer-0.2.18}/ActionStreamer/WebService/API/API.py +0 -0
  15. {actionstreamer-0.2.16 → actionstreamer-0.2.18}/ActionStreamer/WebService/API/__init__.py +0 -0
  16. {actionstreamer-0.2.16 → actionstreamer-0.2.18}/ActionStreamer/WebService/Event/Event.py +0 -0
  17. {actionstreamer-0.2.16 → actionstreamer-0.2.18}/ActionStreamer/WebService/Event/__init__.py +0 -0
  18. {actionstreamer-0.2.16 → actionstreamer-0.2.18}/ActionStreamer/WebService/File/__init__.py +0 -0
  19. {actionstreamer-0.2.16 → actionstreamer-0.2.18}/ActionStreamer/WebService/Health/Health.py +0 -0
  20. {actionstreamer-0.2.16 → actionstreamer-0.2.18}/ActionStreamer/WebService/Health/__init__.py +0 -0
  21. {actionstreamer-0.2.16 → actionstreamer-0.2.18}/ActionStreamer/WebService/LogMessage/LogMessage.py +0 -0
  22. {actionstreamer-0.2.16 → actionstreamer-0.2.18}/ActionStreamer/WebService/LogMessage/__init__.py +0 -0
  23. {actionstreamer-0.2.16 → actionstreamer-0.2.18}/ActionStreamer/WebService/Patch/Patch.py +0 -0
  24. {actionstreamer-0.2.16 → actionstreamer-0.2.18}/ActionStreamer/WebService/Patch/__init__.py +0 -0
  25. {actionstreamer-0.2.16 → actionstreamer-0.2.18}/ActionStreamer/WebService/VideoClip/VideoClip.py +0 -0
  26. {actionstreamer-0.2.16 → actionstreamer-0.2.18}/ActionStreamer/WebService/VideoClip/__init__.py +0 -0
  27. {actionstreamer-0.2.16 → actionstreamer-0.2.18}/ActionStreamer/WebService/__init__.py +0 -0
  28. {actionstreamer-0.2.16 → actionstreamer-0.2.18}/ActionStreamer/__init__.py +0 -0
  29. {actionstreamer-0.2.16 → actionstreamer-0.2.18}/README.md +0 -0
@@ -1,12 +1,8 @@
1
1
  import json
2
2
 
3
- from ActionStreamer import *
4
- from ActionStreamer.WebService import *
5
3
  import ActionStreamer
6
- from ActionStreamer import CommonFunctions
7
- from ActionStreamer.WebService.API import WebServiceResult
8
4
 
9
- def create_file(ws_config: Config.WebServiceConfig, device_name: str, filename: str, file_size: int, sha256_hash: str) -> tuple[int, str, str, int]:
5
+ def create_file(ws_config: ActionStreamer.Config.WebServiceConfig, device_name: str, filename: str, file_size: int, sha256_hash: str) -> tuple[int, str, str, int]:
10
6
 
11
7
  """
12
8
  Create a file.
@@ -35,7 +31,7 @@ def create_file(ws_config: Config.WebServiceConfig, device_name: str, filename:
35
31
  parameters = ''
36
32
  body = json.dumps(json_post_data)
37
33
 
38
- response_code, response_string = CommonFunctions.send_signed_request(ws_config, method, url, path, headers, parameters, body)
34
+ response_code, response_string = ActionStreamer.CommonFunctions.send_signed_request(ws_config, method, url, path, headers, parameters, body)
39
35
 
40
36
  signed_url = ''
41
37
  file_id = 0
@@ -50,7 +46,7 @@ def create_file(ws_config: Config.WebServiceConfig, device_name: str, filename:
50
46
 
51
47
  except Exception as ex:
52
48
 
53
- filename, line_number = CommonFunctions.get_exception_info()
49
+ filename, line_number = ActionStreamer.CommonFunctions.get_exception_info()
54
50
 
55
51
  if filename is not None and line_number is not None:
56
52
  print(f"Exception occurred at line {line_number} in {filename}")
@@ -76,11 +72,11 @@ def update_file_upload_success(ws_config, device_name, file_id):
76
72
  parameters = ''
77
73
  body = json.dumps(json_post_data)
78
74
 
79
- response_code, response_string = CommonFunctions.send_signed_request(ws_config, method, url, path, headers, parameters, body)
75
+ response_code, response_string = ActionStreamer.CommonFunctions.send_signed_request(ws_config, method, url, path, headers, parameters, body)
80
76
 
81
77
  except Exception as ex:
82
78
 
83
- filename, line_number = CommonFunctions.get_exception_info()
79
+ filename, line_number = ActionStreamer.CommonFunctions.get_exception_info()
84
80
  if filename is not None and line_number is not None:
85
81
  print(f"Exception occurred at line {line_number} in {filename}")
86
82
  print(ex)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ActionStreamer
3
- Version: 0.2.16
3
+ Version: 0.2.18
4
4
  Summary: A library for the ActionStreamer API.
5
5
  Author: ActionStreamer
6
6
  Author-email: joe@actionstreamer.com
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "ActionStreamer"
3
- version = "0.2.16"
3
+ version = "0.2.18"
4
4
  description = "A library for the ActionStreamer API."
5
5
  authors = ["ActionStreamer <joe@actionstreamer.com>"]
6
6
  readme = "README.md"