Press Deployments

Import the Press-Deployment module and Instantiate a Press-Deployment Client

[ ]:
from collections.abc import Iterator
from typing import Any

from peak.press import deployments

client: deployments.Deployment = deployments.get_client()

List all App deployment(s) and Block deployment(s) and iterate over them

[ ]:
deployment_iterator: Iterator[dict[str, Any]] = client.list_deployments()
deployment_iterated: dict[str, Any] = next(deployment_iterator)