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)