Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.