Active maintenance of tenon-python has moved to tenon-io/tenon-python.
pip install tenon-python
import os
from tenon.api import TenonIO
tenonApi = TenonIO(key=os.environ['TENON_API_KEY'])
response = tenonApi.checkUrl('http://www.example.com')
print(response.text)
More information about available options can be found in the Tenon API documentation.
Tests a given url, code snippet or full HTML page for accessibility issues.
Tests a given URL for accessibility issues.
Tests a complete HTML document for accessibility issues.
Note: if you want to test a fragment, block or snippet of code against Tenon, then use checkFragment()
or specify fragment: '1'
in your options.
Tests a fragment, block or snippet of code for accessibility issues.
See examples.py
Copyright (c) 2015 Justin Stockton
Licensed under the MIT license.