Skip to main content

The video search layer for AI agents — Python SDK

Project description

cerul

The video search layer for AI agents.

PyPI License Python

Docs · Website · GitHub


Search what was said, shown, or presented in any video — tech talks, podcasts, conference presentations, and earnings calls.

pip install cerul
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)

# Results print as JSON
print(result[0])

# 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

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.5.tar.gz (7.8 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.5-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cerul-0.0.5.tar.gz
  • Upload date:
  • Size: 7.8 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.5.tar.gz
Algorithm Hash digest
SHA256 d61f3b9cb06343d2cc40bf7a519f41d67d36616f22de6ac74f2ebbf7bcc36784
MD5 b162af6c18561fbb5b963d570eda3ed2
BLAKE2b-256 af53033dc7ada388d6789094265bd196fdf611bb3d2b116ac0cffcc6d8ff4edf

See more details on using hashes here.

Provenance

The following attestation bundles were made for cerul-0.0.5.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.5-py3-none-any.whl.

File metadata

  • Download URL: cerul-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 8.4 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 576a571756fb2244335bbfc7f93f75d72a8240d84cf9bfec51fe3b6b5ae79411
MD5 8a122ac93634cd7d47a1e68eb32e1041
BLAKE2b-256 6040c7c8f8747f63e6e7505ae0404dc452809aa4b97e74c06b736bfbe75fdc14

See more details on using hashes here.

Provenance

The following attestation bundles were made for cerul-0.0.5-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