hermes.commands.harvest.toml

A hermes harvest plugin that harvests the .toml file of the project

Classes

TomlHarvestSettings

Settings class for this plugin

TomlHarvestPlugin

Base class for the hermes plugin that harvests .toml files

Module Contents

class hermes.commands.harvest.toml.TomlHarvestSettings(/, **data: Any)

Bases: pydantic.BaseModel

Settings class for this plugin

class hermes.commands.harvest.toml.TomlHarvestPlugin

Bases: hermes.commands.harvest.base.HermesHarvestPlugin

Base class for the hermes plugin that harvests .toml files

__call__(command: hermes.commands.harvest.base.HermesHarvestCommand) hermes.model.api.SoftwareMetadata

start of the process of harvesting the .toml file

classmethod read_from_toml(file)

Read and process the data inside the .toml file

classmethod read_from_one_table(table, mapping)

Read and process the data of one table inside the .toml file

classmethod handle_different_possibilities_for_persons(persons)

Simplify the data structure of the persons

classmethod handle_person_in_unknown_format(persons)

Process the persons in the unkown format

classmethod remove_forbidden_keys(person)

Remove forbidden keys from the person-data-dictionary