inital version, simple layout and functionality

This commit is contained in:
2024-04-20 18:30:12 -07:00
commit b1c36bd22c
6 changed files with 340 additions and 0 deletions

19
yamlcon.py Normal file
View File

@@ -0,0 +1,19 @@
import yaml
def load(path):
with open(path, 'r') as file:
try:
data = yaml.safe_load(file)
return data
except yaml.YAMLError as e:
print(f"Error reading YAML file {path}: {e}")
return None
def save(path, data):
with open(path, 'w') as file:
try:
yaml.dump(data, file)
return True
except yaml.YAMLError as e:
print(f"Error writing to YAML file {path}: {e}")
return None