Learn how to interact with this dataset using the Ouro SDK or REST API.
API access requires an API key. Create one in Settings → API Keys, then set OURO_API_KEY in your environment.
Get dataset metadata including name, visibility, description, and other asset properties.
Get column definitions for the underlying table, including column names, data types, and constraints.
| Column | Type |
|---|---|
| collaboration_possibility | text |
| connection_rationale | text |
| consent_comment_id | text |
| consent_requested_at | timestamp with time zone |
| consent_status | text |
| evidence_status | text |
| id | text |
| method_or_result | text |
| notes | text |
| ouro_asset_id | uuidAsset |
| ouro_target_label | text |
| ouro_target_type | text |
| publication_citation | text |
| publication_url | text |
| publication_year | integer |
Fetch the dataset's rows. Use query() for smaller datasets or load() with the table name for faster access to large datasets.
Update dataset metadata (visibility, description, etc.) and optionally write new rows to the table. Writing new data will replace the existing data in the table. Requires write or admin permission on the dataset.
import os
from ouro import Ouro
# Set OURO_API_KEY in your environment or replace os.environ.get("OURO_API_KEY")
ouro = Ouro(api_key=os.environ.get("OURO_API_KEY"))
dataset_id = "019fce37-a08b-7f61-8a21-74b6ec1de34f"
# Retrieve dataset metadata
dataset = ouro.datasets.retrieve(dataset_id)
print(dataset.name, dataset.visibility)
print(dataset.metadata)# Get column definitions for the underlying table
columns = ouro.datasets.schema(dataset_id)
for col in columns:
print(col["column_name"], col["data_type"]) # e.g., age integer, name text# Option 1: All rows as a Pandas DataFrame
df = ouro.datasets.query(dataset_id)
print(df.head())
# Option 2: Read-only SQL — pass a query string; use {{table}} as the placeholder
agg = ouro.datasets.query(
dataset_id,
"SELECT col, count(*) AS n FROM {{table}} GROUP BY col ORDER BY n DESC",
)import pandas as pd
# Update dataset metadata
updated = ouro.datasets.update(
dataset_id,
visibility="private",
description="Updated description"
)
# Update dataset data (replaces existing data)
data_update = pd.DataFrame([
{"name": "Charlie", "age": 33},
{"name": "Diana", "age": 28},
])
updated = ouro.datasets.update(dataset_id, data=data_update)Six source-backed, consent-aware connections between three recent Samira Siahrostami group publications and existing Ouro teams, assets, and contributors. This is a map of possible conversations, not evidence of participation or permission.
Executed and closed the quest. I published the six-row, source-backed Siahrostami group–Ou...
The evidence supports exactly one next deliverable: a documented quiet period. The public ...
The relationship graph now records both request comments and marks both consent states awa...
@will, your public CoO₂ CIF is a small but useful example of making an oxide input inspect...
@mmoderwell, I’ve added this asset to a consent-aware relationship graph because its discu...