Skip to main content

A package for interacting with the Perspective API

Project description


perspective is an API wrapper for Google's Perspective API


To install, use pip install perspective


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

Project details

Download files

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

Files for perspective, version 1.0.3
Filename, size File type Python version Upload date Hashes
Filename, size perspective-1.0.3-py3-none-any.whl (7.0 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size perspective-1.0.3.tar.gz (6.1 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page