A collection of color palettes for mapping and visualisation
Project description
chrys
A collection of color palettes for visualisation in JavaScript, Python and Sass.
Demo
Installation
Node.js and Sass
npm install chrys
Python 3.10 and up
pip install chrys
Usage
For instructions, refer to the docs.
Development: Installation
-
Install Node 22.x:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash source ~/.bashrc nvm install 22 nvm use 22
-
Install uv:
curl -LsSf https://astral.sh/uv/install.sh | sh
-
Create
.pypirc:cp example.pypirc .pypirc
-
Enter a PyPI API token as the password in
.pypirc. -
Install Node and Python dependencies:
npm ci uv sync
Development: Usage
Patch Node dependencies to fix ESM imports:
npx patch-package @bokeh/bokehjs --exclude 'nothing'
npx patch-package vega-scale --exclude 'nothing'
Build the palette data, JavaScript and Python distribution packages, Sass, CSS, Illustrator scripts:
npm run build-data
npm run build-dist
Publish the JavaScript and Python distribution packages:
npm run publish-dist
Credit
Palettes from:
License
Copyright (c) 2017 Hein Bekker. Licensed under the BSD 3-Clause License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file chrys-4.2.0.tar.gz.
File metadata
- Download URL: chrys-4.2.0.tar.gz
- Upload date:
- Size: 2.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cad2ce165f296645f6f12c3b6720a5a56b07b58d6bf79d199c1b4e0876909fac
|
|
| MD5 |
4e5b4fc0be6c5aa4bdd789b6343406ac
|
|
| BLAKE2b-256 |
e83214aa4661d7a716a2c2fc0b925e16c018dec873d140b5dd98837d88c24f3f
|
File details
Details for the file chrys-4.2.0-py3-none-any.whl.
File metadata
- Download URL: chrys-4.2.0-py3-none-any.whl
- Upload date:
- Size: 42.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2f505dbfd07f3d7234fae8c0c57d041d17bdfbe8dbebb442462273431362619d
|
|
| MD5 |
d6b95dcb57be497b3cd87c7d5cd63473
|
|
| BLAKE2b-256 |
c97bf776b23a90e53209d4f539b308d0eef22639c25e7fa89adcf7f9ce7bb643
|