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
Full documentation
Comment splitting for comments >3000 characters
HTML stripping option (until the API supports this natively)
Tests
Project details
Release history Release notifications | RSS feed
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 hashes)