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/)

##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) `

##Todo

  1. Full documentation

  2. Comment splitting for comments >3000 characters

  3. HTML stripping option (until the API supports this natively)

  4. Tests

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.1b0.tar.gz (1.6 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for perspective-0.1b0.tar.gz
Algorithm Hash digest
SHA256 b1ec76a0ab0eb3f1ede25a5c5027a18ef190e04c70fa7a04d004704b8b5f9dc3
MD5 5ea816ec209ac67fa4f30e26efe5c687
BLAKE2b-256 3f2a5e0aac9fad9364540ed399ec1142d22102fd161bc5e5a5e563128e80f442

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