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
| Name | Type | Description |
|---|---|---|
| s | string | The template string containing % placeholders to be formatted |
| host | `string | None` = None |
| name | `string | None` = None |
| **extra | dict | Additional key-value pairs to be used as custom formatting tokens in the template string |
Returns
| Type | Description |
|---|---|
string | The formatted string with host-related placeholders replaced by their corresponding values |