Skip to main content
`Ctrl`+`K`

# Reference/API

## astropy.io.ascii Package

An extensible ASCII table reader and writer.

### Functions

`convert_numpy`(numpy_type) | Return a tuple containing a function which converts a list into a numpy array and the type produced by the converter function.
`get_read_trace`() | Return a traceback of the attempted read formats for the last call to `read` where guessing was enabled.
`get_reader`([reader_cls, inputter_cls, ...]) | Initialize a table reader allowing for common customizations.
`get_writer`([writer_cls, fast_writer]) | Initialize a table writer allowing for common customizations.
`read`(table[, guess]) | Read the input `table` and return the table.
`set_guess`(guess) | Set the default value of the `guess` parameter for read().
`write`(table[, output, format, fast_writer, ...]) | Write the input `table` to `filename`.

### Classes

`AASTex`(**kwargs) | AASTeX format table.
`AllType`() | Subclass of all other data types.
`BaseData`() | Base table data reader.
`BaseHeader`() | Base table header reader.
`BaseInputter`() | Get the lines from the table input and return a list of lines.
`BaseOutputter`() | Output table as a dict of column objects keyed on column name.
`BaseReader`() | Class providing methods to read and write an ASCII table using the specified header, data, inputter, and outputter instances.
`BaseSplitter`() | Base splitter that uses python's split method to do the work.
`Basic`() | Character-delimited table with a single header line at the top.
`BasicData`() | Basic table Data Reader.
`BasicHeader`() | Basic table Header Reader.
`Cds`([readme]) | CDS format table.
`Column`(name) | Table column.
`CommentedHeader`() | Character-delimited table with column names in a comment line.
`Conf`() | Configuration parameters for `astropy.io.ascii`.
`ContinuationLinesInputter`() | Inputter where lines ending in `continuation_char` are joined with the subsequent line.
`Csv`(*[, strip_column_names]) | CSV (comma-separated-values) table.
`Daophot`() | DAOphot format table.
`DefaultSplitter`() | Default class to split strings into columns using python csv.
`Ecsv`() | ECSV (Enhanced Character Separated Values) format table.
`FastBasic`([default_kwargs]) | This class is intended to handle the same format addressed by the ordinary `Basic` writer, but it acts as a wrapper for underlying C code and is therefore much faster.
`FastCommentedHeader`(**kwargs) | A faster version of the `CommentedHeader` reader, which looks for column names in a commented line.
`FastCsv`(**kwargs) | A faster version of the ordinary `Csv` writer that uses the optimized C parsing engine.
`FastNoHeader`(**kwargs) | This class uses the fast C engine to read tables with no header line.
`FastRdb`(**kwargs) | A faster version of the `Rdb` reader.
`FastTab`(**kwargs) | A faster version of the ordinary `Tab` reader that uses the optimized C parsing engine.
`FixedWidth`([col_starts, col_ends, ...]) | Fixed width table with single header line defining column names and positions.
`FixedWidthData`() | Base table data reader.
`FixedWidthHeader`() | Fixed width table header reader.
`FixedWidthNoHeader`([col_starts, col_ends, ...]) | Fixed width table which has no header line.
`FixedWidthSplitter`() | Split line based on fixed start and end positions for each `col` in `self.cols`.
`FixedWidthTwoLine`([position_line, ...]) | Fixed width table which has two header lines.
`FloatType`() | Describes floating-point data.
`HTML`([htmldict]) | HTML format table.
`InconsistentTableError` | Indicates that an input table is inconsistent in some way.
`IntType`() | Describes integer data.
`Ipac`([definition, DBMS]) | IPAC format table.
`Latex`([ignore_latex_commands, latexdict, ...]) | LaTeX format table.
`Mesa`([remove_restart_rows]) | MESA stellar evolution code output format.
`Mrt`() | AAS MRT (Machine-Readable Table) format table.
`NoHeader`() | Character-delimited table with no header line.
`NoType`() | Superclass for `StrType` and `NumType` classes.
`NumType`() | Indicates that a column consists of numerical data.
`ParameterError` | Indicates that a reader cannot handle a passed parameter.
`QDP`([table_id, names, err_specs, sep]) | Quick and Dandy Plot table.
`RST`([header_rows]) | reStructuredText simple format table.
`Rdb`() | Tab-delimited table with a column name row and a type definition row.
`SExtractor`() | SExtractor format table.
`StrType`() | Indicates that a column consists of text data.
`Tab`() | Tab-separated table.
`TableOutputter`() | Output the table as an astropy.table.Table object.
`Tdat`() | TDAT format
`WhitespaceSplitter`() |

### Class Inheritance Diagram