Google Markdown

The md layout reads and writes records as Markdown tables using an interface that looks like csv.

Standard Markdown does not support tables, but Google Markdown as used in github does. This layout lets you read and write that layout for text record processing.

class txf.layouts.md.LineReader(iterable, **config)

An iterator that returns strings parsed with split_escaped(). It skips rows which are header layoutting.

class txf.layouts.md.DictReader(iterable[, fieldnames=None[, **config]])

An iterator that returns strings parsed with split_escaped(). It is a subclass of DictReader and reads the fieldnames from the header row if they have not been supplied.

class txf.layouts.md.LineWriter(outfile, fieldnames, **config)

An txf.layouts.LineWriter that returns strings joined with join_escaped(). It skips rows which are header layoutting.

class txf.layouts.md.DictWriter(outfile, fieldnames, **config)

A txf.layouts.DictWriter that

writeheader()

Writes the Markdown header and underlines.

writerow(row)

Writes the row in Markdown table layout.

writefooter()

NOP