Skip to main content

Installation

Or install directly from the repository:

Quick Start

API Reference

GuardianClient

The main client class for interacting with Guardian API.

moderate_text()

Moderate a single text.
Example:

moderate_batch()

Moderate multiple texts in batch.
Example:

Error Handling

The SDK raises GuardianAPIError for API errors:

Advanced Usage

Custom Timeout

Processing Results

Complete Example

See Also