Python SDK Overview
Contributions are welcome at https://github.com/CloudCruise/cloudcruise-python. Report bugs via GitHub issues or Discord. The CloudCruise Python SDK lets you launch browser automation workflows, stream run events, verify webhooks, and manage vault credentials directly from Python services.Installation
CLOUDCRUISE_API_KEY, CLOUDCRUISE_ENCRYPTION_KEY). Retrieve them from CloudCruise Settings.
1. Creating a Run
2. Listening to run events
Attach per-event handlers for an attribute-access experience. Each handler receives aFlattenedRunEvent with type, payload, timestamp, expires_at, and raw.
run.event once and switch on event.type:
Async iteration (streaming)
Prefer a loop? Iterate over the handle to process the underlying SSE messages. Each item is the original SSE envelope.Other available events
open: connection establishedping: heartbeat messagesreconnect: reconnect attempts with{"attemptDelayMs": ...}message: catch-all mirror ofrun.eventandpingerror: SSE errorsend: terminal status for the session
3. Wait for Completion
You can block until the workflow completes. For long-running workflows this may take a while, so use cautiously. The returned value is aRunResult dataclass.
Next Steps
- Explore the Run API for detailed workflow execution options
- Learn about Vault API for secure credential management
- Check out Workflow API to manage your workflows
- Set up Webhooks for event notifications

