hermes.commands.marketplace
Basic CLI to list plugins from the Hermes marketplace.
Attributes
Classes
Basic model for Schema.org JSON-LD validation and serialization. |
|
Validation and serialization of |
|
Validation and serialization of |
|
Parser for the JSON-LD Schema.org markup used in the marketplace. |
|
This class contains all the information about a plugin which are needed for the init-Command. |
Functions
|
Check whether |
|
Figure out whether |
|
|
|
|
|
|
|
Returns a List of PluginInfos which are meant to be used by the init-command. |
Module Contents
- class hermes.commands.marketplace.SchemaOrgModel(/, **data: Any)
Bases:
pydantic.BaseModel
Basic model for Schema.org JSON-LD validation and serialization.
- class hermes.commands.marketplace.SchemaOrgOrganization(/, **data: Any)
Bases:
SchemaOrgModel
Validation and serialization of
schema:Organization
.This model does not incorporate all possible fields and is meant to be used merely for the purposes of the Hermes marketplace.
- class hermes.commands.marketplace.SchemaOrgSoftwareApplication(/, **data: Any)
Bases:
SchemaOrgModel
Validation and serialization of
schema:SoftwareApplication
.This model does not incorporate all possible fields and is meant to be used merely for the purposes of the Hermes marketplace.
- author: SchemaOrgOrganization | None = None
- is_part_of: SchemaOrgSoftwareApplication | None = None
- class hermes.commands.marketplace.PluginMarketPlaceParser(*args, **kwargs)
Bases:
html.parser.HTMLParser
Parser for the JSON-LD Schema.org markup used in the marketplace.
- plugins: List[SchemaOrgSoftwareApplication] = []
- hermes.commands.marketplace._doi_is_version_of_concept_doi(doi: str, concept_doi: str) bool
Check whether
doi
is a version ofconcept_doi
.The check is performed by requesting
doi
from the DataCite API and checking whether its related identifier of typeIsVersionOf
points toconcept_doi
. This is the case ifconecpt_doi
is the concept DOI ofdoi
.
- hermes.commands.marketplace._is_hermes_reference(reference: SchemaOrgModel | None)
Figure out whether
reference
refers to HERMES.
- hermes.commands.marketplace._sort_plugins_by_step(plugins: list[SchemaOrgSoftwareApplication]) dict[str, list[SchemaOrgSoftwareApplication]]
- hermes.commands.marketplace._plugin_loc(_plugin: SchemaOrgSoftwareApplication) str
- class hermes.commands.marketplace.PluginInfo
This class contains all the information about a plugin which are needed for the init-Command.
- hermes.commands.marketplace.get_plugin_infos() list[PluginInfo]
Returns a List of PluginInfos which are meant to be used by the init-command.