.. _f-contenthelper: module ``filehelper.content_helper`` ==================================== Short summary +++++++++++++ module ``pyensae.filehelper.content_helper`` Various functions to process text :githublink:`%|py|5` Functions +++++++++ +-------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+ | function | truncated documentation | +===========================================================================================+=============================================================================================================================+ | :func:`enumerate_grep ` | Extracts lines matching a regular expression. | +-------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+ | :func:`file_encoding ` | Returns the encoding of a file. The function relies on `chardet `_. ... | +-------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+ | :func:`file_head ` | Extracts the first *nbline* of a file (assuming it is text file). | +-------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+ | :func:`file_tail ` | Extracts the first nbline of a file (assuming it is text file). | +-------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+ | :func:`replace_comma_by_point ` | Replaces all commas by point in a file (do that inplace). | +-------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+ Documentation +++++++++++++ .. automodule:: pyensae.filehelper.content_helper :members: :special-members: __init__ :show-inheritance: