Skip to content

tenon-io/tenon-python

develop
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Active maintenance of tenon-python has moved to tenon-io/tenon-python.

Python wrapper for the Tenon.io API

Installation

pip install tenon-python

Usage

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)

Documentation

More information about available options can be found in the Tenon API documentation.

analyze(string, [options])

Tests a given url, code snippet or full HTML page for accessibility issues.

checkUrl(url, [options])

Tests a given URL for accessibility issues.

checkSrc(src, [options])

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.

checkFragment(src, [options])

Tests a fragment, block or snippet of code for accessibility issues.

Examples

See examples.py

License

Copyright (c) 2015 Justin Stockton
Licensed under the MIT license.

About

Python wrapper for the Tenon.io API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages