grepros 1.3.0
grep for ROS bag files and live topics
Loading...
Searching...
No Matches
CsvWriter Class Reference
Inheritance diagram for CsvWriter:
Inheritance graph

Public Member Functions

 __init__ (self, csvfile, dialect="excel", **fmtparams)
 
 dialect (self)
 
 writerow (self, row)
 
 writerows (self, rows)
 

Detailed Description

Wraps csv.writer with bool conversion, iterator support, and lesser memory use.

Definition at line 182 of file csv.py.

Constructor & Destructor Documentation

◆ __init__()

__init__ (   self,
  csvfile,
  dialect = "excel",
**  fmtparams 
)
@param   csvfile    file-like object with `write()` method
@param   dialect    CSV dialect to use, one from `csv.list_dialects()`
@param   fmtparams  override individual format parameters in dialect

Definition at line 185 of file csv.py.

Member Function Documentation

◆ dialect()

dialect (   self)
A read-only description of the dialect in use by the writer.

Definition at line 201 of file csv.py.

◆ writerow()

writerow (   self,
  row 
)
Writes the row to the writer’s file object.

Fields will be formatted according to the current dialect.

@param   row  iterable of field values
@return       return value of the call to the write method of the underlying file object

Definition at line 205 of file csv.py.

◆ writerows()

writerows (   self,
  rows 
)
Writes the rows to the writer’s file object.

Fields will be formatted according to the current dialect.

@param   rows  iterable of iterables of field values

Definition at line 237 of file csv.py.


The documentation for this class was generated from the following file: