Learn how to interact with this file 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 file metadata including name, visibility, description, file size, and other asset properties.
Get a URL to download or embed the file. For private assets, the URL is temporary and will expire after 1 hour.
Update file metadata (name, description, visibility, etc.) and optionally replace the file data with a new file. Requires write or admin permission.
Permanently delete a file from the platform. Requires admin permission. This action cannot be undone.
# Get signed URL to download the file
file_data = file.read_data()
print(file_data.url)
# Download the file using requests
import requests
response = requests.get(file_data.url)
with open('downloaded_file', 'wb') as output_file:
output_file.write(response.content)# Update file metadata
updated = ouro.files.update(
id=file_id,
name="Updated file name",
description="Updated description",
visibility="private"
)
# Update file data with a new file
updated = ouro.files.update(
id=file_id,
file_path="./new_file.txt"
)# Delete a file (requires admin permission)
ouro.files.delete(id=file_id)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"))
file_id = "0db9981c-a143-4523-9fda-88b0de667edb"
# Retrieve file metadata
file = ouro.files.retrieve(file_id)
print(file.name, file.visibility)
print(file.metadata)Hand-built C14 Laves (MgZn2-type) crystallographic input for lambda-WFe2, the measured phase of REF-03/REF-04 in the Fe-W magnetization reference panel (dataset 01a07d46). Ideal Wyckoff coordinates (W 4f z=1/16, Fe 2a, Fe 6h x=5/6) with experimental lattice parameters a=4.7240 A, c=7.7027 A. Validated: parses, Fe2W, 12 atoms, P6_3/mmc #194 at symprec 0.01 and 0.1, density 13.186 g/cm3 (matches Z=4 expectation and the 13.1 g/cm3 implied by Koten et al.), min pair distance 2.36 A, fully ordered. GGen (route 454b4729) relaxes WFe2 to a CdI2-type P-3m1 polytype (actions 01a07d78-5c45, 01a07d79-9135) and could not produce this phase.