Skip to main content

A package for interacting with the Perspective API

Project description

perspective

perspective is an API wrapper for Google's Perspective API

Installation

To install, use pip install perspective

Usage

A simple example:

from perspective import PerspectiveAPI
p = Perspective("API_KEY")
result = p.score("This is a comment")
print("Toxicity score: " + result["TOXICITY"])

More complex

Supported by

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