def __init__(self, resource, write_headers=True, truncate=True,
                 encoding="utf-8", dialect=None,fields=None, **kwds):
        self.write_headers = write_headers
        self.truncate = truncate
        self.encoding = encoding
        self.dialect = dialect
        self.fields = fields
        self.kwds = kwds

        self.close_file = False
        self.handle = None

        mode = "w" if self.truncate else "a"

        self.handle = open(resource, mode=mode, encoding=encoding)

        self.writer = csv.writer(self.handle, dialect=self.dialect, **self.kwds)

        if self.write_headers:
            if not self.fields:
                raise BubblesError("No fields provided")
            self.writer.writerow(self.fields.names())

        self.field_names = self.fields.names()
Lookup the given URIs.
dataset/ETHPy150Open Stiivi/bubbles/bubbles/backends/text/objects.py/CSVTarget.__init__--crossover with--dataset/ETHPy150Open mopidy/mopidy/mopidy/core/library.py/LibraryController.lookup