qwikstart package

Submodules

qwikstart.base_context module

class qwikstart.base_context.BaseContext(execution_context:qwikstart.base_context.ExecutionContext)

Bases: object

classmethod from_dict(field_dict: Mapping[str, Any]) → TContext

Return instance of context, ignoring unknown keys in field_dict.

Adapted from https://stackoverflow.com/a/55096964/260303.

classmethod help(field_name: str) → Optional[str]
class qwikstart.base_context.ExecutionContext(source_dir:pathlib.Path, target_dir:pathlib.Path)

Bases: object

get_template_loader() → jinja2.loaders.BaseLoader
source_dir = None

Source directory defining qwikstart task. Templates and other data files are relative to this location.

target_dir = None

Target directory for qwikstart modifications. In practice, this will be set to the working directory by the CLI.

qwikstart.config module

class qwikstart.config.Config(qwikstart_cache:str, git_abbreviations:Dict[str, str])

Bases: object

qwikstart_cache_path
qwikstart.config.get_user_config() → qwikstart.config.Config
qwikstart.config.load_custom_config_file() → Dict[str, Any]

qwikstart.exceptions module

qwikstart.exceptions

All exceptions used in the qwikstart code base are defined here.

exception qwikstart.exceptions.ConfigurationError

Bases: qwikstart.exceptions.UserFacingError

User-facing exception raised during qwikstart configuration.

exception qwikstart.exceptions.OperationDefinitionError

Bases: qwikstart.exceptions.QwikstartException

Exception raised when an operation is improperly defined.

exception qwikstart.exceptions.OperationError

Bases: qwikstart.exceptions.UserFacingError

User-facing exception raised during execution of operation.

exception qwikstart.exceptions.QwikstartException

Bases: Exception

Base exception class. All qwikstart-specific exceptions should subclass this.

exception qwikstart.exceptions.RepoLoaderError

Bases: qwikstart.exceptions.QwikstartException

Exception raised when loading task specification fails.

exception qwikstart.exceptions.TaskParserError

Bases: qwikstart.exceptions.UserFacingError

User-facing exception raised when parsing task specification fails.

exception qwikstart.exceptions.UserFacingError

Bases: qwikstart.exceptions.QwikstartException

Base exception for errors that are meant to be displayed to users.

qwikstart.tasks module

class qwikstart.tasks.Task(operations: Sequence[qwikstart.operations.base.BaseOperation], context: Dict[str, Any])

Bases: object

A series of operations to complete an qwikstart task.

execute() → Dict[str, Any]

Module contents