Skip to main content

A complete Python client for the profanity.dev API

Project description

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)

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page