Modules
base.py
- class pydeployhelp.base.CLIBase(silent: bool = False)[source]
Bases:
ABCParent class for all CLI tools, contains common methods related to user i/o
deploy.py
- class pydeployhelp.deploy.Deploy(tasks: list[str] | None = None, targets: list[str] | None = None, deploydir: str = 'deploy', *args: Any, **kwargs: Any)[source]
Bases:
CLIBase- enter_deploy_targets(compose: dict[str, Any]) list[str][source]
Receive deploy targets names from user input
- execute_pipeline(configs: Configs, environ: dict[str, Any], deploy_tasks: list[str]) None[source]
Execute commands from configs pipeline
- load_compose(path: str | Path, environ: dict[str, Any]) dict[str, Any][source]
Load docker-compose data
- load_environ(env_file: str | Path) dict[str, Any][source]
Load environment variables from .env files (if exists)
- pydeployhelp.deploy.main(task: ~typing.Annotated[list[str], <typer.models.OptionInfo object at 0x7b4f81a7ffa0>] = (), target: ~typing.Annotated[list[str], <typer.models.OptionInfo object at 0x7b4f81aae860>] = (), deploydir: ~typing.Annotated[str, <typer.models.OptionInfo object at 0x7b4f81aae950>] = 'deploy', silent: ~typing.Annotated[bool, <typer.models.OptionInfo object at 0x7b4f81aaea40>] = False, version: ~typing.Annotated[bool, <typer.models.OptionInfo object at 0x7b4f81aaeb00>] = False) None[source]
Main entrypoint, which will be called when executing pydeployhelp in console
quickstart.py
- class pydeployhelp.quickstart.Quickstart(*args, **kwargs)[source]
Bases:
CLIBase- create_config_file(deploy_dir: Path, deploy_tasks: list[str]) None[source]
Create file with deploy configs and tasks pipeline
- class pydeployhelp.quickstart.QuickstartDefaults(deploy_dir: str, deploy_tasks: set[str], dockerfile: str)[source]
Bases:
object- deploy_dir: str
- deploy_tasks: set[str]
- dockerfile: str