Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

prettier-printer

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prettier-printer

A syntax highlighting prettier printer for Python 3.6+

  • 0.1.4
  • PyPI
  • Socket score

Maintainers
1

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:

.. code-block:: pycon

>>> 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:

.. image:: https://farm8.staticflickr.com/7803/40459058903_0469f24702_b.jpg

Installation

.. code-block:: shell

$ pipenv install prettier_printer

Only Python 3.6 is supported.

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc