Skip to main content

Python SDK for Vettly content moderation API

Project description

vettly

Content moderation that just works. One API for text, images, and video.

Installation

pip install vettly

Quick Start

from vettly import Vettly

client = Vettly('sk_live_...')

result = client.check(
    content='User-generated text',
    policy='community-safe'
)

if result.action == 'block':
    # Content blocked
    pass

Get Your API Key

  1. Sign up at vettly.dev
  2. Go to Dashboard → API Keys
  3. Create and copy your key

Features

  • Text, images, video - One unified API for all content types
  • Custom policies - Define thresholds in YAML
  • Webhooks - Get notified when content is flagged
  • Dashboard - Monitor decisions and export logs
  • Deterministic - Same input, same output, every time

Response Format

{
    "action": "block",
    "categories": {
        "hate": 0.91,
        "harassment": 0.08,
        "violence": 0.12
    },
    "flags": ["hate"],
    "latency_ms": 147
}

Image Moderation

result = client.check_image(
    url='https://example.com/image.jpg',
    policy='strict'
)

Async Support

from vettly import AsyncVettly

async with AsyncVettly('sk_live_...') as client:
    result = await client.check(
        content='User content',
        policy='community-safe'
    )

FastAPI Example

from fastapi import FastAPI, HTTPException
from vettly import AsyncVettly

app = FastAPI()
client = AsyncVettly('sk_live_...')

@app.post("/comments")
async def create_comment(content: str):
    result = await client.check(content=content, policy='community-safe')

    if result.action == 'block':
        raise HTTPException(403, "Content blocked")

    return {"status": "ok"}

Pricing

Plan Price Text Images Videos
Developer Free 10,000/mo 250/mo 100/mo
Starter $29/mo Unlimited 5,000/mo 2,000/mo
Pro $79/mo Unlimited 20,000/mo 10,000/mo
Enterprise $499/mo Unlimited 200,000/mo 100,000/mo

Links

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

vettly-0.1.3.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

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

vettly-0.1.3-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file vettly-0.1.3.tar.gz.

File metadata

  • Download URL: vettly-0.1.3.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for vettly-0.1.3.tar.gz
Algorithm Hash digest
SHA256 479dc13e683063c1b97f3b177241a4a53e567a382a48fb4c3fd46f89c763165b
MD5 0f6b16e9fe966188e25dc23fc0e61a15
BLAKE2b-256 22b742f298303e9ed98622b965957dac7bb4d33dee32732987ba9d4c69f91a01

See more details on using hashes here.

File details

Details for the file vettly-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: vettly-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for vettly-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 92fc59363a032868d0dcb14c893db4e92ee198967fc8a9ca028d835fec0e80c8
MD5 dbcef1074b94aff8dafd4544fc778185
BLAKE2b-256 e5839d0a905b151409c8401459f37416cdbfba9d6454798ff85d47ee5222caee

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