First setup for data-library

This commit is contained in:
simplePCBuilding
2022-03-24 13:45:05 +01:00
parent 1397a25707
commit 91c84df73c
9 changed files with 43 additions and 16 deletions

View File

@@ -55,11 +55,3 @@ class CsvWrite:
with open(path, "a") as appenddata:
self.__appending = csv.writer(appenddata, delimiter=',', quoting=csv.QUOTE_MINIMAL)
self.__appending.writerow(value)
def initialize(self):
with open("../../data/ingredients/ingredients.csv", "w") as initializedata:
self.__creating = csv.writer(initializedata, delimiter=',', quoting=csv.QUOTE_MINIMAL)
self.__creating.writerow(["Setup-Success"])
with open("../../data/recipes/recipes.csv", "w") as initializedata:
self.__creating = csv.writer(initializedata, delimiter=',', quoting=csv.QUOTE_MINIMAL)
self.__creating.writerow(["Setup-Success"])

View File

@@ -1,8 +1,16 @@
"""@package docstring
This module configures PCs but relies heavily on external modules that are included with the package.
"""
import bin.lib.csv_parsers
cvr = bin.lib.csv_parsers.CsvRead()
cvw = bin.lib.csv_parsers.CsvWrite()
class ConfigCreator:
def __init__(self):
print("")
self.__info_import = []
def start_config(self, path):
self.__info_import = cvr.importing(path)