Metadata-Version: 2.4
Name: accessibility-devkit
Version: 1.1.1
Summary: Portable accessibility checks with explicit manual-review boundaries.
Project-URL: Homepage, https://github.com/actually-useful-ai/accessibility-devkit
Project-URL: Issues, https://github.com/actually-useful-ai/accessibility-devkit/issues
Project-URL: Documentation, https://github.com/actually-useful-ai/accessibility-devkit#readme
Author-email: Luke Steuber <luke@lukesteuber.com>
License: MIT License
        
        Copyright (c) 2026 Luke Steuber
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
License-File: LICENSE
Keywords: a11y,accessibility,cli,testing,wcag
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Console
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Software Development :: Quality Assurance
Requires-Python: >=3.11
Description-Content-Type: text/markdown

# 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`.

```bash
python -m pip install accessibility-devkit
```

Run without keeping a global install:

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

## Python API

```python
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

```text
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.
