A package for interacting with the Perspective API
Project description
perspective
perspective is an API wrapper for Google's Perspective API
Installation
To install, use pip install perspective
Usage
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
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-1.0.2.tar.gz
(6.1 kB
view hashes)
Built Distribution
Close
Hashes for perspective-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 127abdc09813dca8657231d39182cca99b298085b228f3c36fcf000ee1157fc6 |
|
MD5 | 2dfa93ec213ab317d29befe51bdbdba4 |
|
BLAKE2b-256 | 5e27f15f1ce8ca1c42f2a3b3be862f8bd1bdc392d93fe4d9fc56c5b4dea251eb |