obspy.core.inventory.util.InventoryTextWrapper

class InventoryTextWrapper(width=70, initial_indent='', subsequent_indent='', expand_tabs=True, replace_whitespace=True, fix_sentence_endings=False, break_long_words=True, drop_whitespace=True, break_on_hyphens=True, tabsize=8, *, max_lines=None, placeholder=' [...]')[source]

Bases: textwrap.TextWrapper

Attributes

__dict__
__doc__
__module__
__weakref__ list of weak references to the object (if defined)
sentence_end_re
unicode_whitespace_trans
uspace
wordsep_re
wordsep_simple_re
x

Public Methods

fill Reformat the single paragraph in ‘text’ to fit in lines of no more than ‘self.width’ columns, and return a new string containing the entire wrapped paragraph.
wrap Reformat the single paragraph in ‘text’ so it fits in lines of no more than ‘self.width’ columns, and return a list of wrapped lines.

Private Methods

Warning

Private methods are mainly for internal/developer use and their API might change without notice.

_fix_sentence_endings Correct for sentence endings buried in ‘chunks’.
_handle_long_word _handle_long_word(chunks : [string],
_munge_whitespace Munge whitespace in text: expand tabs and convert all other whitespace characters to spaces.
_split Split the text to wrap into indivisible chunks.
_split_chunks
_wrap_chunks Wrap a sequence of text chunks and return a list of lines of length ‘self.width’ or less.

Special Methods

__dir__ Default dir() implementation.
__format__ Default object formatter.
__init__ Initialize self.
__init_subclass__ This method is called when a class is subclassed.
__new__ Create and return a new object.
__reduce__ Helper for pickle.
__reduce_ex__ Helper for pickle.
__sizeof__ Size of object in memory, in bytes.
__subclasshook__ Abstract classes can override this to customize issubclass().