aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/psi/psi.py
diff options
context:
space:
mode:
author简律纯 <i@jyunko.cn>2023-11-05 02:39:00 +0800
committer简律纯 <i@jyunko.cn>2023-11-05 02:39:00 +0800
commit57188fca203643f18409b0fa71d730d771faffed (patch)
treecb0e0990ac030f5f0012640fd7c1707b5bde1156 /psi/psi.py
parentf5e118d18af7f11854ddc34d1f6f07b48b125acd (diff)
downloadTRPGNivis-57188fca203643f18409b0fa71d730d771faffed.tar.gz
TRPGNivis-57188fca203643f18409b0fa71d730d771faffed.zip
chore: add Token
Diffstat (limited to 'psi/psi.py')
-rw-r--r--psi/psi.py69
1 files changed, 69 insertions, 0 deletions
diff --git a/psi/psi.py b/psi/psi.py
new file mode 100644
index 0000000..8df0acd
--- /dev/null
+++ b/psi/psi.py
@@ -0,0 +1,69 @@
+
+from psi.execution import Execution
+
+__all__ = ['psi']
+
+class psi:
+ """
+ A class representing a Psi object.
+
+ Args:
+ input: The input value for the Psi object.
+
+ Returns:
+ None
+
+ Example:
+ ```python
+ obj = Psi("example")
+ ```
+ """
+
+ def __init__(self, input):
+ """
+ Initializes a Psi object.
+
+ Args:
+ input: The input value for the Psi object.
+
+ Returns:
+ None
+ """
+ self.input = input
+ self.execution = Execution(input)
+ self.result = None
+
+ def execute(self):
+ """
+ Executes the Psi object.
+
+ Returns:
+ The result of the execution.
+ """
+ self.result = self.execution.execute()
+ return self.result
+
+ def get_result(self):
+ """
+ Retrieves the result of the Psi object.
+
+ Returns:
+ The result of the execution.
+ """
+ return self.result
+
+ def set_input(self, input):
+ """
+ Sets the input value for the Psi object.
+
+ Args:
+ input: The new input value.
+
+ Returns:
+ None
+ """
+ self.input = input
+ self.execution = Execution(input)
+ self.result = None
+
+