Skip to main content
`Ctrl`+`K`

# get_reader

astropy.io.ascii.get_reader(reader_cls=None, inputter_cls=None, outputter_cls=None, **kwargs)

  Initialize a table reader allowing for common customizations.

  Most of the default behavior for various parameters is determined by the Reader class specified by `reader_cls`.

  Parameters:
    reader_cls `BaseReader`

      Reader class. Default is `Basic`.

    inputter_cls `BaseInputter`

      Inputter class

    outputter_cls `BaseOutputter`

      Outputter class

    delimiter `python:str`

      Column delimiter string

    comment `python:str`

      Regular expression defining a comment line in table

    quotechar `python:str`

      One-character string to quote fields containing special characters

    header_start `python:int`

      Line index for the header line not counting comment or blank lines. A line with only whitespace is considered blank.

    data_start `python:int`

      Line index for the start of data not counting comment or blank lines. A line with only whitespace is considered blank.

    data_end `python:int`

      Line index for the end of data not counting comment or blank lines. This value can be negative to count from the end.

    converters `python:dict`

      Dict of converters.

    data_splitter_cls `BaseSplitter`

      Splitter class to split data columns.

    header_splitter_cls `BaseSplitter`

      Splitter class to split header columns.

    names `python:list`

      List of names corresponding to each data column.

    include_names `python:list`, optional

      List of names to include in output.

    exclude_names `python:list`

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

    fill_values `python:tuple`, `python:list` of `python:tuple`

      Specification of fill values for bad or missing table values.

    fill_include_names `python:list`

      List of names to include in fill_values.

    fill_exclude_names `python:list`

      List of names to exclude from fill_values (applied after `fill_include_names`).

  Returns:
    reader `BaseReader` subclass

      ASCII format reader instance