class pprint.PrettyPrinter(indent=1, width=80, depth=None, stream=None, *, compact=False, sort_dicts=True, underscore_numbers=False) Construct a PrettyPrinter instance. This constructor understands several keyword parameters. stream (default sys.stdout) is a file-like object to which the output will be written by calling its write() method. If both stream and sys.stdout are None, then pprint() silently returns. Other values configure the manner in which nesting of complex data structures is displayed. indent (default 1) specifies the amount of indentation added for each nesting level. depth controls the number of nesting levels which may be printed; if the data structure being printed is too deep, the next contained level is replaced by .... By default, there is no constraint on the depth of the objects being formatted.