{ "info": { "author": "Ofir Brukner", "author_email": "ofirbrukner@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Software Development :: Libraries", "Topic :: Utilities" ], "description": "py-printer\n==========\nPrinting everything for everyone!\n\n.. image:: https://img.shields.io/pypi/v/pyprinter.svg\n :target: https://pypi.python.org/pypi/pyprinter\n :alt: Latest Version\n\n.. image:: https://travis-ci.org/ofir123/py-printer.svg\n :target: https://travis-ci.org/ofir123/py-printer\n :alt: Travis CI build status\n\n:Project page: https://github.com/ofir123/py-printer\n\nUsage\n-----\n| The perfect printer for Python 3!\n|\n| Just create a printer instance, pick your favorite colors and get to work!\n| py-printer supports all ANSI colors, and crazy encodings!\n| It also calculates the console width in order to wrap words properly.\n|\n\n.. code:: python\n\n import pyprinter\n\n printer = pyprinter.get_printer()\n\n # Write a simple line.\n printer.write_line(printer.YELLOW + 'Hello World!')\n\n # Or use the color functions (nested coloring is also supported).\n printer.write_line(printer.yellow('Hello World!'))\n\n.. image:: docs/images/simple.png\n\n.. code:: python\n\n # Use indentations.\n with printer.group(indent=4):\n printer.write_line(printer.GREEN + 'Hello Again!')\n\n.. image:: docs/images/indented.png\n\n.. code:: python\n\n # Write aligned values.\n printer.write_aligned('Awesomeness', 'Check!')\n\n.. image:: docs/images/aligned.png\n\n.. code:: python\n\n # Write titles.\n printer.write_title('Wow!')\n\n.. image:: docs/images/title.png\n\n.. code:: python\n\n # Print human-readable file sizes.\n from pyprinter import FileSize\n\n FileSize(42352352).pretty_print()\n\n.. image:: docs/images/file_size.png\n\n.. code:: python\n\n # Use tables.\n from pyprinter import Table\n\n Table('Test', [{'1': 'a', '2': 'b', '3': 'c'}]).pretty_print()\n\n.. image:: docs/images/table.png\n\n.. code:: python\n\n # Integrate friendly progress bars.\n import time\n from pyprinter import ProgressBar\n\n progress = ProgressBar(10)\n for i in range(10):\n time.sleep(1)\n progress.eval(i)\n progress.finish()\n\n.. image:: docs/images/progress_bar.png\n\n.. code:: python\n\n # Use word-wrapping or colors only.\n printer = pyprinter.get_printer(colors=False, width_limit=True)\n printer.write_line(printer.YELLOW + 'Hello World!')\n\n.. image:: docs/images/no_colors.png\n\nInstall\n^^^^^^^\n``pip install pyprinter``\n\nDevelopment\n^^^^^^^^^^^\nIn order to build a new version, do the following:\n\n - Update version string in ``setup.py`` (in both ``version`` and ``download_url`` fields)\n - Update version in ``__init__.py`` file.\n - Run ``python setup.py sdist bdist_wheel`` to create the build\n - Run ``twine upload dist/*`` to upload everything to PyPi\n - Create a release (and tag) for the new version in GitHub (and delete the old one)\n - Delete old version from PyPi as well\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "https://github.com/ofir123/py-printer/archive/1.5.3.tar.gz", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/ofir123/py-printer", "keywords": "Python,Python3,color,print,unicode,encoding", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "pyprinter", "package_url": "https://pypi.org/project/pyprinter/", "platform": "", "project_url": "https://pypi.org/project/pyprinter/", "project_urls": { "Download": "https://github.com/ofir123/py-printer/archive/1.5.3.tar.gz", "Homepage": "https://github.com/ofir123/py-printer" }, "release_url": "https://pypi.org/project/pyprinter/1.5.3/", "requires_dist": [ "ipykernel", "pyreadline ; platform_system == \"Windows\"", "pytest ; extra == 'test'", "pytest-pep8 ; extra == 'test'", "pytest-flakes ; extra == 'test'" ], "requires_python": "", "summary": "Print Everything!", "version": "1.5.3" }, "last_serial": 4736061, "releases": { "1.3.7": [ { "comment_text": "", "digests": { "md5": "dd98d1243119ace75557f24846d8430f", "sha256": "efdab931d3344116b9f0734a74b7f83d97d0e7b38f3573b294ec00daff3115d0" }, "downloads": -1, "filename": "pyprinter-1.3.7-py3-none-any.whl", "has_sig": false, "md5_digest": "dd98d1243119ace75557f24846d8430f", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 111697, "upload_time": "2018-10-07T19:13:41", "url": "https://files.pythonhosted.org/packages/a0/04/cc8d02804574ee0e0d2f181ffee3f498bd16a38468a4e10f31181c067b56/pyprinter-1.3.7-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3e4716e36bb527f2b457d731c82fedc3", "sha256": "fcef40a90ae34671ee2f848f35fe78135c888bd8107d43dd1d58d5ea4ebe67f7" }, "downloads": -1, "filename": "pyprinter-1.3.7.tar.gz", "has_sig": false, "md5_digest": "3e4716e36bb527f2b457d731c82fedc3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 108845, "upload_time": "2018-10-07T19:13:43", "url": "https://files.pythonhosted.org/packages/66/ca/feb5c38d5ebd82cf06444844f5724e1a341e974370478439366f1c508c55/pyprinter-1.3.7.tar.gz" } ], "1.5.3": [ { "comment_text": "", "digests": { "md5": "d0a8fae83361b0f2c51286985f2f4708", "sha256": "a9a2da268f59eae8259e0667698d10670164a86239a0ed05de579633f19b23de" }, "downloads": -1, "filename": "pyprinter-1.5.3-py3-none-any.whl", "has_sig": false, "md5_digest": "d0a8fae83361b0f2c51286985f2f4708", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 27395, "upload_time": "2019-01-24T15:01:33", "url": "https://files.pythonhosted.org/packages/da/53/34f291070efacb3bba34767fa9416095bcd142064a2a4adf69a3d3b1b9a1/pyprinter-1.5.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "066bb7950949bf5dbc5bf40298bdeeff", "sha256": "06da54f3ea3cc8e2b76ec43b4268354d38065a40b75959c9de340f353787d676" }, "downloads": -1, "filename": "pyprinter-1.5.3.tar.gz", "has_sig": false, "md5_digest": "066bb7950949bf5dbc5bf40298bdeeff", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 25885, "upload_time": "2019-01-24T15:01:34", "url": "https://files.pythonhosted.org/packages/3e/e3/a6a423b7e30c5bae9c78bec482c3f8a3320e6c54e3c23acb4ccbc4bb8ec7/pyprinter-1.5.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d0a8fae83361b0f2c51286985f2f4708", "sha256": "a9a2da268f59eae8259e0667698d10670164a86239a0ed05de579633f19b23de" }, "downloads": -1, "filename": "pyprinter-1.5.3-py3-none-any.whl", "has_sig": false, "md5_digest": "d0a8fae83361b0f2c51286985f2f4708", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 27395, "upload_time": "2019-01-24T15:01:33", "url": "https://files.pythonhosted.org/packages/da/53/34f291070efacb3bba34767fa9416095bcd142064a2a4adf69a3d3b1b9a1/pyprinter-1.5.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "066bb7950949bf5dbc5bf40298bdeeff", "sha256": "06da54f3ea3cc8e2b76ec43b4268354d38065a40b75959c9de340f353787d676" }, "downloads": -1, "filename": "pyprinter-1.5.3.tar.gz", "has_sig": false, "md5_digest": "066bb7950949bf5dbc5bf40298bdeeff", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 25885, "upload_time": "2019-01-24T15:01:34", "url": "https://files.pythonhosted.org/packages/3e/e3/a6a423b7e30c5bae9c78bec482c3f8a3320e6c54e3c23acb4ccbc4bb8ec7/pyprinter-1.5.3.tar.gz" } ] }