
Product
Secure Your AI-Generated Code with Socket MCP
Socket MCP brings real-time security checks to AI-generated code, helping developers catch risky dependencies before they enter the codebase.
This library intends to print prettier for python code as simple and intuitive as possible.
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
.. code-block:: shell
$ pipenv install prettier_printer
Only Python 3.6 is supported.
FAQs
A syntax highlighting prettier printer for Python 3.6+
We found that prettier-printer demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Product
Socket MCP brings real-time security checks to AI-generated code, helping developers catch risky dependencies before they enter the codebase.
Security News
As vulnerability data bottlenecks grow, the federal government is formally investigating NIST’s handling of the National Vulnerability Database.
Research
Security News
Socket’s Threat Research Team has uncovered 60 npm packages using post-install scripts to silently exfiltrate hostnames, IP addresses, DNS servers, and user directories to a Discord-controlled endpoint.