A syntax highlighting prettier printer for Python 3.6+
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, sort_dict_keys=True)
{
'example dict': {
'set': {1, 2, 3, 4}
},
'example_tuple': (1, 2, 3, 4),
'word': (
'Python is an ',
'interpreted ',
'programming ',
'language.'
)
}
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file prettier_printer-0.1.4-py3-none-any.whl.
File metadata
- Download URL: prettier_printer-0.1.4-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
061d607ebaba1bb6b93da3fde3dc74087b539095f381839cd1aba2f67b0203d0
|
|
| MD5 |
30c37f49c90b743cde1c04607e57fc17
|
|
| BLAKE2b-256 |
d5c1496bab481d1099c810f6125dfb499dfadfef8a78cae3385ec04d8580e413
|