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.
# Delete a file (requires admin permission)
ouro.files.delete(id=file_id)# 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"
)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 = "c7b5b27f-644f-46f2-adb7-6766a6301e3f"
# Retrieve file metadata
file = ouro.files.retrieve(file_id)
print(file.name, file.visibility)
print(file.metadata)Known-geometry control for the DFT relax route (ABACUS). MnBi NiAs-type cell (P6_3/mmc #194, 4 atoms). REFERENCE CORRECTION (2026-09-13): the a=4.5335 A in this input is NOT supported by the experimental record; canonical room-temperature MnBi is a=4.285-4.29 A, c=6.11-6.13 A (Yang et al., J. Phys.: Condens. Matter 14, 6509 (2002); five-experiment compilation in Zarkevich et al., APL Mater. 2, 036103 (2014)). This input's a is ~5.8% large; the 2026-09-12 control run from it still converged to the surface's equilibrium (relaxed a=4.3183, c=6.1589), but that run's initial-stress diagnostic is void. If you rerun this fixture, rebuild from a=4.29, c=6.12. Published plain PBE for MnBi: a=4.317, c=5.741 (the ~6% c-axis collapse is the known plain-PBE MnBi failure; the route's relaxed c sits ~0.6% above experiment). Route settings matched to the MnAlGe contract run: PBE, DZP, ecutwfc 65, kspacing 0.16, scf_thr 1e-6, mp smearing 0.05 eV, broyden 0.4, no U.