.. _f-filetextbinarycolumns: module ``sql.file_text_binary_columns`` ======================================= .. inheritance-diagram:: pyensae.sql.file_text_binary_columns Short summary +++++++++++++ module ``pyensae.sql.file_text_binary_columns`` contains a class which iterations on rows of a text file structured as a table. :githublink:`%|py|8` Classes +++++++ +---------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------+ | class | truncated documentation | +=================================================================================+=========================================================================================================================+ | :class:`TextFileColumns ` | This class opens a text file as if it were a binary file. It can deal with null characters. The file is interpreted ... | +---------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------+ Static Methods ++++++++++++++ +---------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------+ | staticmethod | truncated documentation | +=================================================================================+=========================================================================================+ | :py:meth:`_store ` | Stores a list of dictionaries into a file (add a header). | +---------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------+ | :meth:`fusion ` | Does a fusion between several files with the same columns (different order is allowed). | +---------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------+ Methods +++++++ +----------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------+ | method | truncated documentation | +========================================================================================+==========================================================================================================================+ | :py:meth:`__init__ ` | | +----------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------+ | :py:meth:`__iter__ ` | | +----------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------+ | :py:meth:`__str__ ` | Returns the header. | +----------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------+ | :meth:`close ` | Closes the file and remove all information related to the format, next time it is opened, the format will be checked ... | +----------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------+ | :meth:`get_columns ` | | +----------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------+ | :meth:`open ` | Opens the file and find out if there is a header, what are the columns, what are their type. | +----------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------+ | :meth:`sort ` | Sorts a text file, even a big one, one or several columns gives the order. | +----------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------+ Documentation +++++++++++++ .. automodule:: pyensae.sql.file_text_binary_columns :members: :special-members: __init__ :show-inheritance: