fediverse_pasture.runner.entry
Entry
dataclass
Represents an entry to generate support tables from.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
entry |
Dict[str, Dict]
|
Dictionary indexed by application with values the result |
required |
Source code in fediverse_pasture/runner/entry.py
applications: Set[str]
property
Returns the set of application names
apply_to(application, function)
Applies the function to the entry for the given application.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
application |
str
|
The application name |
required |
function |
Callable[[Dict], List[str]]
|
extractor for the desired data |
required |
Source code in fediverse_pasture/runner/entry.py
as_tabs(apps)
Renders the data for each application as tabbed markdown.
If no data is present “no result” is shown.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
apps |
List[str]
|
List of applications to display |
required |