Skip to main content

Official Python SDK for the Caesar search API — web search with provenance, built for agents.

Project description

caesar-search (Python)

Official Python SDK for the Caesar search API — web search with provenance, built for agents.

Quickstart

# pip install caesar-search    (or: uv add caesar-search)
from caesar_search import Caesar

client = Caesar()  # reads CAESAR_API_KEY; anonymous tier works without a key
results = client.search("rust async runtime comparison", max_results=5)
doc = client.read(results.results[0].doc_id, query="which runtime is fastest")
client.feedback("result_helpful", search_id=results.search_id, doc_id=doc.doc.doc_id)

Clients

  • Caesar — synchronous; AsyncCaesar — same surface with async/await. Both support context managers.
  • Methods: search(), read() (doc_id or URL; start_char= continues truncated reads), feedback().
  • Responses are typed pydantic v2 models generated from the public OpenAPI spec; provenance fields (doc_id, search_id, capture_id, canonical/source URLs, crawl dates) are preserved verbatim.
  • client.with_raw_response.search(...) returns the raw httpx.Response.
  • Retries: 429/5xx with capped exponential backoff honoring Retry-After (max_retries= to tune, 0 to disable).
  • Config: api_key= / CAESAR_API_KEY; base_url= / CAESAR_BASE_URL.

Errors

CaesarErrorAPIConnectionError / APITimeoutError and APIStatusError (with .status_code, .code, .message, .request_id) → AuthenticationError (401/403), RateLimitError (429).

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

caesar_search-0.1.4.tar.gz (83.4 kB view details)

Uploaded Source

Built Distribution

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

caesar_search-0.1.4-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

Details for the file caesar_search-0.1.4.tar.gz.

File metadata

  • Download URL: caesar_search-0.1.4.tar.gz
  • Upload date:
  • Size: 83.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for caesar_search-0.1.4.tar.gz
Algorithm Hash digest
SHA256 29bffeb0cc3d6c628b87d084e946eaad3989e9e8514c3e73c6f4b0882ebff22d
MD5 d48a0bcfbaa424be225a1cd5cdf210f5
BLAKE2b-256 a92968223f75764612d06fca4b939b0dd7d44e640fc4daadf58f8e5b82951316

See more details on using hashes here.

Provenance

The following attestation bundles were made for caesar_search-0.1.4.tar.gz:

Publisher: release.yml on caesar-data/caesar-search-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 caesar_search-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: caesar_search-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 12.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for caesar_search-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 47e4904a899ee4ad62a63283157112e5d9e0468a3fb16da63714689a716fcc50
MD5 eb3693428fbf679da75c5c812e5c2805
BLAKE2b-256 8c5393ea3fca8a68920af6af1dca729569b330b448d61f114f8aea9edffbdd6f

See more details on using hashes here.

Provenance

The following attestation bundles were made for caesar_search-0.1.4-py3-none-any.whl:

Publisher: release.yml on caesar-data/caesar-search-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