Skip to content

luminarycloud/tutorials

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Luminary Cloud Python SDK

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.


Features

  • 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

Installation

pip install luminarycloud

Requires Python 3.8 or higher.


Authentication

Method 1: API Key (recommended for automation)

  1. Log in to Luminary Cloud
  2. Navigate to My Account → Profile → API Keys
  3. 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

Method 2: OAuth Login (interactive use)

If no API key is provided, the SDK will open a browser for login and use your session.


Integration Ideas

  • 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

Tips

  • 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

Documentation


🛠️ Support

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.


About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •