{ "info": { "author": "Dave Jones", "author_email": "dave@waveform.org.uk", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "Intended Audience :: Education", "License :: OSI Approved :: BSD License", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Education" ], "description": ".. -*- rst -*-\n\n=========\ncolorzero\n=========\n\ncolorzero is a color manipulation library for Python (yes, *another* one) which\naims to be reasonably simple to use and \"pythonic\" in nature.\n\nIt does *not* aim to be as comprehensive, powerful, or that matter as *correct*\nas, say, `colormath`_. colorzero originally grew out of work on my `picamera`_\nproject, hence it's intended to be sufficiently simple that school children can\nuse it without having to explain color spaces and illuminants. However, it does\naim to be useful to a wide range of skills, hence it does include basic\nfacilities for `CIE Lab`_ representations, and `Delta-E`_ calculations should\nyou need them.\n\nThe major difference between colorzero and other libraries (`grapefruit`_,\n`colormath`_, etc.) is that its ``Color`` class is a ``namedtuple`` descendent.\nThis means it is immutable; you cannot *directly* change the attributes of a\n``Color`` instance. The major advantage of this is that instances can be used\nas keys in dictionaries (for simple `LUTs`_), or placed in sets.\n\nManipulation of ``Color`` instances is done by typical operations with other\nclasses the result of which is a new ``Color`` instance. For example::\n\n >>> Color('red') + Color('blue')\n \n >>> Color('magenta') - Color('red')\n \n >>> Color('red') - Red(0.5)\n \n >>> Color('green') + Color('grey').red\n \n >>> Color.from_hls(0.5, 0.5, 1.0)\n \n >>> Color.from_hls(0.5, 0.5, 1.0) * Lightness(0.8)\n \n >>> (Color.from_hls(0.5, 0.5, 1.0) * Lightness(0.8)).hls\n HLS(h=0.5, l=0.4, s=1.0)\n\nLinks\n=====\n\n* The code is licensed under the `BSD license`_\n* The `source code`_ can be obtained from GitHub, which also hosts the `bug\n tracker`_\n* The `documentation`_ (which includes installation, quick-start examples, and\n lots of code recipes) can be read on ReadTheDocs\n* Packages can be downloaded from `PyPI`_, but reading the installation\n instructions is more likely to be useful\n\n\n.. _picamera: https://picamera.readthedocs.io/\n.. _colormath: https://python-colormath.readthedocs.io/\n.. _grapefruit: https://grapefruit.readthedocs.io/\n.. _CIE Lab: https://en.wikipedia.org/wiki/Lab_color_space\n.. _Delta-E: https://en.wikipedia.org/wiki/Color_difference\n.. _PyPI: http://pypi.python.org/pypi/colorzero/\n.. _documentation: http://colorzero.readthedocs.io/\n.. _source code: https://github.com/waveform80/colorzero\n.. _bug tracker: https://github.com/waveform80/colorzero/issues\n.. _BSD license: http://opensource.org/licenses/BSD-3-Clause\n.. _LUTs: https://en.wikipedia.org/wiki/Lookup_table#Lookup_tables_in_image_processing\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://colorzero.readthedocs.io/", "keywords": "color", "license": "BSD License", "maintainer": "", "maintainer_email": "", "name": "colorzero", "package_url": "https://pypi.org/project/colorzero/", "platform": "ALL", "project_url": "https://pypi.org/project/colorzero/", "project_urls": { "Homepage": "http://colorzero.readthedocs.io/" }, "release_url": "https://pypi.org/project/colorzero/1.1/", "requires_dist": [ "sphinx; extra == 'doc'", "pytest; extra == 'test'", "coverage; extra == 'test'", "mock; extra == 'test'" ], "requires_python": "", "summary": "Yet another Python color library.", "version": "1.1" }, "last_serial": 3866359, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "098e52892d93dd13b53e48c2f32560c6", "sha256": "7a03b4847033d197bf5860d8196b26218492640fb5d6a27ce3e6b24b227a077f" }, "downloads": -1, "filename": "colorzero-1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "098e52892d93dd13b53e48c2f32560c6", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 28564, "upload_time": "2018-03-10T23:19:02", "url": "https://files.pythonhosted.org/packages/cd/2a/4ae84a73aed49a73a9add564b9131ef5c324e85c0ecb161643657709b8b3/colorzero-1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5cc33ed3a7abd00ddb25de98a09eb73d", "sha256": "4aec6bf1471de27c4aa297f9757ce203aa453ccff4e099b555090ebbdc67a7a5" }, "downloads": -1, "filename": "colorzero-1.0.tar.gz", "has_sig": false, "md5_digest": "5cc33ed3a7abd00ddb25de98a09eb73d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20947, "upload_time": "2018-03-10T23:19:04", "url": "https://files.pythonhosted.org/packages/3d/43/21773a8f9495a62d99a08e6513af719be133867e2825824071a9cda80c73/colorzero-1.0.tar.gz" } ], "1.1": [ { "comment_text": "", "digests": { "md5": "53cee15f61534ccb208252ba2e45ceca", "sha256": "e3c36d15b293de2b2f77ff54a5bd243fffac941ed0a5332d0697a6612a26a0a3" }, "downloads": -1, "filename": "colorzero-1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "53cee15f61534ccb208252ba2e45ceca", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 33861, "upload_time": "2018-05-15T21:43:16", "url": "https://files.pythonhosted.org/packages/cc/a2/718e78485d0a42c3c2971e0d4a0eb9878bd1121cd640f0773de0695c858e/colorzero-1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7581c4b7fc5f52bf41422e4bbb29731a", "sha256": "acba47119b5d8555680d3cda9afe6ccc5481385ccc3c00084dd973f7aa184599" }, "downloads": -1, "filename": "colorzero-1.1.tar.gz", "has_sig": false, "md5_digest": "7581c4b7fc5f52bf41422e4bbb29731a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 25163, "upload_time": "2018-05-15T21:43:17", "url": "https://files.pythonhosted.org/packages/08/0e/826b882db4da2970f53331969d66efc2da2071ffd9a8824601d0feff513d/colorzero-1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "53cee15f61534ccb208252ba2e45ceca", "sha256": "e3c36d15b293de2b2f77ff54a5bd243fffac941ed0a5332d0697a6612a26a0a3" }, "downloads": -1, "filename": "colorzero-1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "53cee15f61534ccb208252ba2e45ceca", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 33861, "upload_time": "2018-05-15T21:43:16", "url": "https://files.pythonhosted.org/packages/cc/a2/718e78485d0a42c3c2971e0d4a0eb9878bd1121cd640f0773de0695c858e/colorzero-1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7581c4b7fc5f52bf41422e4bbb29731a", "sha256": "acba47119b5d8555680d3cda9afe6ccc5481385ccc3c00084dd973f7aa184599" }, "downloads": -1, "filename": "colorzero-1.1.tar.gz", "has_sig": false, "md5_digest": "7581c4b7fc5f52bf41422e4bbb29731a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 25163, "upload_time": "2018-05-15T21:43:17", "url": "https://files.pythonhosted.org/packages/08/0e/826b882db4da2970f53331969d66efc2da2071ffd9a8824601d0feff513d/colorzero-1.1.tar.gz" } ] }