MCPcopy Create free account
hub / github.com/ipython/traitlets / JsonPrinter

Class JsonPrinter

examples/argcomplete_app.py:85–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83
84
85class JsonPrinter(Configurable):
86 indent = Int(None, allow_none=True).tag(config=True, argcompleter=_indent_completions)
87
88 def print(self, obj):
89 print(json.dumps(obj, indent=self.indent))
90
91
92class EnvironPrinter(Configurable):

Callers 1

printMethod · 0.85

Calls 2

IntClass · 0.90
tagMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…