class documentation

class Formatter(ABC):

Known subclasses: unicodes_api.cli.all_to_stdout, unicodes_api.cli.PairsDisplay

View In Hierarchy

Formatter class.

Class Variable NAME subcommand name.
Method __init__ instantiate Formatter class.
Instance Variable popts ParserOpts instance.
Instance Variable args argparse.Namespace value.
Method setup setup class for run.
Method set_args set arguments.
Method setup_popts setup parser options.
Method run Run program.
Method iterator Iterator.
Static Method fmt_single_normal format unicode value normally.
Static Method fmt_dval_sub_lines Format unicode value as staggered line.
Static Method tab_shift Shift text over.
Static Method fmt_group_multi_detail Format group with detail.
Static Method fmt_group_multi_detail_staggered_lines Format group with staggered lines.
Method fmt_group_normal Format group normally.
Method fmt_json Format as parsable json.
Instance Variable _iterator Iterator if set.
NAME =

subcommand name.

(type: Any)
def __init__(self):

instantiate Formatter class.

popts =

ParserOpts instance.

_iterator =

Iterator if set.

args =

argparse.Namespace value.

def setup(self, iterator):
def set_args(self, args):

set arguments.

ParametersargsUndocumented (type: argparse.Namespace)
@abstractmethod
def setup_popts(self):

setup parser options.

@abstractmethod
def run(self):
def iterator(self):

Iterator.

ReturnsUndocumented (type: Iterator[Dict])
@staticmethod
def fmt_single_normal(dval):

format unicode value normally.

@staticmethod
def fmt_dval_sub_lines(dval):

Format unicode value as staggered line.

@staticmethod
def tab_shift(txtblock, shift_len):

Shift text over.

ParameterstxtblockUndocumented (type: str)
shift_lenUndocumented (type: int)
@staticmethod
def fmt_group_multi_detail(title, dvals):

Format group with detail.

ParameterstitleUndocumented
dvalsUndocumented (type: Iterable[Dict])
@staticmethod
def fmt_group_multi_detail_staggered_lines(title, dvals):

Format group with staggered lines.

ParameterstitleUndocumented
dvalsUndocumented (type: Iterable[Dict])
def fmt_group_normal(self):

Format group normally.

ReturnsUndocumented (type: Iterator[str])
def fmt_json(self):

Format as parsable json.

ReturnsUndocumented (type: Iterable[str])
API Documentation for unicodes_api, generated by pydoctor 21.2.2 at 1996-06-17 15:00:00.