Skip to main content

arex-python-sdk

Python client for the AREX public API, synchronous and asynchronous. Python >= 3.10; the only dependency is httpx.

pip install arex-python-sdk
from arex import Arex

with Arex() as arex:  # reads AREX_API_KEY
    search = arex.search("how are AI agents evaluated", limit=5)
    for item in search.results:
        page = arex.browse(item.url, max_characters=4000)
    run = arex.research.run("Compare agent evaluation benchmarks", mode="fast")
    assert run.result is not None  # always set once run() returns
    print(run.result.answer, search.credits.remaining)

AsyncArex mirrors every call as a coroutine under async with.

The SDK follows the checked-in v1 OpenAPI contract. Charged calls reuse an idempotency key across automatic retries. Supply idempotency_key when you need to retry the same operation across calls or process restarts. Keep API keys server-side.

Search, browse and research creation consume credits; consult your AREX account for current pricing. Usage checks, polling and other research lifecycle calls are free.

  • API reference: options, models, errors, exports.
  • Behavior: credits, deadlines, retries, idempotency, polling, and recovery.
  • Examples: runnable scripts.

Apache License 2.0.

Metadata

Release files for arex-python-sdk 0.2.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 arex-python-sdk 0.2.0
File Size Uploaded
arex_python_sdk-0.2.0.tar.gz 20.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for arex-python-sdk 0.2.0
File Interpreter ABI Platform
arex_python_sdk-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 46.6 kB

Release files / arex_python_sdk-0.2.0.tar.gz

Download URL arex_python_sdk-0.2.0.tar.gz
Size 20.5 kB
Tags Source
SHA-256 checksum
How to use checksums
49ff328e6bfb51403b824270745347cffcb39b8a20ad07c8ed6d97a93c10d309
BLAKE2b-256 checksum
How to use checksums
c340bb4e8acf89a3db3a020266088547840873f2a5ed3937295de32f36b9b714
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Release files / arex_python_sdk-0.2.0-py3-none-any.whl

Download URL arex_python_sdk-0.2.0-py3-none-any.whl
Size 26.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3270cc0c7d57f0eb99828b2c42f1a6e38e303599cb03bbffd22d569fbf25b5a2
BLAKE2b-256 checksum
How to use checksums
920d4b53ed83db112f9f887daed2bed268983f8646ce5e81cb9ae4fccb076980
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Release history Release notifications | RSS feed

0.3.0

2 release files

0.2.1

2 release files

This release

0.2.0 This release

2 release files

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