Device Scripting Guide
Use the Revyl Python SDK to control cloud devices programmatically. Start sessions, interact with apps, capture screenshots, and collect reports — all from a Python script.Prerequisites
Basic script
Context manager (recommended)
The context manager stops the session and prints the report URL automatically:Install an app from a URL
AI-powered live steps
Useinstruction() for natural-language actions, validation() for assertions, and extract() to pull data from the screen:
Target a specific device and OS
DeviceClient.targets() to list all available combinations:
Get the session report
Embed the live stream
Get the WebRTC WHEP URL for embedding in your own dashboard:Multi-device scripting
Run actions on iOS and Android in parallel:Silent mode for CI
Disable the animated spinner for headless environments:Error handling
What’s Next
- Python SDK Reference — complete method-level API docs
- Live Streaming — embed device streams in your own tools
- Advanced Tests — scripts, modules, and control flow