Skip to main content

host_format

Format host %x abbreviations.

def host_format(
s: string,
host: string | None = None,
name: string | None = None,
**extra: dict
) - > string

Format host %x abbreviations.

Parameters

NameTypeDescription
sstringThe template string containing % placeholders to be formatted
host`stringNone` = None
name`stringNone` = None
**extradictAdditional key-value pairs to be used as custom formatting tokens in the template string

Returns

TypeDescription
stringThe formatted string with host-related placeholders replaced by their corresponding values