ExampleEntry#

MemberKindWhat it is
payloadpropertyEvery file the example needs, authored files first.
total_sizepropertyTotal payload in bytes, whatever is already cached.
to_dictmethodReturn the entry as JSON: its text, every file with its digest, and the station rows.
dataattributeInput data files, installed under <workspace>/data/<variable>/.
directoryattributeFolder name of the example under <workspace>/projects/.
entry_configattributeThe TOML file to run first, relative to the project folder.
filesattributeAuthored files: the TOML configurations, scripts and README.
idattributeShort id of the example, the one hmp example add takes ("04").
runtimeattributeHow long its runs take, as text.
stationsattributeRows the example adds to the station registries of the workspace.
summaryattributeWhat the example models and shows, in a few sentences.
titleattributeOne-line title.
class ExampleEntry(
id,
directory,
title,
summary,
runtime,
entry_config,
files,
data,
stations=(),
)[source]#

One cataloged example: what it is, and every file it needs.

to_dict()[source]#

Return the entry as JSON: its text, every file with its digest, and the station rows.

data: tuple[PayloadFile, ...]#

Input data files, installed under <workspace>/data/<variable>/.

directory: str#

Folder name of the example under <workspace>/projects/.

entry_config: str#

The TOML file to run first, relative to the project folder.

files: tuple[PayloadFile, ...]#

the TOML configurations, scripts and README.

Type:

Authored files

id: str#

Short id of the example, the one hmp example add takes ("04").

property payload: tuple[PayloadFile, ...][source]#

Every file the example needs, authored files first.

runtime: str#

How long its runs take, as text.

stations: tuple[PayloadStation, ...]#

Rows the example adds to the station registries of the workspace.

summary: str#

What the example models and shows, in a few sentences.

title: str#

One-line title.

property total_size: int[source]#

Total payload in bytes, whatever is already cached.