athena.classes package¶
Submodules¶
athena.classes.api module¶
The “Api” class is used when an instance of an API is required in the athena.apis.api_lib
Use “from athena.apis import api_lib” & “api_lib[‘(api_name_key)’]” to access instances of APIs.
athena.classes.module module¶
The “Module” class represents a collection of tasks
athena.classes.response module¶
The “Response” class represents a cached audio response
athena.classes.task module¶
The “Task” class represents an action to be performed
The “ActiveTask” class uses the “match” method to trigger an action. Generally regex patterns are supplied to do the input matching. The “match” method can be overriden with “return match_any(text)” to trigger an action upon matching any given regex pattern.
-
class
athena.classes.task.
ActiveTask
(patterns=[], priority=0, greedy=True, regex_precompile=True, regex_ignore_case=True)[source]¶ Bases:
athena.classes.task.Task
-
match_and_save_groups
(text, group_key_dict)[source]¶ Check if any patterns match, If so, save the match groups to self.(key name)
-
priority
= None¶ If task is matched, stop module from matching the proceeding tasks
-