{"id":22758823,"url":"https://github.com/getcuia/ochre","last_synced_at":"2025-04-14T18:21:38.214Z","repository":{"id":37854351,"uuid":"427745535","full_name":"getcuia/ochre","owner":"getcuia","description":"🏜️ A down-to-earth approach to colors","archived":false,"fork":false,"pushed_at":"2023-03-08T17:01:51.000Z","size":641,"stargazers_count":8,"open_issues_count":9,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-09T18:16:09.193Z","etag":null,"topics":["ansi","color","color-conversion","color-manipulation","color-palettes","colors","cuia","hcl","hex","manipulate-colors","ochre","python","python-library","rgb","web","zero-dependency"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/ochre/","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/getcuia.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}},"created_at":"2021-11-13T18:42:23.000Z","updated_at":"2025-04-02T19:08:34.000Z","dependencies_parsed_at":"2023-02-13T00:46:15.495Z","dependency_job_id":null,"html_url":"https://github.com/getcuia/ochre","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getcuia%2Fochre","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getcuia%2Fochre/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getcuia%2Fochre/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getcuia%2Fochre/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/getcuia","download_url":"https://codeload.github.com/getcuia/ochre/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248933349,"owners_count":21185461,"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":["ansi","color","color-conversion","color-manipulation","color-palettes","colors","cuia","hcl","hex","manipulate-colors","ochre","python","python-library","rgb","web","zero-dependency"],"created_at":"2024-12-11T08:16:01.950Z","updated_at":"2025-04-14T18:21:38.191Z","avatar_url":"https://github.com/getcuia.png","language":"Python","readme":"[![PyPI](https://img.shields.io/pypi/v/ochre)](https://pypi.org/project/ochre/)\n[![Python package](https://github.com/getcuia/ochre/actions/workflows/python-package.yml/badge.svg)](https://github.com/getcuia/ochre/actions/workflows/python-package.yml)\n[![PyPI - License](https://img.shields.io/pypi/l/ochre)](https://github.com/getcuia/ochre/blob/main/LICENSE)\n\n# [ochre](https://github.com/getcuia/ochre#readme) 🏜️\n\n\u003cdiv align=\"center\"\u003e\n    \u003cimg class=\"hero\" src=\"https://github.com/getcuia/ochre/raw/main/banner.jpg\" alt=\"ochre\" width=\"33%\" /\u003e\n\u003c/div\u003e\n\n\u003e A down-to-earth approach to colors\n\nochre is a tiny Python package for working with colors in a pragmatic way. The\nfocus is on simplicity and ease of use, but also on human perception.\n\n## Features\n\n-   🎨 Focus on [RGB](https://en.wikipedia.org/wiki/RGB_color_model) and\n    [HCL](https://en.wikipedia.org/wiki/HCL_color_space) color spaces\n-   🖥️ [Web color names](https://en.wikipedia.org/wiki/Web_colors#Extended_colors)\n-   ♻️ Color conversions that easily integrate with the\n    [standard `colorsys` module](https://docs.python.org/3/library/colorsys.html)\n-   🗑️ Zero dependencies\n-   🐍 Python 3.8+\n\n## Installation\n\n```console\n$ pip install ochre\n```\n\n## Usage\n\n```python\nIn [1]: from ochre import Hex\n\nIn [2]: color = Hex(\"#CC7722\")\n\nIn [3]: color.web_color\nOut[3]: WebColor('peru')\n\nIn [4]: color = color.hcl\n\nIn [5]: color.hue\nOut[5]: 0.6373041934059377\n\nIn [6]: import math\n\nIn [7]: color.hue += math.radians(30)\n\nIn [8]: color.hue\nOut[8]: 1.1609029690042365\n\nIn [9]: color.web_color\nOut[9]: WebColor('goldenrod')\n```\n\n## Credits\n\n[Photo](https://github.com/getcuia/ochre/raw/main/banner.jpg) by\n[Nicola Carter](https://unsplash.com/@ncarterwilts?utm_source=unsplash\u0026utm_medium=referral\u0026utm_content=creditCopyText)\non\n[Unsplash](https://unsplash.com/?utm_source=unsplash\u0026utm_medium=referral\u0026utm_content=creditCopyText).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetcuia%2Fochre","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgetcuia%2Fochre","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetcuia%2Fochre/lists"}