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

Built distribution (wheel)

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

Total release size: 110.9 kB

Release files / chrys-5.2.0.tar.gz

Download URL chrys-5.2.0.tar.gz
Size 58.4 kB
Tags Source
SHA-256 checksum
How to use checksums
86b7c9b08ef14fa00ba5f19bd7bd3e8aa2aaec943561ede889a006969cafd39f
BLAKE2b-256 checksum
How to use checksums
dc8678ecfd7951d38c71d8a89934a79baf440a4288ec6ca60402f9f24b101ac0
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.0-py3-none-any.whl

Download URL chrys-5.2.0-py3-none-any.whl
Size 52.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
46d15f7e523a6bc5354b7d25f8ac26a4568dc9e459755b6c4ef181dceb5b3443
BLAKE2b-256 checksum
How to use checksums
3f4d0d3670121be04df497a6a49c2f106068cc2d567102d650c36b6c96f070e5
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.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.2.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