Skip to main content

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

netbek.github.io/chrys

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

  1. Install Nix:

    sh <(curl -L https://nixos.org/nix/install) --daemon
    
  2. 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.

  3. Install direnv:

    sudo apt install direnv
    
  4. Enable direnv in your shell by adding a line to your shell configuration file.

    For Bash, edit ~/.bashrc:

    eval "$(direnv hook bash)"
    
  5. Allow .envrc:

    direnv allow
    
  6. Create .pypirc:

    cp example.pypirc .pypirc
    
  7. 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

This version

4.2.4

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

chrys-4.2.4.tar.gz (2.5 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

chrys-4.2.4-py3-none-any.whl (45.6 kB view details)

Uploaded Python 3

File details

Details for the file chrys-4.2.4.tar.gz.

File metadata

  • Download URL: chrys-4.2.4.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

Hashes for chrys-4.2.4.tar.gz
Algorithm Hash digest
SHA256 98a4d3dda3f55e1c3c5e17b28a490363cd4806b5adfa459f4208c59064d44dfa
MD5 af5e22ae3b7404af59de525b951b8f33
BLAKE2b-256 7de9247968178afab48a1fdf8af5548dafe5ea303915fc650a8983cd89d9aede

See more details on using hashes here.

File details

Details for the file chrys-4.2.4-py3-none-any.whl.

File metadata

  • Download URL: chrys-4.2.4-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

Hashes for chrys-4.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 6549e50518f2706c350b9752bb958ecb8a4afb09feda913e3224b4865e82809f
MD5 12306c7ec9879411237ce45573679d32
BLAKE2b-256 6f5853a5fee0885641be5db0c98abb740de73cdea7081dd1f8a44015a4cbacf1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page