A syntax-highlighting for Python code.
Project description
Prettier_Printer: A syntax highlighting prettier printer for Python 3.6+
This library intends to print prettier for python code as simple and intuitive as possible.
Tutorial
Pretty print common Python values:
>>> from prettier_printer import pprint
>>> d = {
... 'example_tuple': (1, 2, 3, 4),
... 'word': 'Python is an interpreted programming language.',
... 'example dict': {'set': set([1, 2, 3, 4])}
...}
>>> pprint(d, depth=10, indent=2, width=12)
{
(
'example ',
'tuple'
): (1, 2, 3, 4),
'word': (
'Python is ',
'an ',
'interpreted ',
'programming ',
'language.'
),
'example dict': {
'set': {1, 2, 3, 4}
}
}
Pretty print common Python values with syntax highlight:
Installation
$ pipenv install prettier_printer
Only Python 3.6 is supported.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for prettier_printer-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | af7ba6bb48cdbab0dbf346be69d57866d722eb9b4154ce0a39902cacd88b0576 |
|
MD5 | 6d25c4e5c76fd8f350afd9c48480631a |
|
BLAKE2b-256 | e9b569e7ab914f80b5b83eaa23eb8a3cd204c0a803a3d877cb18ce75e4f45ae5 |