Skip to main content

riveter-sdk

Official Python SDK for the Riveter API — enrich data, build datasets, scrape pages, and run web searches.

Requires Python 3.9+. The import name is riveter.

Install

pip install riveter-sdk

Quickstart

from riveter import Riveter

# Reads RIVETER_API_KEY from the environment when api_key is not passed.
# Get a key at https://app.riveterhq.com/settings/api
riveter = Riveter(api_key="YOUR_API_KEY")

run = riveter.enrich(
    prompt="Research each company",
    attributes=["CEO", "Employee Count"],
    input={"Company": ["Apple", "Google"]},
)

result = riveter.runs.wait_for_result(run.id)
print(result.output)

The run lifecycle

Every async kickoff (enrich, datasets.build, extractions.run, ...) returns a run.

riveter.runs.get(run.id)                          # status + progress
riveter.runs.result(run.id, wait=50)              # output (long-polls up to 50s)
riveter.runs.wait_for_result(run.id, timeout=600) # poll until finished
riveter.runs.stop(run.id)                         # stop early

List runs with automatic pagination:

for run in riveter.runs.list(status="success").auto_paging_iter():
    print(run.id)

Surface

  • riveter.enrich(...), riveter.quick_search(...), riveter.scrape(...), riveter.account()
  • riveter.runsget, result, stop, list, summary, wait_for_result
  • riveter.enrichmentslist, create, get, update, build_dataset
  • riveter.datasetsbuild, extend
  • riveter.configured_datasetsbuild
  • riveter.extractionscreate, get, run
  • riveter.monitorscreate, list, get, update, runs

Responses are lightweight dataclasses; fields the SDK does not know yet stay reachable via .raw.

Errors and retries

API failures raise riveter.APIError with status, type (not_found, insufficient_credits, ...), message, and optional details. Network failures raise APIConnectionError / APITimeoutError. 429s are retried automatically using the X-RateLimit-Reset header; 5xx and network failures are retried for GETs. Configure with max_retries and timeout.

Options

Riveter(
    api_key="...",                            # default: env RIVETER_API_KEY
    base_url="https://api.riveterhq.com/v1",  # default: env RIVETER_BASE_URL, then this
    timeout=60.0,                             # keep above 50 for `wait` long-polls
    max_retries=2,
)

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

riveter_sdk-0.1.0.tar.gz (10.7 kB view details)

Uploaded Source

Built Distribution

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

riveter_sdk-0.1.0-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

File details

Details for the file riveter_sdk-0.1.0.tar.gz.

File metadata

  • Download URL: riveter_sdk-0.1.0.tar.gz
  • Upload date:
  • Size: 10.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.5

File hashes

Hashes for riveter_sdk-0.1.0.tar.gz
Algorithm Hash digest
SHA256 03851cb4a996938a0592b0f4571fcedffb1b802415040df209d95a4ae9391b0a
MD5 f115a917c1bd38b78e464bacf6e01559
BLAKE2b-256 ad0b951847ef5abe263ed22c7cfba07b9b3abed96a4a038897fa95e916619cbb

See more details on using hashes here.

File details

Details for the file riveter_sdk-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: riveter_sdk-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 12.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.5

File hashes

Hashes for riveter_sdk-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 80abebf08e0e8cd6acda46d5185c346dc7c0c3a5c9eaf60bdabd0d5ee6378db0
MD5 2c98bfee1d0d8bf4d16bbbfa52b37035
BLAKE2b-256 9089359ad0b1650d252955b67ecae5fb26d4a460fa046e76fa2a0e83223606ec

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page