{"id":20385574,"url":"https://github.com/rgson/python-colornames","last_synced_at":"2025-04-12T09:41:20.824Z","repository":{"id":77576996,"uuid":"89103821","full_name":"rgson/python-colornames","owner":"rgson","description":"A Python library for finding the names of colors.","archived":false,"fork":false,"pushed_at":"2024-06-29T17:24:07.000Z","size":60,"stargazers_count":9,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-09T15:07:32.614Z","etag":null,"topics":["color","library","python"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rgson.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-04-22T22:51:00.000Z","updated_at":"2025-02-07T20:13:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"44274354-e59a-446f-9238-6d4e0355e998","html_url":"https://github.com/rgson/python-colornames","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgson%2Fpython-colornames","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgson%2Fpython-colornames/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgson%2Fpython-colornames/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgson%2Fpython-colornames/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rgson","download_url":"https://codeload.github.com/rgson/python-colornames/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248549202,"owners_count":21122846,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["color","library","python"],"created_at":"2024-11-15T02:34:49.398Z","updated_at":"2025-04-12T09:41:20.802Z","avatar_url":"https://github.com/rgson.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# python-colornames\n\nA Python library for finding the names of colors.\n\nThe `colornames` library gives you the name of any RGB color. If the exact color you're looking for doesn't have a name, it'll find the closest match instead.\n\n\n## Installation\n\nPyPI: [pycolornames](https://pypi.org/project/pycolornames/)\n\n```sh\npip install pycolornames\n```\n\n\n## Usage\n\nA single function, `find`, is exposed by the library. It finds the name of a given color.\n\n```python\n\u003e\u003e\u003e import colornames\n\u003e\u003e\u003e colornames.find(255, 255, 255)   # Decimal RGB\n'White'\n\u003e\u003e\u003e colornames.find('#3e3e3e')       # Hexadecimal notation\n'Dune'\n\u003e\u003e\u003e colornames.find('#abc')          # Shorthand hexadecimal\n'Cadet Blue'\n\u003e\u003e\u003e colornames.find('f5f5f5')        # Optional '#' prefix\n'Wild Sand'\n\u003e\u003e\u003e colornames.find((123, 12, 1))    # Decimal RGB as a tuple\n'Dark Burgundy'\n```\n\n\n## License\n\nThe code is licensed under the MIT license.\nCertain parts are licensed under CC BY 2.5 (see [acknowledgements](#acknowledgements)).\n\n\n## Acknowledgements\n\nThe list of color names is based on Chirag Mehta's [ntc js](http://chir.ag/projects/ntc), licensed under [CC BY 2.5](https://creativecommons.org/licenses/by/2.5/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frgson%2Fpython-colornames","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frgson%2Fpython-colornames","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frgson%2Fpython-colornames/lists"}