utils package

Useful functions for creating encryption schemes.

utils.custom_showwarning(message, category, _filename, _lineno, file=None, _line=None)[source]

Custom warning formatter and printer for python warnings. Prints category and message to output file, default stderr.

Parameters:
  • message (Union[Warning, str]) – Warning message, explaining the reason for the warning.

  • category (Type[Warning]) – Warning category.

  • file (Optional[TextIO]) – Optional location to write the warning to. If None we write to stderr.

Return type:

None