Metadata-Version: 2.4
Name: a11yviz
Version: 0.1.1
Summary: Accessibility tools for matplotlib, plotly, and Quarto
Author-email: Mikyung Shin <shin.mikyung@gmail.com>
License-Expression: MIT
Project-URL: Homepage, https://mshin77.github.io/a11yviz
Project-URL: Documentation, https://mshin77.github.io/a11yviz
Project-URL: Repository, https://github.com/mshin77/a11yviz-py
Project-URL: Issues, https://github.com/mshin77/a11yviz-py/issues
Keywords: accessibility,wcag,a11y,matplotlib,plotly,data-visualization
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Science/Research
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Scientific/Engineering :: Visualization
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: pyyaml>=6.0
Provides-Extra: matplotlib
Requires-Dist: matplotlib>=3.7.0; extra == "matplotlib"
Provides-Extra: plotly
Requires-Dist: plotly>=5.15.0; extra == "plotly"
Provides-Extra: docs
Requires-Dist: itables>=2.0; extra == "docs"
Requires-Dist: pandas>=1.5; extra == "docs"
Requires-Dist: scikit-learn>=1.0; extra == "docs"
Provides-Extra: all
Requires-Dist: matplotlib>=3.7.0; extra == "all"
Requires-Dist: plotly>=5.15.0; extra == "all"
Requires-Dist: itables>=2.0; extra == "all"
Requires-Dist: pandas>=1.5; extra == "all"
Requires-Dist: scikit-learn>=1.0; extra == "all"
Provides-Extra: test
Requires-Dist: pytest>=7.0; extra == "test"
Requires-Dist: pytest-cov; extra == "test"
Dynamic: license-file

a11yviz Logo

[![PyPI version](https://img.shields.io/pypi/v/a11yviz)](https://pypi.org/project/a11yviz/)
[![Python versions](https://img.shields.io/pypi/pyversions/a11yviz)](https://pypi.org/project/a11yviz/)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

Tools to make `matplotlib` and `plotly` charts plus Markdown / Quarto
documents follow the [Web Content Accessibility Guidelines
(WCAG 2.1)](https://www.w3.org/TR/WCAG21/). Provides accessible themes,
layout helpers, WCAG-tagged palettes, alt-text scaffolds, per-criterion
audits, a chart-and-document rubric, heading-hierarchy and reading-level
checks, and a drop-in stylesheet for HTML tables and SVG diagrams. R
sibling: [a11yviz](https://github.com/mshin77/a11yviz).

## Installation

```bash
pip install a11yviz
```

## Quick start

```python
import matplotlib.pyplot as plt
import a11yviz
from sklearn.datasets import load_iris

_data = load_iris(as_frame=True)
iris = _data.frame
iris["species"] = _data.target_names[iris["target"]]
cols = a11yviz.palette("dark2_8")
markers = ["o", "s", "^"]

fig, ax = plt.subplots()
for i, (sp, sub) in enumerate(iris.groupby("species")):
    ax.scatter(sub["sepal length (cm)"], sub["sepal width (cm)"],
               color=cols[i], marker=markers[i], label=sp)
ax.set_xlabel("Sepal length (cm)")
ax.set_ylabel("Sepal width (cm)")
ax.legend()

a11yviz.alt_text(fig, "Scatter of iris sepal width vs length by species.")
```

## Citation

Shin, M. (2026). *a11yviz: Accessibility toolkit for ggplot2, plotly, and
Quarto* (R package version 0.1.1). <https://mshin77.github.io/a11yviz>

Shin, M. (2026). *a11yviz: Accessibility toolkit for matplotlib, plotly,
and Quarto* (Python package version 0.1.1). <https://pypi.org/project/a11yviz/>
