Package command_system :: Module dispatcher
[hide private]
[frames] | no frames]

Module dispatcher

source code

Backbone of the command system. Provides smart and controllable dispatching mechanism with an auto-discovery functionality. In addition to automatic discovery and dispatching, also features manual control over the process.
Classes [hide private]
  Dispatchable
  Host
  Container
Functions [hide private]
 
add_host(host) source code
 
remove_host(host) source code
 
add_container(container) source code
 
remove_container(container) source code
 
add_commands(container) source code
 
remove_commands(container) source code
 
traverse_commands(container) source code
 
is_command(attribute) source code
 
is_root(namespace) source code
 
get_command(host, name) source code
 
list_commands(host) source code
Variables [hide private]
  COMMANDS = {<class 'command_system.implementation.custom.Custo...
  CONTAINERS = {<class 'command_system.implementation.hosts.Chat...
  __package__ = 'command_system'

Imports: NoneType, remove


Function Details [hide private]

add_host(host)

source code 

remove_host(host)

source code 

add_container(container)

source code 

remove_container(container)

source code 

add_commands(container)

source code 

remove_commands(container)

source code 

traverse_commands(container)

source code 

is_command(attribute)

source code 

is_root(namespace)

source code 

get_command(host, name)

source code 

list_commands(host)

source code 

Variables Details [hide private]

COMMANDS

Value:
{<class 'command_system.implementation.custom.CustomCommonCommands'>: \
{'dance': <Command dance>},
 <class 'command_system.implementation.custom.CustomChatCommands'>: {'\
bawl': <Command sing, squal, bawl>,
                                                                     '\
sing': <Command sing, squal, bawl>,
                                                                     '\
squal': <Command sing, squal, bawl>}}

CONTAINERS

Value:
{<class 'command_system.implementation.hosts.ChatCommands'>: [<class '\
command_system.implementation.custom.CustomCommonCommands'>,
                                                              <class '\
command_system.implementation.custom.CustomChatCommands'>],
 <class 'command_system.implementation.hosts.PrivateChatCommands'>: [<\
class 'command_system.implementation.custom.CustomCommonCommands'>],
 <class 'command_system.implementation.hosts.GroupChatCommands'>: [<cl\
ass 'command_system.implementation.custom.CustomCommonCommands'>]}

__package__

Value:
'command_system'