Skip to main content

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

Metadata

Release files for perspective 1.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for perspective 1.0.3
File Size Uploaded
perspective-1.0.3.tar.gz 6.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for perspective 1.0.3
File Interpreter ABI Platform
perspective-1.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 13.1 kB

Release files / perspective-1.0.3.tar.gz

Download URL perspective-1.0.3.tar.gz
Size 6.1 kB
Tags Source
SHA-256 checksum
How to use checksums
6faec174ae7ac986721af018815cfd7c3b5e425d6bedda463898ab20f8cd373d
BLAKE2b-256 checksum
How to use checksums
37545a0b4e5b30cf74655b9ca26b5b18b42549a8fa120674730c9e7d8212e1b3
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / perspective-1.0.3-py3-none-any.whl

Download URL perspective-1.0.3-py3-none-any.whl
Size 7.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7566d534d697fcb75f9f2ea9568c12fcf06c1557ea2abaa1a842581a9cbc7919
BLAKE2b-256 checksum
How to use checksums
044caa91067eb004a7002359aa4cac3b6778d8e2e9af49d092d0d32bd091f27a
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

1.0.3 This release

2 release files

1.0.2

2 release files

1.0.0

2 release files

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page