a python wrapper for google's perspective api
Project description
💖 perspective
a strongly typed wrapper for google's perspective api
🪴 example
from perspective import Perspective, Attribute
from asyncio import get_event_loop
p = Perspective(key="...")
async def main():
s = await p.score(
"your message here", attributes=(Attribute.flirtation, Attribute.sexually_explicit)
)
print(s.flirtation)
print(s.sexually_explicit)
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
perspectiveapi-0.1.0.tar.gz
(2.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file perspectiveapi-0.1.0.tar.gz.
File metadata
- Download URL: perspectiveapi-0.1.0.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.1 CPython/3.8.16 Linux/5.15.0-47-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7fa8618cfd562b1e1ccf59eab46d3c400aa2c9ab44bfabdb2e4692b061e435f0
|
|
| MD5 |
c3bab7b0c491779adec3ab6d81c387df
|
|
| BLAKE2b-256 |
d2fe64b4520687e0c69fca885abfd3f27b513bf6ea6b13991647b1d775e0f797
|
File details
Details for the file perspectiveapi-0.1.0-py3-none-any.whl.
File metadata
- Download URL: perspectiveapi-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.1 CPython/3.8.16 Linux/5.15.0-47-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
27e2b1f0fee2f9d976cba50f6f058ab2f61cb75fff9374d71c8c3f2ae132ae9f
|
|
| MD5 |
29f5a496bf1fa968c39b33fcc4cfcbb0
|
|
| BLAKE2b-256 |
ff4742c8d832517b522ff4228a5396758e7d84b9fe149aa3a5976971f1552f0a
|