def advertise_plugin_commands(plugin_name, commands,
                              verify_commands=True,
                              conn=None):
    """

    :param plugin_name:
    :param commands:
    :param verify_commands:
    :param conn:
    :return:
    """
    assert isinstance(commands, list)
    if verify_commands and not verify({Commands.DESCRIPTOR.name: commands},
                                      Commands()):
        raise ValueError("Invalid Commands")
    plugin = RPX.table(plugin_name)
    success = plugin.insert(commands,
                            conflict=RDB_UPDATE).run(conn)
    return success
def advertise_plugin_commands ( plugin_name , commands , verify_commands = True , conn = None ) : assert isinstance ( commands , list ) if verify_commands and not verify ( { Commands . DESCRIPTOR . name : commands } , Commands ( ) ) : raise ValueError ( "Invalid Commands" ) plugin = RPX . table ( plugin_name ) success = plugin . insert ( commands , conflict = RDB_UPDATE ) . run ( conn ) return success
:param plugin_name:
    :param commands:
    :param verify_commands:
    :param conn:
    :return: