diff options
| author | 2023-07-23 15:28:55 +0800 | |
|---|---|---|
| committer | 2023-07-23 15:28:55 +0800 | |
| commit | 8e79582d3a340ede3337759c5be06234689ccf4e (patch) | |
| tree | 4808937a5da1248c03d3d8ee2f0e2f569ed05bb2 /psi/__init__.py | |
| parent | dfa7eb4530d4b4062db8427a5b1b32ea5af7fb40 (diff) | |
| download | TRPGNivis-8e79582d3a340ede3337759c5be06234689ccf4e.tar.gz TRPGNivis-8e79582d3a340ede3337759c5be06234689ccf4e.zip | |
😎BREAKING CHANGES
Diffstat (limited to 'psi/__init__.py')
| -rw-r--r-- | psi/__init__.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/psi/__init__.py b/psi/__init__.py index e5c593e..0c9f577 100644 --- a/psi/__init__.py +++ b/psi/__init__.py @@ -4,3 +4,23 @@ """
__all__ = ['Psi']
+
+from psi.execution import Execution
+
+class Psi:
+ def __init__(self, input):
+ self.input = input
+ self.execution = Execution(input)
+ self.result = None
+
+ def execute(self):
+ self.result = self.execution.execute()
+ return self.result
+
+ def get_result(self):
+ return self.result
+
+ def set_input(self, input):
+ self.input = input
+ self.execution = Execution(input)
+ self.result = None
|
