summaryrefslogtreecommitdiff
path: root/pysquaredeal.py
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2024-01-15 12:24:37 +0100
committeremkael <emkael@tlen.pl>2024-01-15 12:26:44 +0100
commit9917692c976c547a35a027e9e09172d024517eca (patch)
tree7139d85cb6518a0ce210456af2a66f73b64d4158 /pysquaredeal.py
parent63225aa72d21c2bba6776fcaef2cb16e7eca12c3 (diff)
Loading and parsing existing SQD/SQK files
Diffstat (limited to 'pysquaredeal.py')
-rw-r--r--pysquaredeal.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/pysquaredeal.py b/pysquaredeal.py
new file mode 100644
index 0000000..4f12df6
--- /dev/null
+++ b/pysquaredeal.py
@@ -0,0 +1,10 @@
+import sys
+
+from squaredeal import SquareDeal
+
+
+sd = SquareDeal()
+sd.fromfile(sys.argv[1], encoding=sys.argv[2] if len(sys.argv) > 2 else 'utf-8')
+print(sd.__dict__)
+for phase in sd.phases:
+ print(phase.__dict__)