Simpler package generation using cookiecutter, stdout buffering for consoleplugin

This commit is contained in:
Romain Dorgueil
2017-05-27 14:55:25 +02:00
parent 34aa357fd3
commit eacf52aaf6
11 changed files with 114 additions and 66 deletions

View File

@ -18,7 +18,7 @@ __all__ = [
'Tee',
'count',
'pprint',
'PrettyPrint',
'PrettyPrinter',
'noop',
]
@ -85,7 +85,8 @@ class PrettyPrinter(Configurable):
return ' '.join(((' ' if i else ''), str(item), '=', str(value).strip().replace('\n', '\n' + CLEAR_EOL), CLEAR_EOL))
pprint = Tee(_pprint)
pprint = PrettyPrinter()
pprint.__name__ = 'pprint'
def PrettyPrint(title_keys=('title', 'name', 'id'), print_values=True, sort=True):