Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)

src/s/b/sbgsdk-0.5.4/sbgsdk/schema/io_list.py   sbgsdk(Download)
from sbgsdk.schema.io_value import IOValue
from sbgsdk.util import DotAccessDict, intersect_dicts
 
 
class IOList(object):
    def __init__(self, value=None):
        value = value or []
        if isinstance(value, basestring):
            value = [value]
        self._values = [IOValue(v) for v in value or []]
    def add_file(self, path=None):
        """ Add new file to list of outputs and return the object. """
        value = IOValue(path)
        self._values.append(value)
        return value