Skip to main content

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. Clone the repo:

    git clone git@github.com:netbek/chrys.git
    
  2. Install Mise and add activation to ~/.bashrc, e.g.

    curl -fsSL https://github.com/jdx/mise/releases/download/v2026.7.13/install.sh | sh
    

    See other installation methods.

  3. Trust mise.toml:

    mise trust
    
  4. Create a PyPI API token, and add the token to the system keyring as the password:

    keyring set pypi-chrys __token__
    

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
make create-release
make publish

Credit

Palettes from:

  • Bokeh — Copyright (c) 2012-2022 Anaconda, Inc., and Bokeh Contributors (BSD 3-Clause)
  • D3 — D3: Copyright (c) 2010-2026 Mike Bostock; ColorBrewer: Copyright 2002 Cynthia Brewer, Mark Harrower, and The Pennsylvania State University (ISC; ColorBrewer palettes Apache 2.0)
  • Vega — Copyright (c) 2015-2023 University of Washington Interactive Data Lab (BSD 3-Clause)

Continuous color sampling adapted from:

  • Bokeh — Copyright (c) 2012-2018 Anaconda, Inc., and Bokeh Contributors (BSD 3-Clause)

APCA contrast algorithm from:

License

Copyright (c) 2017 Hein Bekker. Licensed under the BSD 3-Clause License.

Metadata

Release files for chrys 5.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for chrys 5.4.1
File Size Uploaded Provenance Actions
chrys-5.4.1.tar.gz 59.6 kB Without provenance Details for chrys-5.4.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for chrys 5.4.1
File Interpreter ABI Platform Actions
chrys-5.4.1-py3-none-any.whl Python 3 none any Details for chrys-5.4.1-py3-none-any.whl

Total release size: 113.0 kB

Release files / chrys-5.4.1.tar.gz

Download URL chrys-5.4.1.tar.gz
Size 59.6 kB
Tags Source
SHA-256 checksum
How to use checksums
bd8383316a9b7037f9bd09dcc40b111eaaa3496b21be2b01835ce4cb16104743
BLAKE2b-256 checksum
How to use checksums
69ee518c5fde4f495885faddb901756d57b30db2177659028559c3bc4ab452b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.11

Release files / chrys-5.4.1-py3-none-any.whl

Download URL chrys-5.4.1-py3-none-any.whl
Size 53.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d699e89dd23b2a5136118c5d76509620275ad4fec5d982dc28ffc932cba9fe8e
BLAKE2b-256 checksum
How to use checksums
9e83d5c5332d025587d883c5fa20d3fde309d10e31d09cc5b6ba4c387c4de30c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.11

Security for chrys 5.4.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

5.4.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page