Skip to main content

A Python client for profanity.dev's API

PyPi License

Open Issues Closed Issues Latest Release

Discord Twitter

Interact with profanity.dev's API

Installation

  • From PyPi: python -m pip install profanity-api

Usage

This client allows you to send messages to profanity.dev's API for analysis. Results include a boolean value for whether the message contains profanity, and a confidence score for the prediction.

Import the profanity_api package as initialize the API Example:

import profanity_api

results = profanity_api.is_profane(message="This is the message to test")

print(results.is_profane)
print(results.confidence)

Metadata

Release files for profanity-api 0.1.0

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

Source distribution (sdist)

Source distribution for profanity-api 0.1.0
File Size Uploaded
profanity_api-0.1.0.tar.gz 15.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for profanity-api 0.1.0
File Interpreter ABI Platform
profanity_api-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 31.1 kB

Release files / profanity_api-0.1.0.tar.gz

Download URL profanity_api-0.1.0.tar.gz
Size 15.9 kB
Tags Source
SHA-256 checksum
How to use checksums
fa96ea0be33304e4c28494a4ba8edc988932bb5e22fe134e5e32f80f7a2547e2
BLAKE2b-256 checksum
How to use checksums
a00e53e342e171d1684a6c0b8e139c1d382ee5975f369b5f177f1f9eb4fea631
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.3

Release files / profanity_api-0.1.0-py3-none-any.whl

Download URL profanity_api-0.1.0-py3-none-any.whl
Size 15.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
142aeb93f5f9adfa7cce7e4ddbf4130345ff4ef4c9604c335e970e698455b398
BLAKE2b-256 checksum
How to use checksums
8f2d29fd1b84a88e6c415533c14e3aada58379c6662c6cef28ab2b4c4ba9bb78
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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