Skip to main content

colorteller

Test Code with Pip

Benchmark color palettes.

pip install colorteller

We have a website!

We have built a website for color palette discovery and sharing:

https://colorteller.kausalflow.com

Documentation

Read the Documentation.

Use the Command Line Tool

colorteller benchmark -h "#8de4d3" -h "#344b46" -h "#74ee65" -h "#238910" -h "#a6c363" -h "#509d99" -wbc True -t test_colorteller_cmd
  • -h specifies a color in hex format;
  • -t specifies the folder to hold all the results (charts, metrics json, etc). It should be a folder.;
  • -wbc is True will create benchmark metric charts;

Use in Python Code

Create a ColorTeller Object

from colorteller.teller import ColorTeller

hex_strings = ["#8de4d3", "#344b46", "#74ee65", "#238910", "#a6c363", "#509d99"]

ct = teller.ColorTeller(hex_strings=hex_strings)

To retrieve the properties of the color palette, please refer to colorteller.teller.

Create Benchmarks

from colorteller.teller import ColorTeller
from colorteller.utils import benchmark

hex_strings = ["#8de4d3", "#344b46", "#74ee65", "#238910", "#a6c363", "#509d99"]

ct = teller.ColorTeller(hex_strings=hex_strings)
c = teller.Colors(colorteller=ct)

m = c.metrics(
    methods=[
        benchmark.PerceptualDistanceBenchmark,
        benchmark.LightnessBenchmark
    ]
)

Visualizations

Metric Visualizations

from colorteller import teller
from colorteller.utils import benchmark
from colorteller.visualize import BenchmarkCharts, ApplicationCharts

hex_strings = ["#8de4d3", "#344b46", "#74ee65", "#238910", "#a6c363", "#509d99"]

ct = teller.ColorTeller(hex_strings=hex_strings)

c = teller.Colors(colorteller=ct)

m = c.metrics(
    methods=[benchmark.PerceptualDistanceBenchmark, benchmark.LightnessBenchmark]
)

charts = BenchmarkCharts(metrics=m, save_folder=".")

charts.distance_matrix(show=True)
charts.noticable_matrix(show=True)

Demo Figures Using the Color Palette

from colorteller import teller
from colorteller.utils import benchmark
from colorteller.visualize import BenchmarkCharts, ApplicationCharts

hex_strings = ["#8de4d3", "#344b46", "#74ee65", "#238910", "#a6c363", "#509d99"]

ct = teller.ColorTeller(hex_strings=hex_strings)

c = teller.Colors(colorteller=ct)

ac = ApplicationCharts(colors=c, save_folder=".")

ac.charts(save_to=True)

# One could also create specific charts using the following
# ac.bar_chart(show=True)
# ac.line_chart(show=True)
# ac.scatter_chart(show=True)
# ac.donut_chart(show=True)

Metadata

Release files for colorteller 0.0.3

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

Source distribution (sdist)

Source distribution for colorteller 0.0.3
File Size Uploaded Provenance Actions
colorteller-0.0.3.tar.gz 76.6 kB Without provenance Details for colorteller-0.0.3.tar.gz

Built distribution (wheel)

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

Total release size: 90.9 kB

Release files / colorteller-0.0.3.tar.gz

Download URL colorteller-0.0.3.tar.gz
Size 76.6 kB
Tags Source
SHA-256 checksum
How to use checksums
1fd955a18898241401eb8fbaf6c6ab936e7d2c5254cc9abba8935687980e5fbf
BLAKE2b-256 checksum
How to use checksums
1d0cfbb2323887423f727c58253b53ce0e60dc4437695cf51207980d271f81ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

Release files / colorteller-0.0.3-py3-none-any.whl

Download URL colorteller-0.0.3-py3-none-any.whl
Size 14.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
475ae73179b734eb4b4a4c38b847071391c6058065c8d4b96a8a1de8ed97205a
BLAKE2b-256 checksum
How to use checksums
33f32ba67e63cad667de08b6b63f3c19b9a1dcd033860415e7cbad2f5f240853
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

Security for colorteller 0.0.3

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.

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