.. Transmogrifier qmaster API reference qmaster ========================================== .. toctree:: :maxdepth: 2 This module provides a Python API for interfacing with Appleā€™s Qmaster distributed transcode engine. It provides capabilities for fallback from the specified Qmaster cluster controller to local processing via "This Computer", should the Qmaster cluster be down or unavailable. This module also provides timeout facilities to provide graceful fail operation in the event that a job submission hangs the Qmaster system. qmaster.QmasterBatch ------------------------------------------ .. automodule:: qmaster :members: Sample Code ------------------------------------------ Use the qmaster module to get the status of a currently running job. :: >>> myBatch = qmaster.QmasterBatch( batchID='B58B0883-3912-4109-8C8E-EB50C3F52C78', cluster='FCS Cluster') >>> myBatch.getStatus() 'Processing' >>> myBatch.getStatus() 'Successful' Submit a file to compress and wait exit when it finishes. :: >>> myBatch = qmaster.QmasterBatch() >>> myBatch.cluster='FCS Cluster' >>> myBatch.compressorSettingFile='/Users/hunterbj/Desktop/myH.264.setting' >>> myBatch.sourceFile = '/Users/hunterbj/Desktop/mymov.mov' >>> myBatch.destinationFile = '/Users/hunterbj/Desktop/myfileout.mov' >>> myBatch.submitBatchAndWait()