Powered by OPF
OPF WIKI STATIC ARCHIVE
2,681 pages · 153 spaces · 776 tags · 4,025 history records · 96.2% of the original wiki recovered
Archived copy. This page was recovered from the Internet Archive snapshot of /display/KB/FIDO Python workflow implementation tips taken on 2019-07-25. The original wiki at wiki.opf-labs.org is being decommissioned.

FIDO Python workflow implementation tips

Created by Maurice de Rooij on Jul 31, 2013 · last edited by Maurice de Rooij · on Aug 01, 2013 (view history) · 11 versions

Introduction

FIDO does not (yet) have an API which can be called for implementation in workflow systems. Although there is a FIDO class which could be called after import of fido.py, it is not recommended to use it. This has to do with the fact the class was not designed to be instantiated from outside scripts.

This does not mean you can not integrate FIDO into your workflows. FIDO has a main() function which accepts the same parameters as the command line interface which you have to pass as a list. You also need to catch the STDOUT and STDERR streams from FIDO in order to do usefull things with them, otherwise FIDO will just happily print to the STDOUT and STDERR streams of the calling script.

Below are simple examples for integration into Python worklow applications.

Implementation when fido.py is on the same path as your worklow.py

Implementation when fido.py is on a different path than your worklow.py