Quickstart#
Get up and running with the Atomscale SDK in under 5 minutes.
Install#
pip install atomscale
Get Your API Key#
Log in to the Atomscale web app
Go to Profile > Account Management
Copy your API key
Set it as an environment variable:
export AS_API_KEY="your-api-key"
Or pass it directly in code (not recommended for production):
from atomscale import Client
client = Client(api_key="your-api-key")
Create a Client#
from atomscale import Client
client = Client()
The client handles authentication automatically using the AS_API_KEY
environment variable.
Upload Your First File#
client.upload(files=["my_rheed_video.mp4"])
Supported formats: .mp4, .imm, .png, .jpg, and XPS data files.
Find Your Data#
results = client.search(keywords=["my_sample"])
print(results[["Data ID", "Status", "Sample Name"]])
Access Analysis Results#
analysed = client.get(results["Data ID"].to_list())
# Get timeseries data (intensity, strain, etc.)
df = analysed[0].timeseries_data
print(df.columns)
Next Steps#
Upload Files - Upload RHEED videos, images, or XPS files
Stream RHEED Video - Stream live RHEED from your instrument
Stream Instrument Data - Stream instrument sensor data (temperature, pressure)
Search and Download - Find and download processed data