{ "info": { "author": "Fotis Gimian", "author_email": "fgimiansoftware@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Console", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: Implementation", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Terminals" ], "description": "Painter\n-------\n\n.. image:: https://travis-ci.org/fgimian/painter.png?branch=v0.2\n :target: https://travis-ci.org/fgimian/painter\n :alt: Build Status\n.. image:: https://coveralls.io/repos/fgimian/painter/badge.png?branch=master\n :target: https://coveralls.io/r/fgimian/painter?branch=master\n :alt: Coverage Status\n.. image:: https://pypip.in/license/painter/badge.png\n :target: https://pypi.python.org/pypi/painter/\n :alt: License\n.. image:: https://pypip.in/version/painter/badge.png\n :target: https://pypi.python.org/pypi/painter/\n :alt: Latest Version\n.. image:: https://pypip.in/download/painter/badge.png\n :target: https://pypi.python.org/pypi/painter/\n :alt: Downloads\n\n.. |logo| image:: https://raw.githubusercontent.com/fgimian/painter/master/images/painter_logo.png\n :alt: Painter Logo\n\n|logo|\n\nPainter is an ANSI coloring library based on the excellent\n`chalk `_ and\n`colors.js `_\nlibraries for Node.js. However, painter attempts to provide an even more\nexpressive API which reads like English.\n\nPainter is fully tested with 100% coverage and also completely Flake8\ncompliant too!\n\nQuick Start\n```````````\n\nInstall Painter in your virtualenv as follows:\n\n.. code:: bash\n\n pip install painter\n\nAnd now, go ahead and use it to output colors to your terminal:\n\n.. code:: python\n\n from __future__ import print_function\n\n from painter import paint\n\n # Simple printing of colors\n print('Welcome to Painter!', paint.red('I can paint things red'),\n paint.blue('and blue'))\n\n # Chaining colors and styles\n print(paint.blue.on_red.bold.underline('and far more complex combos too'))\n print()\n\n # Using color patterns\n print(paint.rainbow('Awww look, a pretty rainbow :)'))\n print(paint.zebra('and a scary looking zebra!'))\n print()\n\n # Nested painting\n print(paint.on_red('I can also use a background color across',\n paint.blue('multiple'),\n paint.yellow('foreground colors')))\n\n # Custom separator\n print(paint('and', 'allow', 'you to use', paint.red('custom separators'),\n sep='-'))\n print()\n\n # Creating themes\n cool_theme = paint.green.on_red.underline.bold\n print('Creating', cool_theme('your own theme'), 'is easy')\n\n # Easily disable painting of colors\n paint.enabled = False\n print('and I allow you to easily', paint.red('disable'), paint.blue('me'))\n print()\n\n paint.enabled = True\n print('Hope you have a', paint.blue('lovely day!'), paint.green(':)'))\n\nThe output of this script looks something like this:\n\n.. image:: https://raw.githubusercontent.com/fgimian/painter/master/images/painter_demo.png\n :alt: Painter Demo\n\nDocumentation\n`````````````\n\nFor full details on using Painter, please check out the\n`Painter GitHub Page `_.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/fgimian/painter", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "painter", "package_url": "https://pypi.org/project/painter/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/painter/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/fgimian/painter" }, "release_url": "https://pypi.org/project/painter/0.3.1/", "requires_dist": null, "requires_python": null, "summary": "Your own expressive painter who colors text in your terminal.", "version": "0.3.1" }, "last_serial": 1074831, "releases": { "0.2": [ { "comment_text": "", "digests": { "md5": "394283a77a46b5092cce6d58dc7a55e2", "sha256": "dec37468907ff8c3b524f878460fdf4f070937e350ded7f84755f9ed17dafced" }, "downloads": -1, "filename": "painter-0.2.tar.gz", "has_sig": false, "md5_digest": "394283a77a46b5092cce6d58dc7a55e2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4047, "upload_time": "2014-04-26T10:09:15", "url": "https://files.pythonhosted.org/packages/a8/1d/4063de80dbd553b17fb879f34428107b3e24d85d39f346df63bfbadbba3e/painter-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "d1e81fb60556f59fc5bc6ffdfe9b4e7d", "sha256": "111f135ce458a23c4388667e6146e148a7ca07d572b389dfec866c964807b762" }, "downloads": -1, "filename": "painter-0.3.tar.gz", "has_sig": false, "md5_digest": "d1e81fb60556f59fc5bc6ffdfe9b4e7d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5553, "upload_time": "2014-04-28T12:50:07", "url": "https://files.pythonhosted.org/packages/fa/28/f8d0f7af9c0c1bc075ae668a28efe1b5c96b78e60c84698f5074b477b066/painter-0.3.tar.gz" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "64fa1e0f1866f72e5e147acc0480a105", "sha256": "3373463d584ba9bbbb23d570c37893e7930b93704fe1149df88e9d2ef906fc88" }, "downloads": -1, "filename": "painter-0.3.1.tar.gz", "has_sig": false, "md5_digest": "64fa1e0f1866f72e5e147acc0480a105", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5691, "upload_time": "2014-04-28T23:53:08", "url": "https://files.pythonhosted.org/packages/82/a1/6b98ddf98374c29f930eae8cbdcde25480e1b83d21c32a3c4e61b0df019c/painter-0.3.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "64fa1e0f1866f72e5e147acc0480a105", "sha256": "3373463d584ba9bbbb23d570c37893e7930b93704fe1149df88e9d2ef906fc88" }, "downloads": -1, "filename": "painter-0.3.1.tar.gz", "has_sig": false, "md5_digest": "64fa1e0f1866f72e5e147acc0480a105", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5691, "upload_time": "2014-04-28T23:53:08", "url": "https://files.pythonhosted.org/packages/82/a1/6b98ddf98374c29f930eae8cbdcde25480e1b83d21c32a3c4e61b0df019c/painter-0.3.1.tar.gz" } ] }