sprocket-systems.coda.sdk 1.1.0__py3-none-any.whl → 1.3.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.
coda/__init__.py CHANGED
@@ -1,7 +1,7 @@
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.1.0"
4
- CODA_APP_SUITE_VERSION = "+coda-1.68.0"
3
+ __version__ = "1.3.0"
4
+ CODA_APP_SUITE_VERSION = "+coda-1.72.0"
5
5
  FINAL_VERSION = __version__ + CODA_APP_SUITE_VERSION
6
6
 
7
7
  import sys
coda/sdk.py CHANGED
@@ -5,6 +5,8 @@ import subprocess
5
5
  import requests
6
6
  import copy
7
7
  import shutil
8
+ import time
9
+ import urllib3
8
10
 
9
11
  from .tc_tools import time_seconds_to_vid_frames,vid_frames_to_tc, tc_to_time_seconds
10
12
 
@@ -17,7 +19,13 @@ def make_request(func,port,route,payload=None):
17
19
  auth = None
18
20
  if os.getenv('CODA_API_TOKEN'):
19
21
  auth= {'Authorization': f"Bearer {os.getenv('CODA_API_TOKEN')}"}
20
- 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)
21
29
  return ret
22
30
 
23
31
  def timingInfo(inputs,venue=None,fps=None,ffoa=None,lfoa=None,start_time=None):
@@ -357,7 +365,7 @@ class CodaWorkflow(object):
357
365
  self.processBlocks[pid] = pblock
358
366
  return
359
367
 
360
- def addDCPPackage(self,name,process_blocks,reels=False,naming_convention=None,naming_options=None,package_wide_uuid=False):
368
+ def addDCPPackage(self,name,process_blocks,ofps="24",double_frame_rate=False,reels=False,naming_convention=None,naming_options=None,package_wide_uuid=False):
361
369
 
362
370
  naming_convention_id=None
363
371
  if naming_convention and type(naming_convention) is str:
@@ -383,12 +391,16 @@ class CodaWorkflow(object):
383
391
  blist += block
384
392
  block = self.processBlocks[block[0]]
385
393
  assert(block['output_settings']['venue']=='theatrical')
386
- fps = "24"
394
+ if not isinstance(ofps, list):
395
+ FPS = [ofps]
396
+ else:
397
+ FPS = ofps
387
398
  fmt = ["atmos"]
388
399
  typ = ["printmaster"]
389
400
  for F in fmt:
390
- for t in typ:
391
- block['output_essences'][t+'_'+fps+'_'+F]= {
401
+ for fps in FPS:
402
+ for t in typ:
403
+ block['output_essences'][t+'_'+fps+'_'+F]= {
392
404
  'audio_format': F,
393
405
  'frame_rate': fps,
394
406
  'type':t
@@ -399,6 +411,7 @@ class CodaWorkflow(object):
399
411
 
400
412
  self.packages['dcp_mxf'][pid] = {
401
413
  "name": name,
414
+ "double_frame_rate":double_frame_rate,
402
415
  "process_block_ids":blist,
403
416
  "include_reel_splitting" : reels,
404
417
  "include_package_wide_uuid" :package_wide_uuid,
@@ -410,6 +423,7 @@ class CodaWorkflow(object):
410
423
  if naming_options:
411
424
  self.packages['dcp_mxf'][pid]["naming_convention_options"] = naming_options
412
425
 
426
+
413
427
  def addSuperSessionPackage(self,name,process_blocks,essences,super_session_profile=None,naming_convention=None,naming_options=None,package_wide_uuid=False):
414
428
 
415
429
  naming_convention_id=None
@@ -1296,7 +1310,7 @@ class CodaJob(object):
1296
1310
  if force_fps is not None:
1297
1311
  fpsflag = [ '--frame-rate'] + [ force_fps ]
1298
1312
 
1299
- ret = subprocess.run([codaexe] +['inspect']+ ['-i'] + fpsflag + absfiles,shell=False,check=True,stdout = subprocess.PIPE)
1313
+ ret = subprocess.run([codaexe] +['inspect']+ fpsflag + ['-i'] + absfiles,shell=False,check=True,stdout = subprocess.PIPE)
1300
1314
  j = json.loads(ret.stdout)
1301
1315
  for t in j['sources']:
1302
1316
  for g in j['sources'][t]:
@@ -1579,6 +1593,8 @@ class CodaJob(object):
1579
1593
  #print(t,k,'::',wdef['packages'][t][p][k])
1580
1594
  if not ('venue' in k or 'element' in k or 'format' in k or 'frame' in k):
1581
1595
  continue
1596
+ if k == 'double_frame_rate':
1597
+ continue
1582
1598
  if 'same_as_input' in wdef['packages'][t][p][k]:
1583
1599
  if 'venue' in k:
1584
1600
  if type(wdef['packages'][t][p][k]) is list:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sprocket-systems.coda.sdk
3
- Version: 1.1.0
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>
@@ -0,0 +1,8 @@
1
+ coda/__init__.py,sha256=XjHXqopjUC_5KLid3L3slEU3Ghm-vtYzsKlHxqeyf5o,1034
2
+ coda/sdk.py,sha256=yO8JT2wKfgmpfmus90Mg0OAloZdM9UtZQ3m_1a6Md2w,70343
3
+ coda/tc_tools.py,sha256=55aoPnfIJRtPJCeaOHJatWU9D2ZZ5lFdYO0JM3W_Qig,37020
4
+ sprocket_systems_coda_sdk-1.3.0.dist-info/METADATA,sha256=qWjb3h7H_UwLAwnIhEzN6Zzn3orAwWkMVftE5lfTIEM,1213
5
+ sprocket_systems_coda_sdk-1.3.0.dist-info/WHEEL,sha256=9P2ygRxDrTJz3gsagc0Z96ukrxjr-LFBGOgv3AuKlCA,90
6
+ sprocket_systems_coda_sdk-1.3.0.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
7
+ sprocket_systems_coda_sdk-1.3.0.dist-info/licenses/LICENSE,sha256=wrFjizFlraIAPW8JIteGftNH2laAZBBRhdEnPVUsKTM,10198
8
+ sprocket_systems_coda_sdk-1.3.0.dist-info/RECORD,,
@@ -1,8 +0,0 @@
1
- coda/__init__.py,sha256=gvg9TrKcmnGPmBX-LqOwihsYIlOZyzu-eMZn8F2yavg,1034
2
- coda/sdk.py,sha256=L-kC6sgMTziXwTSDwdi7_fDpoq_y2zwsEfXhEhGAt4A,69822
3
- coda/tc_tools.py,sha256=55aoPnfIJRtPJCeaOHJatWU9D2ZZ5lFdYO0JM3W_Qig,37020
4
- sprocket_systems_coda_sdk-1.1.0.dist-info/METADATA,sha256=aFcIWPjzFbf6cdGue3mP4-hc7D9cQDSwxNFeMONnYFs,1213
5
- sprocket_systems_coda_sdk-1.1.0.dist-info/WHEEL,sha256=9P2ygRxDrTJz3gsagc0Z96ukrxjr-LFBGOgv3AuKlCA,90
6
- sprocket_systems_coda_sdk-1.1.0.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
7
- sprocket_systems_coda_sdk-1.1.0.dist-info/licenses/LICENSE,sha256=wrFjizFlraIAPW8JIteGftNH2laAZBBRhdEnPVUsKTM,10198
8
- sprocket_systems_coda_sdk-1.1.0.dist-info/RECORD,,