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.

Source Distribution

perspective-0.1.tar.gz (1.6 kB view details)

Uploaded Source

File details

Details for the file perspective-0.1.tar.gz.

File metadata

  • Download URL: perspective-0.1.tar.gz
  • Upload date:
  • Size: 1.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for perspective-0.1.tar.gz
Algorithm Hash digest
SHA256 6e92811a4c0f00e55c09d0c56964d97976e908abcf43c2c4f1d97e1fa570e384
MD5 393a590a659da1a75a3db8a1bf3cbaac
BLAKE2b-256 00564adb6329da2cfea247c9305502df3909a67fd77d2b36e003a951ba8732b6

See more details on using hashes here.

Supported by

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