Skip to main content

guardrails-ai-bert-toxic

Validates that the input string does not contain toxic language based on a BERT model.

Installation

pip install guardrails-ai-bert-toxic

This validator ships local models. After installing, run the post-install step to download them:

python -m guardrails_ai.bert_toxic.post_install

Usage

from guardrails import Guard
from guardrails_ai.bert_toxic import BertToxic

guard = Guard().use(BertToxic)

License

MIT — © Guardrails AI.

Metadata

Release files for guardrails-ai-bert-toxic 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 guardrails-ai-bert-toxic 0.1.0
File Size Uploaded Provenance
guardrails_ai_bert_toxic-0.1.0.tar.gz 5.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for guardrails-ai-bert-toxic 0.1.0
File Interpreter ABI Platform
guardrails_ai_bert_toxic-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 10.8 kB

Release files / guardrails_ai_bert_toxic-0.1.0.tar.gz

Download URL guardrails_ai_bert_toxic-0.1.0.tar.gz
Size 5.4 kB
Tags Source
SHA-256 checksum
How to use checksums
d9eed5c9ab8b0fdb4c46d98cce0879446c6d119f247764372af0c5252a89e8ed
BLAKE2b-256 checksum
How to use checksums
702185aaea8c5c5edfc12059abf47fe9735ab162587b7f7e04987adbb667fab1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.12

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

Download URL guardrails_ai_bert_toxic-0.1.0-py3-none-any.whl
Size 5.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6040aea8e2ac2f415422f01811482723a14e1357d0c4f0485c74030304558ee7
BLAKE2b-256 checksum
How to use checksums
bb819dde091e3493e5aed8e1dc5de8a4d1038b2f62a69922616a61dde14a5175
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.12

Security for guardrails-ai-bert-toxic 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

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