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.2.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.2.1
File Size Uploaded Provenance Actions
chrys-5.2.1.tar.gz 58.4 kB Without provenance Details for chrys-5.2.1.tar.gz

Built distribution (wheel)

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

Total release size: 110.8 kB

Release files / chrys-5.2.1.tar.gz

Download URL chrys-5.2.1.tar.gz
Size 58.4 kB
Tags Source
SHA-256 checksum
How to use checksums
2a099daa1021efd5d57c2bc94ef9cadbfc009c7e3e68bbeb910d5764c38c56bb
BLAKE2b-256 checksum
How to use checksums
447025a49f6be5ac42319b1d956703fde6e3041a1c05390e9f9efe72f0d39dba
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.2.1-py3-none-any.whl

Download URL chrys-5.2.1-py3-none-any.whl
Size 52.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9014f2571ffe5ab29400633f3c9ed6b60f8b914b25eab09714a99da314ddd4b8
BLAKE2b-256 checksum
How to use checksums
1374a1c5e51ba790db42bdfc60fee5d1f57240ddbda49280bdcbf286c000888f
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.2.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.2.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