1mo

Python SDK requires an API key. Create one in Settings → API Keys, then set OURO_API_KEY.

python
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 = "c5365656-2be1-4151-9667-4887c1eaa450"
 
# Retrieve file metadata and signed URL
f = ouro.files.retrieve(file_id)
print(f.name, f.visibility)
 
data = f.read_data()  # fetches signed URL
print(data.url)