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.13 and up
pip install chrys
Usage
For instructions, refer to the docs.
Development: Installation
-
Install Nix:
sh <(curl -L https://nixos.org/nix/install) --daemon
-
Configure Nix. Edit
/etc/nix/nix.conf(for a multi-user installation) or~/.config/nix/nix.conf(for a single-user installation) to include the following lines:experimental-features = nix-command flakes trusted-users = root <USER>
Replace
<USER>with your username on your computer. -
Install direnv:
sudo apt install direnv
-
Enable direnv in your shell by adding a line to your shell configuration file.
For Bash, edit
~/.bashrc:eval "$(direnv hook bash)"
-
Allow
.envrc:direnv allow -
Create
.pypirc:cp example.pypirc .pypirc
-
Enter a PyPI API token as the password in
.pypirc.
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:
make build-data
Build and publish the JavaScript and Python distribution packages:
make bump-version [major|minor|patch]
git push
make build-dist-and-commit
git push
make create-release
make publish
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.5.tar.gz.
File metadata
- Download URL: chrys-4.2.5.tar.gz
- Upload date:
- Size: 2.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
85283944014ab6906b4731cc46d3631d4efa55c2af4dd1a114be1b76d7c6430c
|
|
| MD5 |
a21dbb595d1b699774bb54b0fc9d649d
|
|
| BLAKE2b-256 |
6c8718f1339e2ad203f96acf06b526b4b6e0441f24b9813214b8d275a9f067a5
|
File details
Details for the file chrys-4.2.5-py3-none-any.whl.
File metadata
- Download URL: chrys-4.2.5-py3-none-any.whl
- Upload date:
- Size: 45.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
14b24bd026743a6b4d9e4a5599a2799823eb5ba8b2edd45c8aac53edd695f486
|
|
| MD5 |
3e9d945acb14510e045163596e2e7474
|
|
| BLAKE2b-256 |
137ab69b5ab73d6f58000d8aae308a45142eec3c762e2ce319e642c0bd95f2d7
|