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)

WCAG and APCA contrast algorithms from:

License

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

Metadata

Release files for chrys 5.0.2

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.0.2
File Size Uploaded Provenance Actions
chrys-5.0.2.tar.gz 54.9 kB Without provenance Details for chrys-5.0.2.tar.gz

Built distribution (wheel)

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

Total release size: 105.5 kB

Release files / chrys-5.0.2.tar.gz

Download URL chrys-5.0.2.tar.gz
Size 54.9 kB
Tags Source
SHA-256 checksum
How to use checksums
0713e3d095cec658a4ba0094eb04fdd910e318d63adfbda048a6636432f1bbb9
BLAKE2b-256 checksum
How to use checksums
09e67bf33d2487534b855c5ebdfa7495375135439b56766286969a0b8b717571
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.0.2-py3-none-any.whl

Download URL chrys-5.0.2-py3-none-any.whl
Size 50.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8a35ff6bc3c94e1a6cba52c44031a8f309eaee78794967f22d0dd0caf6078cc4
BLAKE2b-256 checksum
How to use checksums
97f8445712c33387217d463f556e76a1ec973cbad500c624ae1f868604831aa5
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.0.2

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.0.2 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