Exemplo n.º 1
0
    def __init__(self):
        """
        First look for and initialize APIs in the "api_library" folder.
        Then prompt the user to log in.
        Next verify that the user's .yml file is configured for each API.
        If an API's required configuration variables are not found,
        then the API is disabled.
        Next it finds and loads modules in the "modules" folder.
        Lastly, it initializes the STT engine.

        Use "from athena.apis import api_lib" & "api_lib['(api_name_key)']"
        to access instances of APIs.
        """

        apis.find_apis()
        self.login()

        apis.verify_apis(self.user)
        apis.list_apis()

        mods.find_mods()
        mods.list_mods()

        self.greet()
        stt.init()

        self.quit_flag = False
Exemplo n.º 2
0
    def __init__(self):
        """
            First look for and initialize APIs in the "api_library" folder.
            Then prompt the user to log in.
            Next verify that the user's .yml file is configured for each API.
            If an API's required configuration variables are not found,
            then the API is disabled.
            Next it finds and loads modules in the "modules" folder.
            Lastly, it initializes the STT engine.

            Use "from athena.apis import api_lib" & "api_lib['(api_name_key)']"
            to access instances of APIs.
        """
        apis.find_apis()
        self.login()

        apis.verify_apis(self.user)
        apis.list_apis()

        mods.find_mods()
        mods.list_mods()

        self.greet()
        stt.init()

        self.quit_flag = False
Exemplo n.º 3
0
 def action(self, text):
     mods.list_mods()
Exemplo n.º 4
0
    def __init__(self):
        apis.find_apis()
        apis.list_apis()

        mods.find_mods()
        mods.list_mods()