Skip to main content

Automated web accessibility testing using axe-core engine.

Project description

axe-core-python

PyPI PyPI - License PyPI - Python Version PyPI - Downloads

Automated web accessibility testing using axe-core engine.

Documentation

Requirements

Installation

pip install -U axe-core-python

Usage

from playwright.sync_api import sync_playwright
from axe_core_python.sync_playwright import Axe

axe = Axe()

with sync_playwright() as playwright:
    browser = playwright.chromium.launch()
    page = browser.new_page()
    page.goto("https://www.google.com")
    result = axe.run(page)
    browser.close()

violations = result['violations']
print(f"{len(violations)} violations found.")

For more examples see documentation.

Project details


Download files

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

Source Distribution

axe-core-python-0.1.0.tar.gz (114.3 kB view details)

Uploaded Source

Built Distribution

axe_core_python-0.1.0-py3-none-any.whl (115.8 kB view details)

Uploaded Python 3

File details

Details for the file axe-core-python-0.1.0.tar.gz.

File metadata

  • Download URL: axe-core-python-0.1.0.tar.gz
  • Upload date:
  • Size: 114.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.11 CPython/3.10.4 Windows/10

File hashes

Hashes for axe-core-python-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8a9af93a22f1b47da65be2b9878f83be39155ccc4c7286a8de8e4fc88a7a27c6
MD5 04a3ff36d6dcd40c809c898a1a47bcb0
BLAKE2b-256 bef4c85e943a3560e7f91cfe2c8cd85c47cbb504ba8b4303fc4affc0ad71a29a

See more details on using hashes here.

File details

Details for the file axe_core_python-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: axe_core_python-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 115.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.11 CPython/3.10.4 Windows/10

File hashes

Hashes for axe_core_python-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f99f6bd674726c631c5e20b876983b44dff2b8f452a0ccf08f3c23ee45d0aac3
MD5 c09518e2ee6adfac916fd59a357de04d
BLAKE2b-256 251839196ff6c961685d2805f4d0fa7030e59983e413427c1cc8123247cf2bc6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page