{ "info": { "author": "Felix Krull", "author_email": "f_krull@gmx.de", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3" ], "description": "===============================================\ncolor-hash: Generate a Color Based on a Value\n===============================================\n\nThis module generates a color based on an object, by calculating a color value\nbased on a hash value for the object. This means the result is deterministic:\nthe same value will always result in the same color (so long as the hash\nfunction remains deterministic).\n\nThis module is a port of the `'color-hash' Javascript library`_. It supports\nPython 2.6, 2.7, and 3.3+.\n\n.. _'color-hash' Javascript library: https://github.com/zenozeng/color-hash\n\n\nQuick Start\n===========\n\n::\n\n >>> from colorhash import ColorHash\n >>> c = ColorHash('Hello World')\n >>> c.hsl\n (131, 0.65, 0.5)\n >>> c.rgb\n (45, 210, 75)\n >>> c.hex\n '#2dd24b'\n\n\nChangelog\n=========\n\n* color-hash 1.0.2 *(2016-07-08)*\n\n - Add ``crc32_hash`` function and set default hashfunc to that. It's not\n fully backwards-compatible, but I don't want to bump the version a lot for\n not doing my research.\n\n* color-hash 1.0.0 *(2016-07-07)*\n\n - Initial port.\n\n\nLicense\n=======\n\nCopyright (c) 2016 Felix Krull \n\nThis is a port of the 'color-hash' Javascript library which is:\n\nCopyright (c) 2015 Zeno Zeng\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://bitbucket.org/fk/python-color-hash", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "colorhash", "package_url": "https://pypi.org/project/colorhash/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/colorhash/", "project_urls": { "Homepage": "https://bitbucket.org/fk/python-color-hash" }, "release_url": "https://pypi.org/project/colorhash/1.0.2/", "requires_dist": null, "requires_python": "", "summary": "Generate a color based on a value", "version": "1.0.2" }, "last_serial": 2208972, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "1aa582ca923b4d8119abda73ed12ae86", "sha256": "f841c8942aa249f281941c883b32388024859efbb0bc98c77463fad82c2b9b87" }, "downloads": -1, "filename": "colorhash-1.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "1aa582ca923b4d8119abda73ed12ae86", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5627, "upload_time": "2016-07-07T21:49:29", "url": "https://files.pythonhosted.org/packages/4b/24/5b78cdadc9bcb72b24b5365634f113ca244d0aabdd332fc626ceeec4a69c/colorhash-1.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3728ec91b36a27fd2405709bbe1a769c", "sha256": "137ba40fa1111e50550224b261d1a869b490a4eb198c251e0274ef05c90fbd50" }, "downloads": -1, "filename": "colorhash-1.0.0.tar.bz2", "has_sig": false, "md5_digest": "3728ec91b36a27fd2405709bbe1a769c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4879, "upload_time": "2016-07-07T21:49:35", "url": "https://files.pythonhosted.org/packages/6a/12/d03c4d77750193872430d72a10a283cad74083a1b817e968e096b251adaa/colorhash-1.0.0.tar.bz2" }, { "comment_text": "", "digests": { "md5": "c244dbc2200d43d9b53a607b2476593b", "sha256": "603aa373eb7685ade4333a93ef71aed72ba1297fd208086fdad813ecb177f367" }, "downloads": -1, "filename": "colorhash-1.0.0.zip", "has_sig": false, "md5_digest": "c244dbc2200d43d9b53a607b2476593b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8871, "upload_time": "2016-07-07T21:49:39", "url": "https://files.pythonhosted.org/packages/0c/7b/8da4ccff1d0894652d15841fa1b7ab57b5f98b2e3c0184be496a15bda522/colorhash-1.0.0.zip" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "76cda8acb01040164eecdd006307ae17", "sha256": "f5a0019b7364fb12b0ed52e3fe05f69fe8c2d77622e6abf2f869e711308e14e1" }, "downloads": -1, "filename": "colorhash-1.0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "76cda8acb01040164eecdd006307ae17", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6042, "upload_time": "2016-07-07T23:28:15", "url": "https://files.pythonhosted.org/packages/0e/e1/50dbc513aa74e99eca4c47f2a8206711f0bec436fdddd95eebaf7eaaa1aa/colorhash-1.0.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "05f741e7e610c19f816ea70145dd394e", "sha256": "e0f925c3d82d5ed6e5fe8039492325263b5b75490bddf38e24a221467c3ee764" }, "downloads": -1, "filename": "colorhash-1.0.2.tar.bz2", "has_sig": false, "md5_digest": "05f741e7e610c19f816ea70145dd394e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5540, "upload_time": "2016-07-07T23:28:22", "url": "https://files.pythonhosted.org/packages/bf/e9/b1d948c518ac6f683711a38a9c5bb84597f417ac2fc9296a49c40c1b2dab/colorhash-1.0.2.tar.bz2" }, { "comment_text": "", "digests": { "md5": "c0b4ded10e622a373abddacc38045cca", "sha256": "5eeb6b490cbbf3545f50d39cf46993a1335b392b339cec6053f857e2785f83d8" }, "downloads": -1, "filename": "colorhash-1.0.2.zip", "has_sig": false, "md5_digest": "c0b4ded10e622a373abddacc38045cca", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10079, "upload_time": "2016-07-07T23:28:26", "url": "https://files.pythonhosted.org/packages/d0/ef/360b06cae93f4a163393e1cb1fef10d7e6f6ab69f6be5188c6bd2dba8734/colorhash-1.0.2.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "76cda8acb01040164eecdd006307ae17", "sha256": "f5a0019b7364fb12b0ed52e3fe05f69fe8c2d77622e6abf2f869e711308e14e1" }, "downloads": -1, "filename": "colorhash-1.0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "76cda8acb01040164eecdd006307ae17", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6042, "upload_time": "2016-07-07T23:28:15", "url": "https://files.pythonhosted.org/packages/0e/e1/50dbc513aa74e99eca4c47f2a8206711f0bec436fdddd95eebaf7eaaa1aa/colorhash-1.0.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "05f741e7e610c19f816ea70145dd394e", "sha256": "e0f925c3d82d5ed6e5fe8039492325263b5b75490bddf38e24a221467c3ee764" }, "downloads": -1, "filename": "colorhash-1.0.2.tar.bz2", "has_sig": false, "md5_digest": "05f741e7e610c19f816ea70145dd394e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5540, "upload_time": "2016-07-07T23:28:22", "url": "https://files.pythonhosted.org/packages/bf/e9/b1d948c518ac6f683711a38a9c5bb84597f417ac2fc9296a49c40c1b2dab/colorhash-1.0.2.tar.bz2" }, { "comment_text": "", "digests": { "md5": "c0b4ded10e622a373abddacc38045cca", "sha256": "5eeb6b490cbbf3545f50d39cf46993a1335b392b339cec6053f857e2785f83d8" }, "downloads": -1, "filename": "colorhash-1.0.2.zip", "has_sig": false, "md5_digest": "c0b4ded10e622a373abddacc38045cca", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10079, "upload_time": "2016-07-07T23:28:26", "url": "https://files.pythonhosted.org/packages/d0/ef/360b06cae93f4a163393e1cb1fef10d7e6f6ab69f6be5188c6bd2dba8734/colorhash-1.0.2.zip" } ] }