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)
Datasets
A dataset is a kept table: input rows you add, output columns an enrichment fills.
dataset = riveter.datasets.create(
name="Wineries",
input_columns=["Winery URL"],
rows=[{"Winery URL": "ridgewine.com"}, {"Winery URL": "bonnydoonvineyard.com"}],
)
riveter.datasets.update(dataset.id, output={"Owner": {"prompt": "The winery's current owner"}})
fill = riveter.enrich(dataset_id=dataset.id)
riveter.runs.wait_for_result(fill.id)
for row in riveter.datasets.list_rows(dataset.id).auto_paging_iter():
print(row.input["Winery URL"], row.cells["Owner"].value)
csv = riveter.datasets.export(dataset.id)
datasets.create(prompt=..., count=...) generates the rows instead (paid; pass
estimate_cost=True first). datasets.import_rows(id, csv) appends a CSV.
Surface
riveter.enrich(...),riveter.quick_search(...),riveter.search_agent(...),riveter.scrape(...),riveter.account(),riveter.submit_feedback(...)riveter.runs—get,result,stop,list,summary,wait_for_resultriveter.enrichments—list,create,get,update,deleteriveter.datasets—list,create,get,update,delete,list_rows,add_rows,delete_rows,update_row,import_rows,build_rows,promote_column,exportriveter.tools—listriveter.configured_datasets—buildriveter.extractions—create,get,runriveter.monitors—create,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, feature_not_enabled, ...; the known values are
riveter.API_ERROR_TYPES), 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,
)
Metadata
Release files for riveter-sdk 1.4.0
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 |
|---|---|---|---|---|
| riveter_sdk-1.4.0.tar.gz | 17.2 kB | With provenance | Details for riveter_sdk-1.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| riveter_sdk-1.4.0-py3-none-any.whl | Python 3 | none | any | Details for riveter_sdk-1.4.0-py3-none-any.whl |
Total release size: 36.4 kB
Release files / riveter_sdk-1.4.0.tar.gz
| Download URL | riveter_sdk-1.4.0.tar.gz |
|---|---|
| Size | 17.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6199b76e1913a3bb86a70f7e0425d0ea628461ded27e329a79c1c68f52b77374
|
|
BLAKE2b-256 checksum How to use checksums |
1ae72336b17f0406bb2df2eb5c8e9fedc2c129b6c17bf5c9333b1aff8641e541
|
| 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 18, 2026.
Transparency logRelease files / riveter_sdk-1.4.0-py3-none-any.whl
| Download URL | riveter_sdk-1.4.0-py3-none-any.whl |
|---|---|
| Size | 19.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
94cb48779326347d5d1f4baed366bc814a26050435a653a1de6edf69732fbba1
|
|
BLAKE2b-256 checksum How to use checksums |
2f1fe0ab32c608b4ffa884a7449920ae6637aa39cf01c163d7c73511245136ec
|
| 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 18, 2026.
Transparency logSecurity for riveter-sdk 1.4.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.
Attestation for riveter_sdk-1.4.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 18, 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.