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.3.tar.gz
(6.1 kB
view hashes)
Built Distribution
Close
Hashes for perspective-1.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7566d534d697fcb75f9f2ea9568c12fcf06c1557ea2abaa1a842581a9cbc7919 |
|
MD5 | ce40f40a24f6b4372114ee91d393c4f7 |
|
BLAKE2b-256 | 044caa91067eb004a7002359aa4cac3b6778d8e2e9af49d092d0d32bd091f27a |