``pp``: an alias for pprint++
=============================
``pp`` can be installed with Python 2 or Python 3 using ``pip`` or
``easy_install``::
$ pip install pprintpp pp-ez
- OR -
$ easy_install pprintpp pp-ez
The ``pp`` package is just an alias for the ``pprintpp`` package (and falls back
to the ``pprint`` package if ``pprintpp`` isn't available), plus a bit of magic
so it can be called directly::
>>> import pp
>>> pp(["Hello", "world"])
["Hello", "world"]
>>> pp.fmt([1, 2, 3])
'[1, 2, 3]'
>>> pp.pprint([1, 2, 3])
[1, 2, 3]
>>> pp.pformat([1, 2, 3])
'[1, 2, 3]'
By default, ``pp`` tries to use the ``pprintpp`` package, but if that is not
available it will fall back to using ``pprint``::
>>> import pp
>>> pp
<module 'pp' (pp_magic_module with pprint_mod='pprint')>
>>> pp.pprint_mod
<module 'pprint' from '.../lib/python2.7/pprint.pyc'>
See also: ``pprint++``: https://pypi.python.org/pypi/pprintpp
Raw data
{
"_id": null,
"home_page": "https://github.com/wolever/pprintpp",
"name": "pp-ez",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": null,
"author": "David Wolever",
"author_email": "david@wolever.net",
"download_url": "https://files.pythonhosted.org/packages/6a/6f/eb7883bbc0c2658229266e93e2eadeb503a4b120f4a19806348685d2ee37/pp-ez-0.2.0.tar.gz",
"platform": "UNKNOWN",
"description": "``pp``: an alias for pprint++\n=============================\n\n``pp`` can be installed with Python 2 or Python 3 using ``pip`` or\n``easy_install``::\n\n $ pip install pprintpp pp-ez\n - OR -\n $ easy_install pprintpp pp-ez\n\nThe ``pp`` package is just an alias for the ``pprintpp`` package (and falls back\nto the ``pprint`` package if ``pprintpp`` isn't available), plus a bit of magic\nso it can be called directly::\n\n >>> import pp\n >>> pp([\"Hello\", \"world\"])\n [\"Hello\", \"world\"]\n >>> pp.fmt([1, 2, 3])\n '[1, 2, 3]'\n >>> pp.pprint([1, 2, 3])\n [1, 2, 3]\n >>> pp.pformat([1, 2, 3])\n '[1, 2, 3]'\n\nBy default, ``pp`` tries to use the ``pprintpp`` package, but if that is not\navailable it will fall back to using ``pprint``::\n\n >>> import pp\n >>> pp\n <module 'pp' (pp_magic_module with pprint_mod='pprint')>\n >>> pp.pprint_mod\n <module 'pprint' from '.../lib/python2.7/pprint.pyc'>\n\n\nSee also: ``pprint++``: https://pypi.python.org/pypi/pprintpp",
"bugtrack_url": null,
"license": "BSD",
"summary": "A short alias for the pprintpp or pprint module",
"version": "0.2.0",
"project_urls": {
"Download": "UNKNOWN",
"Homepage": "https://github.com/wolever/pprintpp"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "3efb71815f82143b90c82a2e1b4fdd2e556b124d8b4e3c570297d69f9c4ded1d",
"md5": "e69483163bf34a591c617e7b72d8bdac",
"sha256": "554dc28eff8b2df864fcd3326bd5fa0ec3f2b85bc9590fd96771a7c49e45c121"
},
"downloads": -1,
"filename": "pp_ez-0.2.0-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "e69483163bf34a591c617e7b72d8bdac",
"packagetype": "bdist_wheel",
"python_version": "2.7",
"requires_python": null,
"size": 3321,
"upload_time": "2014-04-22T17:27:57",
"upload_time_iso_8601": "2014-04-22T17:27:57.677056Z",
"url": "https://files.pythonhosted.org/packages/3e/fb/71815f82143b90c82a2e1b4fdd2e556b124d8b4e3c570297d69f9c4ded1d/pp_ez-0.2.0-py2.py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "6a6feb7883bbc0c2658229266e93e2eadeb503a4b120f4a19806348685d2ee37",
"md5": "8dc8ae37adaf6239e888d62ceb592809",
"sha256": "87b9e5a0fdd7ced5b46d1b61706113cac9ec1670a76b10d308334db44c20cc29"
},
"downloads": -1,
"filename": "pp-ez-0.2.0.tar.gz",
"has_sig": false,
"md5_digest": "8dc8ae37adaf6239e888d62ceb592809",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 2045,
"upload_time": "2014-04-22T17:27:54",
"upload_time_iso_8601": "2014-04-22T17:27:54.969077Z",
"url": "https://files.pythonhosted.org/packages/6a/6f/eb7883bbc0c2658229266e93e2eadeb503a4b120f4a19806348685d2ee37/pp-ez-0.2.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2014-04-22 17:27:54",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "wolever",
"github_project": "pprintpp",
"travis_ci": true,
"coveralls": false,
"github_actions": false,
"tox": true,
"lcname": "pp-ez"
}