FastBasic

class astropy.io.ascii.FastBasic(default_kwargs={}, **user_kwargs)[source]

Bases: object

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. Unlike the other ASCII readers and writers, this class is not very extensible and is restricted by optimization requirements.

Attributes Summary

fill_extra_cols
guessing
strict_names

Methods Summary

check_header(self)
make_table(self, data, comments) Actually make the output table give the data and comments.
read(self, table) Read input data (file-like object, filename, list of strings, or single string) into a Table and return the result.
write(self, table, output) Use a fast Cython method to write table data to output, where output is a filename or file-like object.

Attributes Documentation

fill_extra_cols = False
guessing = False
strict_names = False

Methods Documentation

check_header(self)[source]
make_table(self, data, comments)[source]

Actually make the output table give the data and comments.

read(self, table)[source]

Read input data (file-like object, filename, list of strings, or single string) into a Table and return the result.

write(self, table, output)[source]

Use a fast Cython method to write table data to output, where output is a filename or file-like object.