Skip to main content

Note: This package name is reserved by its owner. This distribution is a small standalone utility and is not affiliated with, part of, or a substitute for any other software that uses a similar name. If you were looking for a TRW component, install it with the official TRW installer, which uses its own package index.

contrastcheck

Parse hex colour strings and compute the WCAG contrast ratio between two colours, with an AA/AAA pass helper. Standard library only.

from contrastcheck import contrast_ratio, passes

contrast_ratio("#000", "#fff")                 # 21.0
passes("#767676", "#ffffff", "AA")             # True
passes("#767676", "#ffffff", "AAA")            # False
passes("#767676", "#ffffff", "AAA", large_text=True)  # True

Metadata

Release files for trw-distill 0.0.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 trw-distill 0.0.1
File Size Uploaded Provenance
trw_distill-0.0.1.tar.gz 2.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for trw-distill 0.0.1
File Interpreter ABI Platform
trw_distill-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 5.7 kB

Release files / trw_distill-0.0.1.tar.gz

Download URL trw_distill-0.0.1.tar.gz
Size 2.6 kB
Tags Source
SHA-256 checksum
How to use checksums
7b159fc0e3c55d4b043d9b161ae089c1909b9675b09e45f1d34be1bc534fefb3
BLAKE2b-256 checksum
How to use checksums
f064b55db47d52e4910d6ce10510b5420fafbb41f26db2ccbc04eb93d6650239
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.15 {"installer":{"name":"uv","version":"0.12.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / trw_distill-0.0.1-py3-none-any.whl

Download URL trw_distill-0.0.1-py3-none-any.whl
Size 3.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
12c51637515d77ea6b8e978396fa9ea100405227ce351c780f8ab771eb2fc204
BLAKE2b-256 checksum
How to use checksums
246902b09cb87980a953388a9ce3618d090ddb56a8731f686ea44a2206185d8d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.15 {"installer":{"name":"uv","version":"0.12.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for trw-distill 0.0.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

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