{ "info": { "author": "Jeremiah Dodds", "author_email": "jeremiah.dodds@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Console", "Intended Audience :: Developers", "Intended Audience :: End Users/Desktop", "License :: OSI Approved :: BSD License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python :: 2.6", "Topic :: Artistic Software", "Topic :: Multimedia", "Topic :: Multimedia :: Graphics", "Topic :: Printing", "Topic :: Text Processing :: Markup :: HTML", "Topic :: Utilities" ], "description": "Provides a utility for retrieving the closest known \"human readable\" name for a\ncolor specified as a hex string. It does this by using an algorithm ported from\nntc.js ( http://chir.ag/projects/ntc ). \n\nThere are 3 different sets of color definitions to choose from:\n Resene ( http://people.csail.mit.edu/jaffer/Color/resenecolours.txt )\n html4 ( http://www.w3.org/TR/css3-color/#html4 )\n css3 ( http://www.w3.org/TR/css3-color/#svg-color )\n\ncss3 is a superset of html4.\n\nThe user can also supply their own colorfile to use. It should be comma\nseparated hex,name pairs, and should include the leading #. Commas are allowed\nin names.\n\nCurrently two output formats are supported -- json, and raw. \n\nUsage:\n\nAs a command-line utility:\n\n$ namethatcolor aabbcc\n{\"hex_value\": \"#B0C4DE\", \"name\": \"lightsteelblue\"}\n$ namethatcolor --color-set resene aabbcc\n{\"hex_value\": \"#ADBED1\", \"name\": \"Casper\"}\n\n#same as above\n$ namethatcolor -s resene aabbcc\n\n#specify your own color file\n$ namethatcolor -c path/to/color/file aabbcc\n\nAs a library:\n\n>>> from namethatcolor import NameThatColor\n>>> Namer = NameThatColor()\n>>> Namer.name('aabbcc')\nMatch('#B0C4DE', 'lightsteelblue', False, '#AABBCC')\n>>> resene_filename = NameThatColor.color_sets['resene']\n>>> resene_colors = NameThatColor.get_color_file(resene_filename)\n>>> Namer = NameThatColor(color_file=resene_colors)\n>>> Namer.name('aabbcc')\nMatch('#ADBED1', 'Casper', False, '#AABBCC')", "description_content_type": null, "docs_url": null, "download_url": "http://github.com/jdodds/py-name-that-color/downloads", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/jdodds/py-name-that-color", "keywords": "color colors webcolor hex css html hue saturation lightness red green blue", "license": "LICENSE.txt", "maintainer": null, "maintainer_email": null, "name": "NameThatColor", "package_url": "https://pypi.org/project/NameThatColor/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/NameThatColor/", "project_urls": { "Download": "http://github.com/jdodds/py-name-that-color/downloads", "Homepage": "http://github.com/jdodds/py-name-that-color" }, "release_url": "https://pypi.org/project/NameThatColor/1.0.3/", "requires_dist": null, "requires_python": null, "summary": "Find human-readable color names for hex values", "version": "1.0.3" }, "last_serial": 208317, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "aab3ff9b7be516467c83bc689fa70a52", "sha256": "211c64177027abf38bd7b7dc45daa38d12e678f39c4057de462b459527ef1546" }, "downloads": -1, "filename": "NameThatColor-1.0-py2.6.egg", "has_sig": false, "md5_digest": "aab3ff9b7be516467c83bc689fa70a52", "packagetype": "bdist_egg", "python_version": "2.6", "requires_python": null, "size": 3522, "upload_time": "2010-07-24T17:21:43", "url": "https://files.pythonhosted.org/packages/a6/58/6bf6e98665b49dbca5f63dd54243952a98c49a18beb158d97a639ee90c6d/NameThatColor-1.0-py2.6.egg" }, { "comment_text": "", "digests": { "md5": "8ad14faacc03a8e2214bd5ecf9c64cda", "sha256": "cc4564f9af8b366a344f71f07b5752ec6d15135cf315d00cf4531c2ec9823cd5" }, "downloads": -1, "filename": "NameThatColor-1.0.tar.gz", "has_sig": false, "md5_digest": "8ad14faacc03a8e2214bd5ecf9c64cda", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3237, "upload_time": "2010-07-24T17:21:42", "url": "https://files.pythonhosted.org/packages/e4/18/3da4e114c4595701169acdfc7e55b8c69e30ee65b70770bc553218323532/NameThatColor-1.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "858e241aa156f6069def613e2ef54c90", "sha256": "4398e9a38f42cba91dcddf0b3cb85706a1cbd5b5c2e30568d5bf80de4ae92ead" }, "downloads": -1, "filename": "NameThatColor-1.0.1-py2.6.egg", "has_sig": false, "md5_digest": "858e241aa156f6069def613e2ef54c90", "packagetype": "bdist_egg", "python_version": "2.6", "requires_python": null, "size": 24564, "upload_time": "2010-07-24T20:32:37", "url": "https://files.pythonhosted.org/packages/b7/97/d46467e97aed2691bb20aa110a910c337aaf7567041735b5683812cfd77c/NameThatColor-1.0.1-py2.6.egg" }, { "comment_text": "", "digests": { "md5": "b6312693e8dba873b9274e98f0ab4994", "sha256": "e34ea1414431c79674d4561b30da163551af6a4b877612cfe2276c31ada215e0" }, "downloads": -1, "filename": "NameThatColor-1.0.1.tar.gz", "has_sig": false, "md5_digest": "b6312693e8dba873b9274e98f0ab4994", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20996, "upload_time": "2010-07-24T20:32:36", "url": "https://files.pythonhosted.org/packages/29/58/f5ee2052dca94fe4589e73334838365441475a07676ed88dff5af8fdae6f/NameThatColor-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "f223e8451a343522c0e2c577f7dbc8b5", "sha256": "ed82214fd0bd542941bdd3851953e2a258c8bc7413084733421eef566115b409" }, "downloads": -1, "filename": "NameThatColor-1.0.2.tar.gz", "has_sig": false, "md5_digest": "f223e8451a343522c0e2c577f7dbc8b5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 25163, "upload_time": "2010-09-15T03:25:50", "url": "https://files.pythonhosted.org/packages/60/95/5b40e0a6442a63c8ec02d4727e595be36b90f0a40767ff291809b1981dea/NameThatColor-1.0.2.tar.gz" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "b793bc4931f6b405b7c04cec16ee09b0", "sha256": "87f520ce37513324e5ebf3c12b66a5b978757cd8f6a11591f20f8e0e6d1db99f" }, "downloads": -1, "filename": "NameThatColor-1.0.3.tar.gz", "has_sig": false, "md5_digest": "b793bc4931f6b405b7c04cec16ee09b0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 26194, "upload_time": "2010-09-25T20:37:55", "url": "https://files.pythonhosted.org/packages/13/c3/80fa2b202de232fcbfee031ed61107f3cdf053250c7724f738a961e452c1/NameThatColor-1.0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b793bc4931f6b405b7c04cec16ee09b0", "sha256": "87f520ce37513324e5ebf3c12b66a5b978757cd8f6a11591f20f8e0e6d1db99f" }, "downloads": -1, "filename": "NameThatColor-1.0.3.tar.gz", "has_sig": false, "md5_digest": "b793bc4931f6b405b7c04cec16ee09b0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 26194, "upload_time": "2010-09-25T20:37:55", "url": "https://files.pythonhosted.org/packages/13/c3/80fa2b202de232fcbfee031ed61107f3cdf053250c7724f738a961e452c1/NameThatColor-1.0.3.tar.gz" } ] }