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.0.tar.gz
(6.1 kB
view hashes)
Built Distribution
Close
Hashes for perspective-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8f6e5a1ec8f4f4734704e6e9f5614658df636d466ca05df0a0f922f767fec43 |
|
MD5 | 806ed2a3948a750cb4101bc39593ae13 |
|
BLAKE2b-256 | a3dbb3e93e2b6915887033f8f4b916b943add2d4e9d4e74f1a4896c48ddb56a7 |