Getting Started
Prerequisites
Section titled “Prerequisites”- Python 3.10 or later
- pip
Install
Section titled “Install”Create a virtual environment and install the demo CLI along with the Ally tools:
python -m venv .venvsource .venv/bin/activate # Windows: .venv\Scripts\activate
pip install -e .pip install a11y-assist a11y-lintThis installs:
- demo-cli — the reference CLI that emits
cli.error.v0.1JSON. - a11y-assist — explains errors using accessibility profiles.
- a11y-lint — validates your error messages against the contract.
Run a demo scenario
Section titled “Run a demo scenario”Trigger the network timeout error and capture JSON output:
demo-cli network-timeout --json-out /tmp/error.jsonYou will see human-readable output on stdout and machine-readable JSON written to the file.
Explain with different profiles
Section titled “Explain with different profiles”Pass the captured JSON to a11y-assist with any of the five built-in profiles:
a11y-assist explain --json /tmp/error.json --profile lowvisiona11y-assist explain --json /tmp/error.json --profile cognitive-loada11y-assist explain --json /tmp/error.json --profile screen-readera11y-assist explain --json /tmp/error.json --profile dyslexiaa11y-assist explain --json /tmp/error.json --profile plain-languageEach profile transforms the same error into a presentation tuned for that audience. The ground truth stays the same; only the delivery changes.