{"id":14109803,"url":"https://github.com/ubernostrum/webcolors","last_synced_at":"2025-05-14T16:14:49.682Z","repository":{"id":10550720,"uuid":"12749544","full_name":"ubernostrum/webcolors","owner":"ubernostrum","description":"A library for working with HTML/CSS color formats in Python.","archived":false,"fork":false,"pushed_at":"2024-11-11T07:43:13.000Z","size":521,"stargazers_count":163,"open_issues_count":1,"forks_count":28,"subscribers_count":5,"default_branch":"trunk","last_synced_at":"2025-04-13T01:56:18.013Z","etag":null,"topics":["colors","css","html","python"],"latest_commit_sha":null,"homepage":"https://webcolors.readthedocs.io/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ubernostrum.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":"CONTRIBUTING.rst","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":"2013-09-11T06:45:17.000Z","updated_at":"2025-04-09T11:04:23.000Z","dependencies_parsed_at":"2024-06-18T14:21:57.191Z","dependency_job_id":"db809269-2a0a-4217-8eff-828d4c84f3f4","html_url":"https://github.com/ubernostrum/webcolors","commit_stats":{"total_commits":330,"total_committers":4,"mean_commits":82.5,"dds":0.009090909090909038,"last_synced_commit":"834f77b381fad6eb31634d583894c3bc16a7ff99"},"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ubernostrum%2Fwebcolors","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ubernostrum%2Fwebcolors/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ubernostrum%2Fwebcolors/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ubernostrum%2Fwebcolors/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ubernostrum","download_url":"https://codeload.github.com/ubernostrum/webcolors/tar.gz/refs/heads/trunk","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248654050,"owners_count":21140235,"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":["colors","css","html","python"],"created_at":"2024-08-14T10:02:30.320Z","updated_at":"2025-04-13T01:56:24.992Z","avatar_url":"https://github.com/ubernostrum.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":".. -*-restructuredtext-*-\n\n.. image:: https://github.com/ubernostrum/webcolors/workflows/CI/badge.svg\n   :alt: CI status image\n   :target: https://github.com/ubernostrum/webcolors/actions?query=workflow%3ACI\n\n``webcolors`` is a module for working with and converting between the\nvarious HTML/CSS color formats.\n\nSupport is included for normalizing and converting between the\nfollowing formats (RGB colorspace only; conversion to/from HSL can be\nhandled by the ``colorsys`` module in the Python standard library):\n\n* Specification-defined color names\n\n* Six-digit hexadecimal\n\n* Three-digit hexadecimal\n\n* Integer ``rgb()`` triplet\n\n* Percentage ``rgb()`` triplet\n\nFor example:\n\n.. code-block:: python\n\n    \u003e\u003e\u003e import webcolors\n    \u003e\u003e\u003e webcolors.hex_to_name(\"#daa520\")\n    'goldenrod'\n\nImplementations are also provided for the HTML5 color parsing and\nserialization algorithms. For example, parsing the infamous\n\"chucknorris\" string into an ``rgb()`` triplet:\n\n.. code-block:: python\n\n    \u003e\u003e\u003e import webcolors\n    \u003e\u003e\u003e webcolors.html5_parse_legacy_color(\"chucknorris\")\n    HTML5SimpleColor(red=192, green=0, blue=0)\n\nFull documentation is `available online \u003chttps://webcolors.readthedocs.io/\u003e`_.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fubernostrum%2Fwebcolors","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fubernostrum%2Fwebcolors","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fubernostrum%2Fwebcolors/lists"}