InsionInsion
Python

Python SDK

Install and start using the synchronous or asynchronous Insion Python client

The official Insion Python SDK lets Python applications moderate content, ingest records, manage users, and submit appeals without constructing HTTP requests. This guide walks you through installing the SDK, creating an authenticated client, and sending a record for immediate moderation.

Before you begin

You'll need:

Use immediate moderation when your application needs a decision in the current request. Use ingestion when moderation can happen asynchronously and your application receives the result through a webhook.

Install

pip install insion

Make your first request

from insion import InsionClient

client = InsionClient(token="<token>")
result = client.moderate_a_record(
    client_id="post-123",
    name="Welcome post",
    entity="post",
    content="Hello world",
)
print(result.status, result.category_ids)

Use AsyncInsionClient and await the same methods in asynchronous applications.

Next steps

  • Fine-tune client and request behavior in Configuration.
  • Explore every supported request and response in Operations.
  • Prepare production error handling with Errors.

Get Involved

How is this guide?

On this page

Latest Release

View the Python SDK on PyPIPython SDK versionPython SDK license