sprocket-systems.coda.sdk 1.3.2__py3-none-any.whl → 1.3.3__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 +1 -1
- coda/sdk.py +21 -4
- {sprocket_systems_coda_sdk-1.3.2.dist-info → sprocket_systems_coda_sdk-1.3.3.dist-info}/METADATA +1 -1
- sprocket_systems_coda_sdk-1.3.3.dist-info/RECORD +8 -0
- {sprocket_systems_coda_sdk-1.3.2.dist-info → sprocket_systems_coda_sdk-1.3.3.dist-info}/WHEEL +1 -1
- sprocket_systems_coda_sdk-1.3.2.dist-info/RECORD +0 -8
- {sprocket_systems_coda_sdk-1.3.2.dist-info → sprocket_systems_coda_sdk-1.3.3.dist-info}/entry_points.txt +0 -0
- {sprocket_systems_coda_sdk-1.3.2.dist-info → sprocket_systems_coda_sdk-1.3.3.dist-info}/licenses/LICENSE +0 -0
coda/__init__.py
CHANGED
coda/sdk.py
CHANGED
|
@@ -668,7 +668,7 @@ class CodaWorkflow(object):
|
|
|
668
668
|
|
|
669
669
|
def addImaxEnhancedEncodePackage(self,name,process_blocks,encode_profile,essences=('same_as_input','same_as_input'),naming_convention=None,naming_options=None,package_wide_uuid=False):
|
|
670
670
|
|
|
671
|
-
assert(essences[1] in ['5.1','5.1.4','7.1.
|
|
671
|
+
assert(essences[1] in ['5.1','5.1.4','7.1.5','5.1.1','imax5','imax6','imax12'])
|
|
672
672
|
if type(encode_profile) is str:
|
|
673
673
|
presets = CodaPreset.getPresets('dts')
|
|
674
674
|
pf = [ p for p in presets if p['name']==encode_profile and essences[1] in p['formats'] and 't1cc' in p['definition'] and p['definition']['t1cc']]
|
|
@@ -724,6 +724,12 @@ class CodaWorkflow(object):
|
|
|
724
724
|
#assert(block['output_settings']['venue']=='theatrical')
|
|
725
725
|
fps = essences[0]
|
|
726
726
|
fmt = essences[1]
|
|
727
|
+
if fmt=='imax5':
|
|
728
|
+
fmt='5.1'
|
|
729
|
+
elif fmt=='imax6':
|
|
730
|
+
fmt='5.1.1'
|
|
731
|
+
elif fmt=='imax12':
|
|
732
|
+
fmt='5.1.4'
|
|
727
733
|
if t1cc and fmt!='same_as_input' and 'imax' not in fmt:
|
|
728
734
|
fmt += ';mode=imax_enhanced'
|
|
729
735
|
typ = "printmaster"
|
|
@@ -884,7 +890,7 @@ class CodaWorkflow(object):
|
|
|
884
890
|
for fr in fps:
|
|
885
891
|
for F in fmt:
|
|
886
892
|
for t in typ:
|
|
887
|
-
block['output_essences'][t+'_'+fr+'_'+F]= {
|
|
893
|
+
block['output_essences'][t+'_'+fr+'_'+F.replace(';','_').replace('=','_')]= {
|
|
888
894
|
'audio_format': F,
|
|
889
895
|
'frame_rate': fr,
|
|
890
896
|
'type':t
|
|
@@ -1216,7 +1222,8 @@ class CodaJob(object):
|
|
|
1216
1222
|
if 'id' in J:
|
|
1217
1223
|
print('got src agent from data-io client',J['id'],file=sys.stderr)
|
|
1218
1224
|
self.src_agent= J['id']
|
|
1219
|
-
except:
|
|
1225
|
+
except Exception as E:
|
|
1226
|
+
print('error getting agent from data-io client',str(E),file=sys.stderr)
|
|
1220
1227
|
pass
|
|
1221
1228
|
|
|
1222
1229
|
if (os.getenv('CODA_GROUP_ID')):
|
|
@@ -1314,7 +1321,11 @@ class CodaJob(object):
|
|
|
1314
1321
|
if force_fps is not None:
|
|
1315
1322
|
fpsflag = [ '--frame-rate'] + [ force_fps ]
|
|
1316
1323
|
|
|
1317
|
-
|
|
1324
|
+
cmd = [codaexe] +['inspect']+ fpsflag + ['-i'] + absfiles
|
|
1325
|
+
|
|
1326
|
+
#print(' '.join(cmd),file=sys.stderr)
|
|
1327
|
+
|
|
1328
|
+
ret = subprocess.run(cmd,shell=False,check=True,stdout = subprocess.PIPE)
|
|
1318
1329
|
j = json.loads(ret.stdout)
|
|
1319
1330
|
for t in j['sources']:
|
|
1320
1331
|
for g in j['sources'][t]:
|
|
@@ -1427,6 +1438,12 @@ class CodaJob(object):
|
|
|
1427
1438
|
self.groupId = int(gid)
|
|
1428
1439
|
return
|
|
1429
1440
|
|
|
1441
|
+
@staticmethod
|
|
1442
|
+
def get_jobs_by_date(start_date,end_date):
|
|
1443
|
+
ret = make_request(requests.get,38383,f'/interface/v1/jobs?sort=asc&start_date={start_date}&end_date={end_date}')
|
|
1444
|
+
#print(ret.json(),file=sys.stderr)
|
|
1445
|
+
return ret.json()
|
|
1446
|
+
|
|
1430
1447
|
@staticmethod
|
|
1431
1448
|
def run_raw_payload(J):
|
|
1432
1449
|
CodaJob.validate_raw_payload(J)
|
{sprocket_systems_coda_sdk-1.3.2.dist-info → sprocket_systems_coda_sdk-1.3.3.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: sprocket-systems.coda.sdk
|
|
3
|
-
Version: 1.3.
|
|
3
|
+
Version: 1.3.3
|
|
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=_4341RP0kcCKlywZF94S_c24EV52XnNgRS4aCfXY0Gc,1034
|
|
2
|
+
coda/sdk.py,sha256=ghtRxRfljaEURAjc0gNd0XemScfttA1bownBD7Xb2WY,71124
|
|
3
|
+
coda/tc_tools.py,sha256=hEtVE6xtPqg93WfJ-lQdRQroPdQTkH5HkMLWCIkwIlo,22010
|
|
4
|
+
sprocket_systems_coda_sdk-1.3.3.dist-info/METADATA,sha256=duzJk2eWunDfaY8GTw7JEzAmNcoW2xgnDyR0YCF_oq4,1213
|
|
5
|
+
sprocket_systems_coda_sdk-1.3.3.dist-info/WHEEL,sha256=tsUv_t7BDeJeRHaSrczbGeuK-TtDpGsWi_JfpzD255I,90
|
|
6
|
+
sprocket_systems_coda_sdk-1.3.3.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
|
|
7
|
+
sprocket_systems_coda_sdk-1.3.3.dist-info/licenses/LICENSE,sha256=wrFjizFlraIAPW8JIteGftNH2laAZBBRhdEnPVUsKTM,10198
|
|
8
|
+
sprocket_systems_coda_sdk-1.3.3.dist-info/RECORD,,
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
coda/__init__.py,sha256=9Ps-oyYzXdgi2nKa84OaMl43O8kB5Q_GCNT38Al60m8,1034
|
|
2
|
-
coda/sdk.py,sha256=fF-MKjh183A-D4xbBqEdhFvKr4YAx1GYDjF0zSJZyio,70474
|
|
3
|
-
coda/tc_tools.py,sha256=hEtVE6xtPqg93WfJ-lQdRQroPdQTkH5HkMLWCIkwIlo,22010
|
|
4
|
-
sprocket_systems_coda_sdk-1.3.2.dist-info/METADATA,sha256=SzuQpezPJRER2GllclsPTv08LsLvA5h0hB3KrJzYnVU,1213
|
|
5
|
-
sprocket_systems_coda_sdk-1.3.2.dist-info/WHEEL,sha256=9P2ygRxDrTJz3gsagc0Z96ukrxjr-LFBGOgv3AuKlCA,90
|
|
6
|
-
sprocket_systems_coda_sdk-1.3.2.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
|
|
7
|
-
sprocket_systems_coda_sdk-1.3.2.dist-info/licenses/LICENSE,sha256=wrFjizFlraIAPW8JIteGftNH2laAZBBRhdEnPVUsKTM,10198
|
|
8
|
-
sprocket_systems_coda_sdk-1.3.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|