get_writer

astropy.io.ascii.get_writer(Writer=None, fast_writer=True, **kwargs)[source]

Initialize a table writer allowing for common customizations. Most of the default behavior for various parameters is determined by the Writer class.

Parameters:
WriterWriter

Writer class (DEPRECATED). Defaults to Basic.

delimiterpython:str

Column delimiter string

commentpython:str

String defining a comment line in table

quotecharpython:str

One-character string to quote fields containing special characters

formatspython:dict

Dictionary of format specifiers or formatting functions

strip_whitespacebool

Strip surrounding whitespace from column values.

namespython:list

List of names corresponding to each data column

include_namespython:list

List of names to include in output.

exclude_namespython:list

List of names to exclude from output (applied after include_names)

fast_writerbool

Whether to use the fast Cython writer.

Returns:
writerBaseReader subclass

ASCII format writer instance