{ "info": { "author": "Rodion S.", "author_email": "python@profserver.ru", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Console", "License :: OSI Approved :: GNU General Public License (GPL)", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.4", "Topic :: Internet :: WWW/HTTP", "Topic :: Scientific/Engineering :: Artificial Intelligence", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Utilities" ], "description": "=============\nprimarycolors\n=============\n\nDetermination of the primary colors in an image file.\n\n\nRequirements\n============\n* python (>=2.7.0)\n* six\n* scipy\n* numpy\n* Pillow\n\n\nInstallation:\n=============\n::\n\n $ sudo pip install primarycolors\n \nUsage:\n======\n::\n\n >>> from primarycolors import PrimaryColors\n >>>\n >>> # `image` - a path to image,\n >>> # `max_colors` - the maximum number of colors in the resulting.\n >>> im = PrimaryColors(image='Lenna.png', max_colors=5)\n >>>\n >>> # The primary colors in the RGB hexadecimal list.\n >>> im.hex\n ['621b43', '9e4257', 'e5bca5', 'd6877b', 'cb6161']\n >>> im.web\n ['#621b43', '#9e4257', '#e5bca5', '#d6877b', '#cb6161']\n\n >>> # The primary colors in the RGB integer list.\n >>> im.rgb\n [[ 98, 27, 67], [158, 66, 87], [229, 188, 165], [214, 135, 123], [203, 97, 97]]\n >>>\n >>> # An array of primary colors with the frequency coefficients.\n >>> im.sorted_colors\n [('cb6161', 0.24160000000000001),\n ('d6877b', 0.2412),\n ('621b43', 0.2016),\n ('9e4257', 0.1908),\n ('e5bca5', 0.12479999999999999)]\n >>> im.hsl\n [(326, 56.799999999999997, 24.509803921568629),\n (346, 41.071428571428569, 43.921568627450981),\n (21, 55.172413793103459, 77.254901960784323),\n (7, 52.601156069364166, 66.078431372549019),\n (0, 50.47619047619046, 58.823529411764696)]\n\n\nLike command line tool\n======================\n::\n\n $ pcolor -i Lenna.png -w\n #d68578 #c66162 #9d4459 #e3b7a2 #69234a\n $ cat Lenna.png | pcolor -r\n [157, 68, 89] [227, 183, 162] [214, 133, 120] [105, 35, 74] [198, 97, 98]\n\n\nLicense:\n========\n\nprimarycolors is free software: you can redistribute it and/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\nany later version.\n\nprimary colors is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\nGNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License\nalong with primarycolors. If not, see http://www.gnu.org/licenses/.\n", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://bitbucket.org/rodion_s/primarycolors", "keywords": null, "license": "GPL", "maintainer": null, "maintainer_email": null, "name": "primarycolors", "package_url": "https://pypi.org/project/primarycolors/", "platform": null, "project_url": "https://pypi.org/project/primarycolors/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://bitbucket.org/rodion_s/primarycolors" }, "release_url": "https://pypi.org/project/primarycolors/0.6.3/", "requires_dist": null, "requires_python": null, "summary": "Determination of the primary colors in an image file.", "version": "0.6.3" }, "last_serial": 1580402, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "8f548419546fe1b05b67814d0c00e739", "sha256": "9544f3e0576f62444a283dbe1f96fc5f0837222fe448fb1bcb88bdabb2f1cc9e" }, "downloads": -1, "filename": "primarycolors-0.1.tar.gz", "has_sig": false, "md5_digest": "8f548419546fe1b05b67814d0c00e739", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2162, "upload_time": "2015-05-21T08:39:59", "url": "https://files.pythonhosted.org/packages/5f/be/b99a3c477d11c0e5f5f8b12098248df56bdf6a6012dc3dbc5250f06495fa/primarycolors-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "cdb982bdf8f165d767d24cc626a849f0", "sha256": "38d2172593b327e28a5f3e89b7f8cce0a0d8133c850cdb89b8c9a35edc9296a9" }, "downloads": -1, "filename": "primarycolors-0.2.tar.gz", "has_sig": false, "md5_digest": "cdb982bdf8f165d767d24cc626a849f0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2174, "upload_time": "2015-05-21T11:04:34", "url": "https://files.pythonhosted.org/packages/76/40/b94c20c37b21ed83987262daec5d366143bcc4f23970f596c8bde7a224f4/primarycolors-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "a568d9d76b2966b61946294d9d47536a", "sha256": "6df8e6666b3ec9bb01b59cc7b464be4c89a7da412864c9de8a396608a96013c0" }, "downloads": -1, "filename": "primarycolors-0.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "a568d9d76b2966b61946294d9d47536a", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 3852, "upload_time": "2015-06-01T10:33:11", "url": "https://files.pythonhosted.org/packages/55/83/6302ee28de1a58721b7087ab60f72ac2367631d5df8d6485004ad86bf010/primarycolors-0.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "fffe2f7edf38abb9f2083d942b8eba23", "sha256": "f8d5408ac4a015d3322b805677e51cb24f9277bc8ca5cc36d7da32f567983687" }, "downloads": -1, "filename": "primarycolors-0.3.tar.gz", "has_sig": false, "md5_digest": "fffe2f7edf38abb9f2083d942b8eba23", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3098, "upload_time": "2015-06-01T10:33:07", "url": "https://files.pythonhosted.org/packages/4f/b7/8dc5008f59e1ef7ab5c602c751e3842ff09bcfa6466f91d6a80c2f6fd49d/primarycolors-0.3.tar.gz" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "29f69a620e7ac59e2197ee0d79040c18", "sha256": "6189b5ff86bae03d478f9c055ceed4d2965392de9c9bbceec743476495bae662" }, "downloads": -1, "filename": "primarycolors-0.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "29f69a620e7ac59e2197ee0d79040c18", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 4278, "upload_time": "2015-06-02T08:22:06", "url": "https://files.pythonhosted.org/packages/47/99/b9982b87200e952845d1c7ee1ddb63c89a33c8a3c23081829494a12e8075/primarycolors-0.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c1124573f8b057da63095f6397034dbd", "sha256": "68bc47b2f92329b4b0e2a3e960759487744a5a57be937af2d6020706d08fd241" }, "downloads": -1, "filename": "primarycolors-0.4.tar.gz", "has_sig": false, "md5_digest": "c1124573f8b057da63095f6397034dbd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3719, "upload_time": "2015-06-02T08:21:59", "url": "https://files.pythonhosted.org/packages/a4/d0/410f4e51eca378cb8a0eef871b93103af7c7c026bb7feaedc76858ead782/primarycolors-0.4.tar.gz" } ], "0.5": [ { "comment_text": "", "digests": { "md5": "936a65041386991c17c0c82bacb0c824", "sha256": "d8c27e38d9d6b489e02c66233fda3f345ddf317b444cb4a6f1ba51e23a331f16" }, "downloads": -1, "filename": "primarycolors-0.5-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "936a65041386991c17c0c82bacb0c824", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 5199, "upload_time": "2015-06-03T09:52:08", "url": "https://files.pythonhosted.org/packages/33/b1/11b1fd310b3d969de3c6084a6f4c6b1665148897618eebfe5a30041b0fec/primarycolors-0.5-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2dab449a910fea53a8c041f08bbdbd9d", "sha256": "1a09436b420fb4cc4d870b69504937fe2b3497e4e44322094bd1d944bb7b7c6b" }, "downloads": -1, "filename": "primarycolors-0.5.tar.gz", "has_sig": false, "md5_digest": "2dab449a910fea53a8c041f08bbdbd9d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4520, "upload_time": "2015-06-03T09:52:05", "url": "https://files.pythonhosted.org/packages/47/19/e6bcfa27d1f3e0a0f00e051c1dda75087449b73715a989b7311cddb7e33f/primarycolors-0.5.tar.gz" } ], "0.6": [ { "comment_text": "", "digests": { "md5": "bf589e570e324bb3764e4d5271130ff9", "sha256": "a953a2e7abff9f45284e403d8180081f7a6a6f001db71865a65fed1efab4d6a8" }, "downloads": -1, "filename": "primarycolors-0.6-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "bf589e570e324bb3764e4d5271130ff9", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 5358, "upload_time": "2015-06-03T13:02:38", "url": "https://files.pythonhosted.org/packages/34/3d/36f82bee353acd5ba3b3d16d418e54e848d7cae225a8b2349c5721680458/primarycolors-0.6-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "04b2d2c91bae8a4dc272ca966775d607", "sha256": "2d8e1782b63dbee8a17ecc7b3d27a07b76fc988aa7dd3a8ad52acf3296e9d7e2" }, "downloads": -1, "filename": "primarycolors-0.6.tar.gz", "has_sig": false, "md5_digest": "04b2d2c91bae8a4dc272ca966775d607", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4693, "upload_time": "2015-06-03T13:02:34", "url": "https://files.pythonhosted.org/packages/77/0b/d23b1b7ffaf9b6ac010cf8a5512c061ab6aa3636f4309dd116c7ae93761a/primarycolors-0.6.tar.gz" } ], "0.6.1": [ { "comment_text": "", "digests": { "md5": "855d1e1125509093181537831c5a2be2", "sha256": "3de7fa1017f0d6fa0875918107a6b76f14b80c50e3280fa3e69a5d5b8e3ff8ba" }, "downloads": -1, "filename": "primarycolors-0.6.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "855d1e1125509093181537831c5a2be2", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 5430, "upload_time": "2015-06-03T17:50:09", "url": "https://files.pythonhosted.org/packages/5b/08/a15ae382c66c741913b0604e5df12fac03dd967cb483e0170a2b27405dc0/primarycolors-0.6.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "11e484f3f89a4c7ff05448ef2b4f9c59", "sha256": "1d6fe1a621888345980866587d35aae8d65afee2b0a60d1bc408b8e770f81624" }, "downloads": -1, "filename": "primarycolors-0.6.1.tar.gz", "has_sig": false, "md5_digest": "11e484f3f89a4c7ff05448ef2b4f9c59", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4759, "upload_time": "2015-06-03T17:50:05", "url": "https://files.pythonhosted.org/packages/60/5a/6298b37bf5fdae51a07dc1ce46353210d508225f2f4a8c5da264498bdda6/primarycolors-0.6.1.tar.gz" } ], "0.6.2": [ { "comment_text": "", "digests": { "md5": "ae6dd980c322f390f816d205a5cac661", "sha256": "617d8509b9bc456b0114dca1e57c7d79b2a84f40d4eeaf8cbed3c18d0832c158" }, "downloads": -1, "filename": "primarycolors-0.6.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "ae6dd980c322f390f816d205a5cac661", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 5444, "upload_time": "2015-06-03T19:20:17", "url": "https://files.pythonhosted.org/packages/ab/36/623953f328ca3002c927f592dae658fa518f75fcf958c024e26e0bb5273e/primarycolors-0.6.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "260fc83eec20c268400f4c7377f16a41", "sha256": "932b3ac07dfbee37648ce9585174fc57d0ecca1169101a60b9052fb7c182df16" }, "downloads": -1, "filename": "primarycolors-0.6.2.tar.gz", "has_sig": false, "md5_digest": "260fc83eec20c268400f4c7377f16a41", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4583, "upload_time": "2015-06-03T19:20:13", "url": "https://files.pythonhosted.org/packages/9d/5d/387907262dba4dec963a970ebb122268342caccead69e6f6d873c424e953/primarycolors-0.6.2.tar.gz" } ], "0.6.3": [ { "comment_text": "", "digests": { "md5": "9e87a27584b863b83b7c804c4001c27a", "sha256": "aad33e19a1259a60840f5af7bd63fabdfc486efaeebf7ba59ff67c993e51f61f" }, "downloads": -1, "filename": "primarycolors-0.6.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "9e87a27584b863b83b7c804c4001c27a", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 5429, "upload_time": "2015-06-05T19:52:00", "url": "https://files.pythonhosted.org/packages/65/31/ff285aa3ff05ec6b3c1266908e8fc35f9a6e509bb98cf41168bae7d7ef62/primarycolors-0.6.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "63b6366ed6ed2d945dae298dd04f8183", "sha256": "6fec021f44a75f6e1f36a398058bac54a3f7038d3ee3afcae36b66fa8bfc4be2" }, "downloads": -1, "filename": "primarycolors-0.6.3.tar.gz", "has_sig": false, "md5_digest": "63b6366ed6ed2d945dae298dd04f8183", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4561, "upload_time": "2015-06-05T19:51:56", "url": "https://files.pythonhosted.org/packages/e5/d2/0c83f28eb46dc29fc886428416c34c4c3300797fc4e9008b749ef577d9c6/primarycolors-0.6.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9e87a27584b863b83b7c804c4001c27a", "sha256": "aad33e19a1259a60840f5af7bd63fabdfc486efaeebf7ba59ff67c993e51f61f" }, "downloads": -1, "filename": "primarycolors-0.6.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "9e87a27584b863b83b7c804c4001c27a", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 5429, "upload_time": "2015-06-05T19:52:00", "url": "https://files.pythonhosted.org/packages/65/31/ff285aa3ff05ec6b3c1266908e8fc35f9a6e509bb98cf41168bae7d7ef62/primarycolors-0.6.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "63b6366ed6ed2d945dae298dd04f8183", "sha256": "6fec021f44a75f6e1f36a398058bac54a3f7038d3ee3afcae36b66fa8bfc4be2" }, "downloads": -1, "filename": "primarycolors-0.6.3.tar.gz", "has_sig": false, "md5_digest": "63b6366ed6ed2d945dae298dd04f8183", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4561, "upload_time": "2015-06-05T19:51:56", "url": "https://files.pythonhosted.org/packages/e5/d2/0c83f28eb46dc29fc886428416c34c4c3300797fc4e9008b749ef577d9c6/primarycolors-0.6.3.tar.gz" } ] }