{"id":47906028,"url":"https://github.com/jolars/qualpal-py","last_synced_at":"2026-04-04T04:51:54.931Z","repository":{"id":332687211,"uuid":"1129066872","full_name":"jolars/qualpal-py","owner":"jolars","description":"A Python package for automatic generation of qualitative color palettes","archived":false,"fork":false,"pushed_at":"2026-01-29T15:49:45.000Z","size":649,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-30T04:29:18.869Z","etag":null,"topics":["colors","data-visualization","palette-generation"],"latest_commit_sha":null,"homepage":"https://jolars.github.io/qualpal-py/","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/jolars.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":"CITATION.cff","codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-01-06T15:00:15.000Z","updated_at":"2026-01-29T15:55:12.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/jolars/qualpal-py","commit_stats":null,"previous_names":["jolars/qualpal-py"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/jolars/qualpal-py","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jolars%2Fqualpal-py","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jolars%2Fqualpal-py/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jolars%2Fqualpal-py/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jolars%2Fqualpal-py/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jolars","download_url":"https://codeload.github.com/jolars/qualpal-py/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jolars%2Fqualpal-py/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31388169,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T04:26:24.776Z","status":"ssl_error","status_checked_at":"2026-04-04T04:23:34.147Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","data-visualization","palette-generation"],"created_at":"2026-04-04T04:51:54.223Z","updated_at":"2026-04-04T04:51:54.923Z","avatar_url":"https://github.com/jolars.png","language":"Python","readme":"# Qualpal \u003cpicture\u003e\u003csource media=\"(prefers-color-scheme: light)\" srcset=\"https://raw.githubusercontent.com/jolars/qualpal/refs/heads/main/docs/images/logo.svg\" align=\"right\" width=\"139\"\u003e \u003cimg alt=\"The logo for Qualpal, which is a painting palette with five distinct colors.\" src=\"https://raw.githubusercontent.com/jolars/qualpal/refs/heads/main/docs/images/logo-dark.svg\" align=\"right\" width=\"139\"\u003e \u003c/picture\u003e\n\n[![Tests](https://github.com/jolars/qualpal-py/actions/workflows/test.yml/badge.svg)](https://github.com/jolars/qualpal-py/actions/workflows/test.yml)\n[![codecov](https://codecov.io/github/jolars/qualpal-py/graph/badge.svg?token=VBIeMY0zJt)](https://codecov.io/github/jolars/qualpal-py)\n[![PyPI version](https://badge.fury.io/py/qualpal.svg)](https://badge.fury.io/py/qualpal)\n[![DOI](https://joss.theoj.org/papers/10.21105/joss.08936/status.svg)](https://doi.org/10.21105/joss.08936)\n[![App](https://img.shields.io/badge/🌐%20%20App-qualpal.cc-blue)](https://qualpal.cc)\n\nAutomatically generate qualitative color palettes with distinct, perceptually uniform colors.\n\n## Installation\n\nQualpal will soon be available on PyPI. In the meantime, you can install it directly from source,\nbut note that this requires a C++ compiler.\n\n```bash\n# Core functionality\npip install git+https://github.com/jolars/qualpal-py\n\n# With visualization support\npip install git+https://github.com/jolars/qualpal-py[viz]\n```\n\n## Quick Start\n\n```python\nfrom qualpal import Qualpal\n\n# Generate 6 distinct colors\nqp = Qualpal()\npalette = qp.generate(6)\n\n# Display colors\nprint(palette.hex())\n# ['#f68ec8', '#233604', '#15045a', '#13cbf6', '#ebf919', '#e84123']\n\n# Export for CSS\ncss = palette.to_css(prefix=\"theme\")\n# ['--theme-1: #f68ec8;', '--theme-2: #233604;', ...]\n\n# Visualize (requires matplotlib)\npalette.show(labels=True)\n```\n\n## Key Features\n\n- 🎨 **Smart Color Generation** - Automatically selects maximally distinct colors\n- 🎯 **Customizable** - Control hue, saturation, lightness ranges\n- ♿ **Accessible** - CVD (color vision deficiency) simulation and optimization\n- 📊 **Analysis** - Measure perceptual distances between colors\n- 📤 **Export** - CSS, JSON, and matplotlib visualization\n- 📓 **Jupyter** - Rich HTML display in notebooks\n- 🚀 **Fast** - C++ backend with Python interface\n\n## Examples\n\n### Customize Color Space\n\n```python\n# Pastel colors\nqp = Qualpal(colorspace={\"h\": (0, 360), \"s\": (0.3, 0.6), \"l\": (0.7, 0.9)})\npastels = qp.generate(5)\n```\n\n### CVD-Aware Palettes\n\n```python\n# Generate palette safe for deuteranomaly\nqp = Qualpal(cvd={\"deutan\": 0.7})\naccessible = qp.generate(6)\n```\n\n### Color Operations\n\n```python\nfrom qualpal import Color\n\n# Create and convert colors\ncolor = Color(\"#ff0000\")\nprint(color.rgb())  # (1.0, 0.0, 0.0)\nprint(color.hsl())  # (0.0, 1.0, 0.5)\nprint(color.lab())  # (53.24, 80.09, 67.20)\n\n# Measure perceptual distance\nred = Color(\"#ff0000\")\norange = Color(\"#ff6600\")\ndistance = red.distance(orange)  # 33.42\n```\n\n## Documentation\n\nThe full documentation is available at \u003chttps://jolars.github.io/qualpal-py/\u003e.\n\n## Contributing\n\nContributions are welcome!\n\nNote that the main functionality comes from the underlying C++ library,\nwhich is developed and maintained at \u003chttps://github.com/jolars/qualpal\u003e.\nSo if you want to contribute to the core algorithms, please do so there.\n\n## License\n\nQualpal is licensed under the [MIT license](LICENSE)\n\n## Citation\n\nIf you use Qualpal in your research, please cite the following paper:\n\n\u003e Larsson, J. (2025). Qualpal: Qualitative Color Palettes for Everyone.\n\u003e _Journal of Open Source Software_, 10(114), 8936.\n\u003e [https://doi.org/10.21105/joss.08936](https://doi.org/10.21105/joss.08936)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjolars%2Fqualpal-py","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjolars%2Fqualpal-py","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjolars%2Fqualpal-py/lists"}