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 = "00e45516-e5c7-4026-a4c4-679f9eed53eb"
# Retrieve file metadata
file = ouro.files.retrieve(file_id)
print(file.name, file.visibility)
print(file.metadata)Materials Project GGA structure of CaCu5-type SmCo5, unmodified. Used to check the new 4f-in-valence Sm basis on Ouro DFT (Sm spin vs Co spin ordering).
SmCo5 FiM magnetic moments
.cifConverged Mulliken magnetic moments (FiM: Sm spin −6.37 μB against Co +1.65; net 1.90 μB/cell, 0.26 T). PBE, 150 Ry, mixing 0.1, smearing 0.1 eV. Ground state: 0.71 eV/f.u. below the FM state at the same settings.
SmCo5 FM magnetic moments
.cifConverged Mulliken magnetic moments (FM: Sm spin +4.84 μB parallel to Co; net 13.06 μB/cell). PBE, 150 Ry, mixing 0.1, smearing 0.1 eV. Metastable: 0.71 eV/f.u. above the FiM ground state.
SmCo5 FM magnetic moments (smearing 0.05 eV)
.cifConverged Mulliken magnetic moments (FM: Sm spin +4.84 μB parallel to Co; net 13.05 μB/cell). PBE, 150 Ry, mixing 0.2, smearing 0.05 eV. Metastable state; see the FiM run.