xpypact.utils package

Submodules

xpypact.utils.io module

xpypact.utils.resource module

xpypact.utils.types module

Module contents

The package utilities.

xpypact.utils.print_cols(seq, fid=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>, max_columns=6, fmt='{}')[source]

Print sequence in columns.

Parameters:
  • seq (Iterable[Any]) – sequence to print

  • fid (SupportsWrite[str]) – output

  • max_columns (int) – max columns in a line

  • fmt (str) – format string

Returns:

the number of the last column printed on the last row

Return type:

int