start windows
This commit is contained in:
13
utils/Enums.py
Normal file
13
utils/Enums.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from enum import Enum
|
||||
|
||||
class DIRECTION(Enum):
|
||||
WEST = 0
|
||||
EAST = 1
|
||||
NORTH = 2
|
||||
SOUTH = 3
|
||||
|
||||
class COLLUMN_STYLE(Enum):
|
||||
NONE = 0
|
||||
INNER = 1
|
||||
OUTER = 2
|
||||
BOTH = 3
|
||||
11
utils/JsonReader.py
Normal file
11
utils/JsonReader.py
Normal file
@@ -0,0 +1,11 @@
|
||||
import json
|
||||
|
||||
class JsonReader:
|
||||
def __init__(self, json_file):
|
||||
self.data = self._load_json(json_file)
|
||||
|
||||
def _load_json(self, json_file : str):
|
||||
f = open(json_file)
|
||||
js = json.load(f)
|
||||
|
||||
return js
|
||||
11
utils/YamlReader.py
Normal file
11
utils/YamlReader.py
Normal file
@@ -0,0 +1,11 @@
|
||||
import yaml
|
||||
|
||||
class YamlReader:
|
||||
def __init__(self, yaml_file):
|
||||
self.data = self._load_yaml(yaml_file)
|
||||
|
||||
def _load_yaml(self, yaml_file : str):
|
||||
with open(yaml_file, 'r') as stream:
|
||||
data_loaded = yaml.safe_load(stream)
|
||||
|
||||
return data_loaded
|
||||
Reference in New Issue
Block a user