unidown.plugin.plugin_info

Classes

PluginInfo(name, version, host)

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
  • name (str) – Name of the plugin.

  • version (str) – Version, PEP440 conform.

  • host (str) – Host url of the main data.

Raises
classmethod from_json(data)[source]

Construct from json dict.

Parameters

data (dict) – Json data as dict.

Return type

PluginInfo

Returns

Plugin info.

Raises
to_json()[source]

Create json data.

Return type

dict

Returns

Json dictionary.

host: str

Host url of the main data.

name: str

Name of the plugin.

version: Version

Plugin version.