This repository containts tutorials for Luminary Cloud's Python SDK.
Luminary is a massively scalable simulation platform designed for high-throughput, cloud-native simulation. It’s the fastest and easiest way to generate vast amounts of simulation data for physics AI.
This SDK lets you programmatically orchestrate simulations on Luminary, making it easy to run large-scale workloads or seamlessly integrate Luminary into your tools and workflows. Whether you're launching a single run or sweeping across thousands of design points, you have full control over setup, execution, and results analysis.
Ready to dive in? Start with our Piper tutorial here.
- Authenticate securely via API Key or OAuth
- Create and manage simulation projects
- Upload geometry or mesh files
- Generate meshes from CAD automatically
- Configure simulation settings
- Launch and monitor simulation jobs
- Download results (residuals, forces, field data)
- Download images
- Integrate with CAD tools, Blender, or Python-based analysis pipelines
pip install luminarycloud
Requires Python 3.8 or higher.
- Log in to Luminary Cloud
- Navigate to My Account → Profile → API Keys
- Create a key and copy it securely
Then initialize the SDK:
import luminarycloud as lc
client = lc.Client(api_key="your-api-key")
lc.set_default_client(client)
Alternatively, set the environment variable:
export LC_API_KEY=your-api-key
If no API key is provided, the SDK will open a browser for login and use your session.
- Blender or CAD: Automate geometry import workflows
- ML: Train physics AI surrogate models from simulation results
- Batch studies: Sweep across parameters or design variations
- Dashboards: Visualize convergence or performance metrics
- Simulations are deduplicated — use unique inputs or names to rerun
- Use
.wait()
on mesh and simulation objects so the script will wait until the process completes to proceed - Never hardcode API keys in shared code – use environment variables
- Full API Reference: https://app.luminarycloud.com/docs/api/
- Tutorials: https://docs.luminarycloud.com/en/collections/9479898-tutorials
- Simulation case studies & examples: Available in your Luminary UI
- AI Assistance: you can ask our AI Assistant to generate code directly in your Luminary UI!
Need help? Contact support via our chat interface at Luminary Cloud.
Luminary Cloud is a massively scalable simulation platform - the fastest and easiest way to generate vast amounts of simulation data for physics AI.