Skip to main content

Python SDK for the OmniMod moderation API

Project description

OmniMod Python SDK

Small dependency-free Python client for the OmniMod API.

Install

python -m pip install omnimod-sdk

The package is published as omnimod-sdk and imported as omnimod_sdk. It requires Python 3.11 or newer and an approved OmniMod API key.

Usage

from omnimod_sdk import OmniModClient

client = OmniModClient(api_key="omad_live_...")
result = client.moderate_text("hello community", policy="community-default")

if result.is_blocked:
    print("blocked", result.severity)

The SDK starts with text moderation. OpenAPI, TypeScript SDK, image helpers, async helpers, and richer typed policy/event APIs are planned after the core API contract stabilizes.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

omnimod_sdk-0.1.0.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

omnimod_sdk-0.1.0-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file omnimod_sdk-0.1.0.tar.gz.

File metadata

  • Download URL: omnimod_sdk-0.1.0.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for omnimod_sdk-0.1.0.tar.gz
Algorithm Hash digest
SHA256 821385a1bfad767a8d880ac9eb10f5b9212bcc3c91fb2a3ea4177cc28d204fa8
MD5 1b0c3f2415f2d2c7521696f80a7a0b8b
BLAKE2b-256 27ece3ae8600bd60fe8bc344481607c9f4e5207dbcd55e3a4bec4ed1c92e468c

See more details on using hashes here.

File details

Details for the file omnimod_sdk-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: omnimod_sdk-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for omnimod_sdk-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1cece7d2c2054ac4fa589292221c99ea7153f589a2dc46bf69bd123436ba128d
MD5 e7b86d457cc85bdb6cbfda52af4697bb
BLAKE2b-256 20be7b3fe80d2df0dbab50e24c45d3b619b5e767f46ee05b69d5abf79e58b259

See more details on using hashes here.

Supported by

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