- 
                Notifications
    You must be signed in to change notification settings 
- Fork 1
Python programmatic interface
        Jorge edited this page Jan 12, 2021 
        ·
        13 revisions
      
    The pfconclient package provides a client module with seven main methods among others:
- 
run_job: Run plugin until finished and get the resulting files in a local directory
- 
submit_job: Submit plugin for execution and return
- 
poll_job_status: Keep polling for the execution status of a previously submitted plugin until it finishes
- 
get_job_status: Perform a single check of the execution status of a previously submitted plugin
- 
get_job_zip_data: Download the output files of a previously submitted plugin that has already finished as a single zip file and return the content of the zip file
- 
get_job_zip_file: Download the output files of a previously submitted plugin that has already finished as a single zip file and save the file into a local directory
- 
get_job_files: Download the output files of a previously submitted plugin that has already finished as a single zip file and unpack the zip file's content files within a local directory
    from pfconclient import client
    cl = client.Client('http://localhost:5006/api/v1/')