p2pfl.communication.commands.command moduleΒΆ

Command interface.

class p2pfl.communication.commands.command.Command[source]ΒΆ

Bases: ABC

Command interface.

abstract execute(source, round, **kwargs)[source]ΒΆ

Execute the command.

Parameters:
  • source (str) – The source of the command.

  • round (int) – The round of the command.

  • **kwargs – The command arguments.

Return type:

None

static get_name()[source]ΒΆ

Get the command name.

Return type:

str