perspective is an API wrapper for Google's Perspective API
Some documentation is available on readthedocs.
To install, use pip install perspective
A simple example:
from perspective import Perspective
p = Perspective("API_KEY")
comment = p.score("This is a comment", tests=["TOXICITY"])
print("Toxicity score: " + comment["TOXICITY"].score)