InstallReport#

MemberKindWhat it is
everything_was_cachedpropertyTrue when the blob cache answered every file of the payload.
to_dictmethodReturn what the install did as JSON: the paths as text and the files by list.
downloadedattributeFiles the cache did not hold and that were downloaded.
downloaded_bytesattributeSize of the downloaded files, in bytes.
entry_configattributeThe TOML file to run first, relative to project_dir.
example_idattributeId of the installed example, as hmp.example() lists it.
keptattributeFiles (and station rows) already there with another content, kept.
project_dirattributeProject folder of the example, <workspace>/projects/<directory>.
sourceattributeRoot the missing files were fetched from: the release tag on GitHub by default, or the value of HMP_EXAMPLES_SOURCE.
stations_writtenattributeStation rows added to or replaced in a workspace station registry.
unchangedattributeFiles already there with the expected content, left as they were.
workspaceattributeWorkspace root the example was installed into.
writtenattributeFiles copied into the workspace, as paths relative to its root.
class InstallReport(
example_id,
workspace,
project_dir,
source,
written=<factory>,
unchanged=<factory>,
kept=<factory>,
downloaded=<factory>,
downloaded_bytes=0,
entry_config='',
stations_written=<factory>,
)[source]#

What one hmp example add actually did.

to_dict()[source]#

Return what the install did as JSON: the paths as text and the files by list.

downloaded: list[str]#

Files the cache did not hold and that were downloaded.

downloaded_bytes: int#

Size of the downloaded files, in bytes.

entry_config: str#

The TOML file to run first, relative to project_dir.

property everything_was_cached: bool[source]#

True when the blob cache answered every file of the payload.

example_id: str#

Id of the installed example, as hmp.example() lists it.

kept: list[str]#

Files (and station rows) already there with another content, kept.

Somebody edited them. Install again with force=True to overwrite them.

project_dir: Path#

Project folder of the example, <workspace>/projects/<directory>.

source: str#

the release tag on GitHub by default, or the value of HMP_EXAMPLES_SOURCE.

Type:

Root the missing files were fetched from

stations_written: list[str]#

Station rows added to or replaced in a workspace station registry.

unchanged: list[str]#

Files already there with the expected content, left as they were.

workspace: Path#

Workspace root the example was installed into.

written: list[str]#

Files copied into the workspace, as paths relative to its root.