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.

Package details

  • PyPI package: omnimod-sdk
  • Python import: omnimod_sdk
  • License: MIT
  • Copyright: The Kavach LLC
  • Visibility: public client package; OmniMod API usage still requires an approved account and 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.1.tar.gz (6.1 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.1-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: omnimod_sdk-0.1.1.tar.gz
  • Upload date:
  • Size: 6.1 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.1.tar.gz
Algorithm Hash digest
SHA256 ef9ef221db69605bb55af4dc100cc1a48fff44b554b218fa35a59d5079e3efc2
MD5 29d950558fd0c2c7fe56c2194c8b1870
BLAKE2b-256 daf8c20bb7c6c21ab65172d44a8dd00fa06ad9a1375702ddb9b78691bbb45a14

See more details on using hashes here.

File details

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

File metadata

  • Download URL: omnimod_sdk-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 6.1 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bfe3eb8584dbdc89175fe0db3a0a6f8fb808893eff68ffeb1929ba0108eee4e2
MD5 afbaa97fb496364b6685641c306b813b
BLAKE2b-256 80860f548716c1754e6e7f38088e140de323c2d95e4f18179363edf89a4a6551

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