.oO SearXNG Developer Documentation Oo.
|
Public Member Functions | |
__init__ (self, f, dialect=csv.excel, encoding="utf-8", **kwds) | |
writerow (self, row) | |
writerows (self, rows) | |
Public Attributes | |
queue = StringIO() | |
writer = csv.writer(self.queue, dialect=dialect, **kwds) | |
stream = f | |
encoder = getincrementalencoder(encoding)() | |
A CSV writer which will write rows to CSV file "f", which is encoded in the given encoding.
Definition at line 85 of file webutils.py.
searx.webutils.CSVWriter.__init__ | ( | self, | |
f, | |||
dialect = csv.excel, | |||
encoding = "utf-8", | |||
** | kwds ) |
Definition at line 89 of file webutils.py.
searx.webutils.CSVWriter.writerow | ( | self, | |
row ) |
Definition at line 96 of file webutils.py.
References searx.webutils.CSVWriter.encoder, searx.webutils.CSVWriter.queue, searx.network.network.Network.stream(), searx.webutils.CSVWriter.stream, searx.webutils.CSVWriter.writer, and searx.webutils.CSVWriter.writerow().
Referenced by searx.webutils.CSVWriter.writerow(), and searx.webutils.CSVWriter.writerows().
searx.webutils.CSVWriter.writerows | ( | self, | |
rows ) |
Definition at line 108 of file webutils.py.
References searx.webutils.CSVWriter.writerow().
searx.webutils.CSVWriter.encoder = getincrementalencoder(encoding)() |
Definition at line 94 of file webutils.py.
Referenced by searx.webutils.CSVWriter.writerow().
searx.webutils.CSVWriter.queue = StringIO() |
Definition at line 91 of file webutils.py.
Referenced by searx.webutils.CSVWriter.writerow().
searx.webutils.CSVWriter.stream = f |
Definition at line 93 of file webutils.py.
Referenced by searx.webutils.CSVWriter.writerow().
searx.webutils.CSVWriter.writer = csv.writer(self.queue, dialect=dialect, **kwds) |
Definition at line 92 of file webutils.py.
Referenced by searx.webutils.CSVWriter.writerow().