Skip to main content

accessibility-devkit for Python

A dependency-free Python 3.11+ package with the same commands, JSON contract, findings, and exit codes as @accessibility-devkit/cli.

python -m pip install accessibility-devkit

Run without keeping a global install:

pipx run accessibility-devkit scan ./index.html --profile all

Python API

from accessibility_devkit import (
    assess_time_limit,
    get_contrast_ratio,
    meets_contrast_threshold,
    scan_source,
)

ratio = get_contrast_ratio("#595959", "#ffffff")
passes = meets_contrast_threshold("#595959", "#ffffff")
timing = assess_time_limit({"adjustmentMultiplier": 10})
report = scan_source('<html lang="en"><main></main></html>', target="inline.html")

CLI

accessibility-devkit scan <files...> [--profile cvi|switch|all] [--format text|json]
accessibility-devkit contrast <foreground> <background> [--level AA|AAA] [--text-size normal|large]
accessibility-devkit readability <file|->
accessibility-devkit timing <policy.json>

Manual checks never fail CI. Static analysis does not replace browser, assistive-technology, or human verification; read each report's manualChecks before drawing a conclusion.

MIT © Luke Steuber.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

accessibility_devkit-1.1.2.tar.gz (12.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

accessibility_devkit-1.1.2-py3-none-any.whl (14.6 kB view details)

Uploaded Python 3

File details

Details for the file accessibility_devkit-1.1.2.tar.gz.

File metadata

  • Download URL: accessibility_devkit-1.1.2.tar.gz
  • Upload date:
  • Size: 12.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for accessibility_devkit-1.1.2.tar.gz
Algorithm Hash digest
SHA256 b9fe06b948aa18a7ddf9cb0fcdd1e89f05eff6d37d8e2cad4ddb5e841db56ac6
MD5 0b069279111214bfd1d58dcaee49aa7a
BLAKE2b-256 7eee274f5b93210358eb13fb8bb247c77bdfe32dfa86312adf40da7c9607d26f

See more details on using hashes here.

Provenance

The following attestation bundles were made for accessibility_devkit-1.1.2.tar.gz:

Publisher: release.yml on actually-useful-ai/accessibility-devkit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file accessibility_devkit-1.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for accessibility_devkit-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0030d426dc941518428675e02546b1f46fff3cc5f626f57d403dbadc24d911c7
MD5 2b2e7715cd6793bf4c708d08322e34ea
BLAKE2b-256 81da90bccd25b89bab72c28e11a726988c11f095ee5960bd878eac555e8e6230

See more details on using hashes here.

Provenance

The following attestation bundles were made for accessibility_devkit-1.1.2-py3-none-any.whl:

Publisher: release.yml on actually-useful-ai/accessibility-devkit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

1.1.2 This release

2 files

1.1.1

2 files

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