sprocket-systems.coda.sdk 1.2.2__tar.gz → 1.3.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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sprocket-systems.coda.sdk
3
- Version: 1.2.2
3
+ Version: 1.3.0
4
4
  Summary: The Coda SDK provides a Python interface to define Coda workflows, create jobs and run them.
5
5
  Keywords: python,coda,sdk
6
6
  Author-Email: Sprocket Systems <support@sprocket.systems>
@@ -29,7 +29,7 @@ classifiers = [
29
29
  dependencies = [
30
30
  "requests",
31
31
  ]
32
- version = "1.2.2"
32
+ version = "1.3.0"
33
33
 
34
34
  [project.urls]
35
35
  Documentation = "https://coda.sprocket.systems/docs/sdks/python/"
@@ -1,6 +1,6 @@
1
1
  # The versions below will be replaced automatically in CI.
2
2
  # You do not need to modify any of the versions below.
3
- __version__ = "1.2.2"
3
+ __version__ = "1.3.0"
4
4
  CODA_APP_SUITE_VERSION = "+coda-1.72.0"
5
5
  FINAL_VERSION = __version__ + CODA_APP_SUITE_VERSION
6
6
 
@@ -6,6 +6,7 @@ import requests
6
6
  import copy
7
7
  import shutil
8
8
  import time
9
+ import urllib3
9
10
 
10
11
  from .tc_tools import time_seconds_to_vid_frames,vid_frames_to_tc, tc_to_time_seconds
11
12
 
@@ -18,7 +19,13 @@ def make_request(func,port,route,payload=None):
18
19
  auth = None
19
20
  if os.getenv('CODA_API_TOKEN'):
20
21
  auth= {'Authorization': f"Bearer {os.getenv('CODA_API_TOKEN')}"}
21
- ret = func(url,json=payload,headers=auth)
22
+
23
+ verify = True
24
+ if os.getenv('CODA_API_INSECURE_SKIP_VERIFY'):
25
+ urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
26
+ verify = False
27
+
28
+ ret = func(url,json=payload,headers=auth,verify=verify)
22
29
  return ret
23
30
 
24
31
  def timingInfo(inputs,venue=None,fps=None,ffoa=None,lfoa=None,start_time=None):