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

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

Built distribution (wheel)

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

Total release size: 105.5 kB

Release files / chrys-5.0.0.tar.gz

Download URL chrys-5.0.0.tar.gz
Size 54.9 kB
Tags Source
SHA-256 checksum
How to use checksums
8fd19a092f83e27786d7a6bc639176e522b8fe728c4a8355f1e41c23aa4268a0
BLAKE2b-256 checksum
How to use checksums
ca317b41605e035eddf4a7189fe0adc5f9a1ebd54e03ba76c1566f62f69aa66d
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.0-py3-none-any.whl

Download URL chrys-5.0.0-py3-none-any.whl
Size 50.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ffcedaea8244fd9e86fe002b7ffddc75ba283b297b3851459f80cbce79348946
BLAKE2b-256 checksum
How to use checksums
b7652ba80977b0f3f33e2c75a322660fd2f8640e1c3541493626ff254355c740
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.0

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