messages/_config.py
def configure_profile(msg_type, profile_name, data, auth):
    """
    Create the profile entry.

    Args:
        :msg_type: (str) message type to create config entry.
        :profile_name: (str) name of the profile entry
        :data: (dict) dict values for the 'settings'
        :auth: (dict) auth parameters
    """
    with jsonconfig.Config("messages", indent=4) as cfg:
        write_data(msg_type, profile_name, data, cfg)
        write_auth(msg_type, profile_name, auth, cfg)

    print("[+] Configuration entry for <" + profile_name + "> created.")
    print("[+] Configuration file location: " + cfg.filename)
def configure_profile(msg_type, profile_name, data, auth):
    """
    Create the profile entry.

    Args:
        :msg_type: (str) message type to create config entry.
        :profile_name: (str) name of the profile entry
        :data: (dict) dict values for the 'settings'
        :auth: (dict) auth parameters
    """
    with jsonconfig.Config("messages", indent=4) as cfg:
        write_data(msg_type, profile_name, data, cfg)
        write_auth(msg_type, profile_name, auth, cfg)

    print("[+] Configuration entry for <" + profile_name + "> created.")
    print("[+] Configuration file location: " + cfg.filename)
Create the profile entry.

    Args:
        :msg_type: (str) message type to create config entry.
        :profile_name: (str) name of the profile entry
        :data: (dict) dict values for the 'settings'
        :auth: (dict) auth parameters