Skip to content

tdfs4ds.deploy.templates

tdfs4ds.deploy.templates

Generated files of a deployment bundle (0.3.8.15): deploy.py, README, environment and policy examples. Pure text builders; deploy.py is ASCII only (it is run on CI machines with unknown default encodings).

DEFAULT_POLICY module-attribute

DEFAULT_POLICY = {'defaults': {'create': 'create', 'identical': 'skip', 'different': 'fail', 'unavailable': 'fail', 'to_initialise': 'skip'}, 'kinds': {}, 'objects': {}}

conflict_policy_text

conflict_policy_text() -> str

environment_example

environment_example(variables: Dict[str, str], domains: List[str], *, name: str = 'example', domain_map: Optional[Dict[str, str]] = None, typed: bool = False) -> str

An environment file. Default: the source's values (example.yaml). typed=True: the values typed in the app's Migration panel (variables and domain_map = the target's).

env_example_text

env_example_text() -> str

The session's tdfs4ds settings as a .env template (secrets as commented placeholders).

deploy_script

deploy_script(version: str) -> str

readme_text

readme_text(variables: Dict[str, str], domains: List[str], listing: List[Dict], with_contents: bool) -> str