mirror of
https://github.com/Hestia-Homes/survey-extraction.git
synced 2026-06-08 11:17:29 +00:00
basic template of validator
This commit is contained in:
parent
0b813ac51e
commit
c2f94afde4
3 changed files with 21 additions and 4 deletions
|
|
@ -1,5 +1,16 @@
|
|||
print("hello world ")
|
||||
import os
|
||||
from validator.retrohome import RetroHomeFileStructureValidator
|
||||
|
||||
DATA_LOC = "/workspaces/survey-extraction/data/"
|
||||
|
||||
def main():
|
||||
RetroHomeFileStructureValidator(DATA_LOC)
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
||||
|
||||
# Make a file checker to see if retrohomes as sumbitted the correct structure
|
||||
# Read file from local file path directory
|
||||
# proof of concept of some validator
|
||||
# proof of concept of something i do with a particular flie
|
||||
|
|
|
|||
0
etl/src/etl/validator/__init__.py
Normal file
0
etl/src/etl/validator/__init__.py
Normal file
|
|
@ -1,6 +1,12 @@
|
|||
import os
|
||||
|
||||
class RetroHomeFileStructureValidator():
|
||||
def __init__(self, source_loc_path):
|
||||
self.source_path = source_loc_path
|
||||
self.correct_names = []
|
||||
self.incorrect_names = []
|
||||
self.validate()
|
||||
|
||||
class RetroHomeValidator():
|
||||
def __init__(self, file_path):
|
||||
pass
|
||||
def validate(self):
|
||||
print("nothing to validate")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue