Skip to main content

Ateve Python SDK

Official typed client for Ateve web, image and video search. Requires Python 3.11+.

Install

pip install ateve

Synchronous

from ateve import Ateve, ContentFormat, ContentOptions, TextOptions

with Ateve() as client:  # reads ATEVE_API_KEY
    response = client.search(
        query="quantum computing",
        date_range="week",
        max_results=10,
        content=ContentOptions(text=TextOptions(format=ContentFormat.MARKDOWN, max_characters=8000)),
    )
    print(response.results[0].title, response.results[0].text)

Asynchronous

from ateve import AsyncAteve

async with AsyncAteve() as client:
    response = await client.search("quantum computing", max_results=10)

Ateve owns and closes its default httpx.Client; AsyncAteve does the same for its default httpx.AsyncClient. An injected http_client is borrowed and never closed by the SDK. Reuse one Ateve client for its connection pool instead of constructing one per request.

Each search call sends exactly one HTTP request. The SDK never retries, backs off, or switches endpoints. This is intentional: a timeout/reset can happen after the billable search already ran. ApiConnectionError exposes request_may_have_been_sent; only DNS/connect/connect-timeout/pool-timeout failures are classified as definitely not sent.

The built-in path defaults to a 60-second request timeout, 5-second connect timeout, a 32 MiB response cap, and no redirects. Use max_concurrent_requests for an optional fail-fast bulkhead.

Typed errors include AuthenticationError, PaymentRequiredError, RateLimitError, InvalidRequestError, ServerError, ApiConnectionError, ApiResponseError, and ConcurrencyLimitError. RateLimitError preserves retry_after_seconds and limit_scope; retry decisions remain caller-owned.

Native SDK feature Status
Images Search Released
Videos Search Released

Web Search limits

Use max_results to set the maximum number of results (1–100, default 10). limit and offset have been removed. Both synchronous and asynchronous clients accept content and max_results, or a SearchRequest instance.

Snippets are always returned and cannot be disabled. To request full text, pass content=ContentOptions(text=TextOptions()). To customize the output, use TextOptions(max_characters=8000, format=ContentFormat.MARKDOWN). format accepts ContentFormat.TEXT (default) or ContentFormat.MARKDOWN. Full text is requested only when text is supplied. max_characters must be a strict positive signed 32-bit integer. The server default is 5,000 characters per result, applied after format conversion. Both formats return content in SearchResult.text, which is None when absent or when extraction fails. model_fields_set distinguishes those cases. Full text is returned alongside snippets.

Highlights are optional and disabled by default. Set content=ContentOptions(highlights=True) to return concise, query-relevant excerpts in addition to snippets. SearchResult.highlights is a list[str], or None when the field is absent. Highlights can coexist with snippets and full text.

For token-efficient workflows, your agent can prioritize highlights when building model context and supplement them with snippets when additional context is needed. When the API returns both fields, token savings depend on which content your agent passes to the model.

summary and the snippet toggle have been removed from ContentOptions. favicon remains optional under content. Obsolete answer, usage, news/video, query tuning, and raw content/summary response fields and models have been removed. Unknown response fields continue to be retained by Pydantic for forward compatibility.

Metadata

Release files for ateve 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ateve 0.3.0
File Size Uploaded Provenance Actions
ateve-0.3.0.tar.gz 14.0 kB With provenance Details for ateve-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ateve 0.3.0
File Interpreter ABI Platform Actions
ateve-0.3.0-py3-none-any.whl Python 3 none any Details for ateve-0.3.0-py3-none-any.whl

Total release size: 25.3 kB

Release files / ateve-0.3.0.tar.gz

Download URL ateve-0.3.0.tar.gz
Size 14.0 kB
Tags Source
SHA-256 checksum
How to use checksums
ed52abd7ba3936097f4fe7460295343b6e286273d27ac75a7c05300891418d10
BLAKE2b-256 checksum
How to use checksums
78ed28e11919034644f87ceb61151c9637c26144d186658e37b7c843a7f4499b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Release files / ateve-0.3.0-py3-none-any.whl

Download URL ateve-0.3.0-py3-none-any.whl
Size 11.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2732416a4b2036e34d21d867ef9594acc9da2cacffcd761c04753876e8484bd2
BLAKE2b-256 checksum
How to use checksums
732bc27beaacf9569d91df77558cd96b0579b7b4746362d62243c0a32bddaf05
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Security for ateve 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for ateve-0.3.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page