Skip to main content

The video search layer for AI agents — Python SDK

Project description


Cerul

Cerul Python SDK

The video search layer for AI agents.

Teach your AI agents to see — search by meaning across visual scenes, speech, and on-screen content.

Docs · Website · Main Repo · Follow on X

PyPI License Python


Install

pip install cerul

Quick Start

from cerul import Cerul

client = Cerul()  # reads CERUL_API_KEY

for r in client.search(query="Sam Altman on AGI timeline"):
    print(r.title, r.url)

Get a free API key at cerul.ai/dashboard.

Examples

# Search with filters
result = client.search(
    query="Jensen Huang on AI infrastructure",
    max_results=5,
    ranking_mode="rerank",
    include_answer=True,
    filters={"speaker": "Jensen Huang", "published_after": "2024-01-01"},
)

# AI-generated answer
print(result.answer)

# Check credits
usage = client.usage()
print(f"{usage.credits_remaining} credits remaining")

Async

from cerul import AsyncCerul

async with AsyncCerul() as client:
    result = await client.search(query="attention mechanism explained")

Configuration

client = Cerul(
    api_key="cerul_sk_...",   # or CERUL_API_KEY env var
    timeout=30.0,             # default 30s
    retry=True,               # retry 429/5xx/network errors
)

Error Handling

from cerul import CerulError

try:
    client.search(query="test")
except CerulError as e:
    print(e.status_code, e.code, e.message)

Links

  • CLIcurl -fsSL https://cli.cerul.ai/install.sh | bash
  • TypeScript SDKnpm install cerul
  • Main repo — docs, skills, remote MCP

License

MIT

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

cerul-0.0.6.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

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

cerul-0.0.6-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file cerul-0.0.6.tar.gz.

File metadata

  • Download URL: cerul-0.0.6.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for cerul-0.0.6.tar.gz
Algorithm Hash digest
SHA256 b333c5a2d8f1347b5ef26b4c9b4fac05f0bae3f0500ca8a6d5ccc6597b2392a5
MD5 aa8ace0ba3bd33c490956933b1195690
BLAKE2b-256 92257ee9efaeaaeec6af319109881100658a3aa17f3077d528c51491828b92bc

See more details on using hashes here.

Provenance

The following attestation bundles were made for cerul-0.0.6.tar.gz:

Publisher: publish.yml on cerul-ai/cerul-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cerul-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: cerul-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 8.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for cerul-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 81162ad268f508d6e68986f6d37a6a999b92877266d9bfb9e3b7ecba659574d4
MD5 f603aba9ea2ff2577c68d8c0c0211313
BLAKE2b-256 74012fda2cdec3e445f9f2cc4033403b410a9ba08571b17514c894b9fa6537e5

See more details on using hashes here.

Provenance

The following attestation bundles were made for cerul-0.0.6-py3-none-any.whl:

Publisher: publish.yml on cerul-ai/cerul-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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