The video search layer for AI agents — Python SDK
Project description
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.
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
- CLI —
curl -fsSL https://cli.cerul.ai/install.sh | bash - TypeScript SDK —
npm install cerul - Main repo — docs, skills, remote MCP
License
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b333c5a2d8f1347b5ef26b4c9b4fac05f0bae3f0500ca8a6d5ccc6597b2392a5
|
|
| MD5 |
aa8ace0ba3bd33c490956933b1195690
|
|
| BLAKE2b-256 |
92257ee9efaeaaeec6af319109881100658a3aa17f3077d528c51491828b92bc
|
Provenance
The following attestation bundles were made for cerul-0.0.6.tar.gz:
Publisher:
publish.yml on cerul-ai/cerul-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cerul-0.0.6.tar.gz -
Subject digest:
b333c5a2d8f1347b5ef26b4c9b4fac05f0bae3f0500ca8a6d5ccc6597b2392a5 - Sigstore transparency entry: 1244808009
- Sigstore integration time:
-
Permalink:
cerul-ai/cerul-python@379d678804d63b34d085b04e8658cb0f11760c7f -
Branch / Tag:
refs/tags/v0.0.6 - Owner: https://github.com/cerul-ai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@379d678804d63b34d085b04e8658cb0f11760c7f -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
81162ad268f508d6e68986f6d37a6a999b92877266d9bfb9e3b7ecba659574d4
|
|
| MD5 |
f603aba9ea2ff2577c68d8c0c0211313
|
|
| BLAKE2b-256 |
74012fda2cdec3e445f9f2cc4033403b410a9ba08571b17514c894b9fa6537e5
|
Provenance
The following attestation bundles were made for cerul-0.0.6-py3-none-any.whl:
Publisher:
publish.yml on cerul-ai/cerul-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cerul-0.0.6-py3-none-any.whl -
Subject digest:
81162ad268f508d6e68986f6d37a6a999b92877266d9bfb9e3b7ecba659574d4 - Sigstore transparency entry: 1244808045
- Sigstore integration time:
-
Permalink:
cerul-ai/cerul-python@379d678804d63b34d085b04e8658cb0f11760c7f -
Branch / Tag:
refs/tags/v0.0.6 - Owner: https://github.com/cerul-ai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@379d678804d63b34d085b04e8658cb0f11760c7f -
Trigger Event:
push
-
Statement type: