unidown.plugin.plugin_info¶
Classes
|
Information about the module. |
- class PluginInfo(name, version, host)[source]¶
Bases:
object
Information about the module. This information will be saved into the save files as well.
- Parameters
- Raises
ValueError – Name is empty.
ValueError – Host is empty.
InvalidVersion – Version is not PEP440 conform.
- classmethod from_json(data)[source]¶
Construct from json dict.
- Parameters
data (
dict
) – Json data as dict.- Return type
- Returns
Plugin info.
- Raises
ValueError – Name is missing.
ValueError – Version is missing.
ValueError – Host is missing.