perspective 1.0.3
pip install perspective
Latest version
Released:
A package for interacting with the Perspective API
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License
- Author: Jake Conway
- Requires: Python >=3.8
Classifiers
- License
- Operating System
- Programming Language
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
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License
- Author: Jake Conway
- Requires: Python >=3.8
Classifiers
- License
- Operating System
- Programming Language
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
Built Distribution
File details
Details for the file perspective-1.0.3.tar.gz
.
File metadata
- Download URL: perspective-1.0.3.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6faec174ae7ac986721af018815cfd7c3b5e425d6bedda463898ab20f8cd373d |
|
MD5 | b5a7d2a1c6baa1f31eaab8d850defcc4 |
|
BLAKE2b-256 | 37545a0b4e5b30cf74655b9ca26b5b18b42549a8fa120674730c9e7d8212e1b3 |
File details
Details for the file perspective-1.0.3-py3-none-any.whl
.
File metadata
- Download URL: perspective-1.0.3-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7566d534d697fcb75f9f2ea9568c12fcf06c1557ea2abaa1a842581a9cbc7919 |
|
MD5 | ce40f40a24f6b4372114ee91d393c4f7 |
|
BLAKE2b-256 | 044caa91067eb004a7002359aa4cac3b6778d8e2e9af49d092d0d32bd091f27a |