The official CloudCruise Python SDK
Project description
cloudcruise-python
The official CloudCruise Python SDK for automated browser workflows, encrypted credential management, realtime run monitoring, and webhook verification.
Installation
pip install cloudcruise
Python 3.10 or newer is required. The package ships with type hints (py.typed).
Quick Start
from cloudcruise import CloudCruise, CloudCruiseParams, StartRunRequest
client = CloudCruise(
CloudCruiseParams(
api_key="<CLOUDCRUISE_API_KEY>",
encryption_key="<CLOUDCRUISE_ENCRYPTION_KEY>",
)
)
# Alternatively, set CLOUDCRUISE_API_KEY and CLOUDCRUISE_ENCRYPTION_KEY
# environment variables and instantiate with `client = CloudCruise()`.
run = client.runs.start(
StartRunRequest(
workflow_id="105b7ae1-ce62-4a5c-b782-b4b0aec5175a",
run_input_variables={"email": "test@example.com"},
)
)
# Listen to specific event types (recommended - clean and type-safe)
run.on("execution.start", lambda e: print(f"Workflow started: {e.payload['workflow_id']}"))
run.on("execution.step", lambda e: print(f"Step: {e.payload['current_step']}"))
run.on("execution.success", lambda e: print(f"Success! Output: {e.payload.get('data')}"))
run.on("end", lambda info: print(f"Run completed: {info['type']}"))
# Or use generic listener for all events (flattened structure)
# run.on("run.event", lambda event: print(f"{event.type}: {event.payload}"))
# Block until the run finishes and fetch final results
result = run.wait()
print(result.status, result.data)
Environment variables CLOUDCRUISE_API_KEY, CLOUDCRUISE_ENCRYPTION_KEY are also supported via lazy cloudcruise.client().
Clients
| Client | Description | Module Docs |
|---|---|---|
| Vault | AES-256-GCM credential storage and retrieval utilities | cloudcruise.vault |
| Workflows | Workflow definitions, metadata, and input validation | cloudcruise.workflows |
| Runs | Workflow execution with SSE-based realtime streaming | cloudcruise.runs |
| Webhook | Webhook payload verification and helpers | cloudcruise.webhook |
All clients are accessible via CloudCruise or the convenience cloudcruise.client() singleton.
Development
This project uses standard Python tooling with setuptools. See
CONTRIBUTING.md for comprehensive instructions.
Quick start:
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install -e ".[dev]" # installs package + dev dependencies
# Run the unit test suite
python -m unittest discover -s tests -p "test_*.py" -v
For live staging tests, export CLOUDCRUISE_API_KEY and
CLOUDCRUISE_ENCRYPTION_KEY, then run
python -m unittest discover -s tests -p "test_live_staging.py" -v.
Documentation & Resources
- API Documentation – Full platform reference
- CloudCruise Platform – Product overview
- Agents & Assistant Context – How this repository’s automation assistant operates
License
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cloudcruise-1.1.0.tar.gz.
File metadata
- Download URL: cloudcruise-1.1.0.tar.gz
- Upload date:
- Size: 38.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2cb5bb034d099255288b7e3b28fc1476ea27c6c2ff90923e1051bc2849cee152
|
|
| MD5 |
aa0a61e7c049b706dd9cf50574864f19
|
|
| BLAKE2b-256 |
cb30c40326ff14fe97e69c6836d47f956c55ffacdcce02cb3fd0df8c90a97277
|
Provenance
The following attestation bundles were made for cloudcruise-1.1.0.tar.gz:
Publisher:
publish.yml on CloudCruise/cloudcruise-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cloudcruise-1.1.0.tar.gz -
Subject digest:
2cb5bb034d099255288b7e3b28fc1476ea27c6c2ff90923e1051bc2849cee152 - Sigstore transparency entry: 1729867864
- Sigstore integration time:
-
Permalink:
CloudCruise/cloudcruise-python@b5d876cb8369b0887d025b4367e59ba6288f43e2 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/CloudCruise
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b5d876cb8369b0887d025b4367e59ba6288f43e2 -
Trigger Event:
push
-
Statement type:
File details
Details for the file cloudcruise-1.1.0-py3-none-any.whl.
File metadata
- Download URL: cloudcruise-1.1.0-py3-none-any.whl
- Upload date:
- Size: 34.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cb3847da128c4a50c58de524cf25332fb0d373b511a26d2f9b571051f81d039a
|
|
| MD5 |
4bec09914ab3a236d532e75e4d62ccc3
|
|
| BLAKE2b-256 |
ede548f86ed57a2cc6ebad7fa144e0b5659a3b177f4d42534bb2d4f4de1b9229
|
Provenance
The following attestation bundles were made for cloudcruise-1.1.0-py3-none-any.whl:
Publisher:
publish.yml on CloudCruise/cloudcruise-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cloudcruise-1.1.0-py3-none-any.whl -
Subject digest:
cb3847da128c4a50c58de524cf25332fb0d373b511a26d2f9b571051f81d039a - Sigstore transparency entry: 1729867968
- Sigstore integration time:
-
Permalink:
CloudCruise/cloudcruise-python@b5d876cb8369b0887d025b4367e59ba6288f43e2 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/CloudCruise
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b5d876cb8369b0887d025b4367e59ba6288f43e2 -
Trigger Event:
push
-
Statement type: