httk.core.plugins.installed¶
Read installed httk plugins.
Attributes¶
Classes¶
Describe a validated plugin manifest. |
|
Describe one declared plugin program. |
|
Describe one installed plugin and its installer metadata. |
Functions¶
|
Parse and validate one plugin manifest. |
Return the installed plugin directory. |
|
Return the plugin shim directory. |
|
Read all valid installed plugins. |
|
|
Return the root of an installed plugin. |
|
Return the absolute path of an installed plugin program. |
Module Contents¶
- class httk.core.plugins.installed.PluginManifest[source]¶
Describe a validated plugin manifest.
- Parameters:
name – Name the plugin.
description – Describe the plugin, when supplied.
templates – Name project-template directories.
workflows – Name workflow-package directories.
programs – Describe declared utility programs.
build – Describe the optional build.
root – Locate the parsed plugin directory.
- programs: tuple[PluginProgram, Ellipsis]¶
- build: httk.core.building.BuildSpec | None¶
- root: pathlib.Path¶
- class httk.core.plugins.installed.PluginProgram[source]¶
Describe one declared plugin program.
- Parameters:
name – Name the program and its shim.
file – Name the program member relative to the plugin root.
description – Describe the program, when supplied.
- httk.core.plugins.installed.parse_plugin_manifest(directory)[source]¶
Parse and validate one plugin manifest.
- Parameters:
directory (pathlib.Path) – Locate the plugin directory.
- Returns:
The validated plugin manifest.
- Raises:
ValueError – If the plugin directory or manifest is malformed.
- Return type:
- class httk.core.plugins.installed.InstalledPlugin[source]¶
Describe one installed plugin and its installer metadata.
- Parameters:
name – Name the installed plugin directory.
root – Locate the installed plugin directory.
manifest – Provide the parsed plugin.json object.
metadata – Provide the parsed plugin.json object.
- root: pathlib.Path[source]¶
- metadata: collections.abc.Mapping[str, object][source]¶
- httk.core.plugins.installed.plugins_home()[source]¶
Return the installed plugin directory.
- Returns:
The plugin data directory.
- Return type:
- httk.core.plugins.installed.shims_home()[source]¶
Return the plugin shim directory.
- Returns:
The shim data directory.
- Return type:
- httk.core.plugins.installed.installed_plugins()[source]¶
Read all valid installed plugins.
- Returns:
Valid installed plugins in directory-name order.
- Return type:
tuple[InstalledPlugin, Ellipsis]
- httk.core.plugins.installed.plugin_root(name)[source]¶
Return the root of an installed plugin.
- Parameters:
name (str) – Name the installed plugin directory.
- Returns:
The installed plugin directory.
- Raises:
ValueError – If the plugin is not installed.
- Return type:
- httk.core.plugins.installed.plugin_program(name, program)[source]¶
Return the absolute path of an installed plugin program.
- Parameters:
- Returns:
The program’s absolute path.
- Raises:
ValueError – If the plugin or program is unavailable.
- Return type: