Skip to main content

A package for interfacing with Google's Perspective API

Project description

# perspective

perspective is an API wrapper for Google’s [Perspective API](http://www.perspectiveapi.com/)

## documentation

Some documentation is available [on readthedocs](http://perspective.readthedocs.io/en/latest/).

## Installation

To install, use pip install perspective

## Usage

A simple example:

`python from perspective import Perspective p = Perspective("API_KEY") comment = p.score("This is a comment", tests=["TOXICITY"]) print("Toxicity score: " + comment["TOXICITY"].score) `

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 0.1
Filename, size File type Python version Upload date Hashes
Filename, size perspective-0.1.tar.gz (1.6 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page