Ateve Python SDK
Official typed client for POST /v1/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.
Search contract limits
Use max_results (1–100, default 10); limit and offset have been removed.
ContentOptions.snippet is optional and defaults to True. To retrieve full
text, pass content=ContentOptions(text=TextOptions()), or configure
TextOptions(max_characters=8000, format=ContentFormat.MARKDOWN).
format accepts "text" (default) or "markdown". Omitting text does not
request full text. max_characters remains a strict positive signed 32-bit
integer; its server default is 5000 per result, applied after format conversion.
Use content=ContentOptions(highlights=True) to receive query-relevant excerpts
in SearchResult.highlights (list[str], or None when absent). Highlights
default to False and can coexist with snippets and full text. They focus on
evidence that directly supports answers, reducing unrelated information compared
with snippets. summary has been removed from ContentOptions; favicon
remains optional. Both synchronous and asynchronous clients accept content
and max_results, or a SearchRequest instance.
Both formats return content in SearchResult.text. It defaults to None when
absent or when extraction fails; model_fields_set distinguishes those cases.
Snippets may coexist with text; set ContentOptions(snippet=False) to omit
them. 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.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ateve-0.2.1.tar.gz | 12.7 kB | With provenance | Details for ateve-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ateve-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for ateve-0.2.1-py3-none-any.whl |
Total release size: 23.3 kB
Release files / ateve-0.2.1.tar.gz
| Download URL | ateve-0.2.1.tar.gz |
|---|---|
| Size | 12.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f02c4afd9a0f2539c06eb8bb619df3743ac1798dcaf857e13704f01dadff0ac3
|
|
BLAKE2b-256 checksum How to use checksums |
80a41c08f54b76766e1fd46733b78b8f9699711d65e2bbc5e5cda531160fa897
|
| 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 Oct 26, 2026.
Transparency logRelease files / ateve-0.2.1-py3-none-any.whl
| Download URL | ateve-0.2.1-py3-none-any.whl |
|---|---|
| Size | 10.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a3a823db5517e6703e432e4408d0e61ef2d9d0c31aab817e4595484ebf38bea4
|
|
BLAKE2b-256 checksum How to use checksums |
0ae22eca3fbc576fbd5a48da85a33319b427bd645bc1ed855ba9018f9becc1ec
|
| 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 Oct 26, 2026.
Transparency logSecurity for ateve 0.2.1
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.
Attestation for ateve-0.2.1.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 Oct 26, 2026.
Transparency logA 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.