-
Notifications
You must be signed in to change notification settings - Fork 2
/
template.py
45 lines (39 loc) · 1.16 KB
/
template.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import os
dirs = [
os.path.join("data", "raw"),
os.path.join("data","processed"),
"data_given",
"notebooks",
"saved_models",
"src",
"report",
"tests",
"artifacts",
os.path.join("prediction_service", "model"),
os.path.join("webapp", "static", "css"),
os.path.join("webapp", "static", "script"),
os.path.join("webapp", "templates")
]
for dir in dirs:
os.makedirs(dir, exist_ok=True)
#Create .gitkeep file for commiting empty folder to git
with open(os.path.join(dir, ".gitkeep"), "w") as f:
pass
files = [
"dvc.yaml",
"params.yaml",
".gitignore",
"app.py",
os.path.join("src","__init__.py"),
os.path.join("prediction_service", "prediction.py"),
os.path.join("webapp", "static", "css", "main.css"),
os.path.join("webapp", "static", "css", "index.js"),
os.path.join("webapp", "templates","index.html"),
os.path.join("webapp", "templates","404.html"),
os.path.join("webapp", "templates","base.html"),
os.path.join(".github", "workflows","ci-cd.yaml"),
os.path.join("src", "log_production_model.py")
]
for file in files:
with open(file, "w") as f:
pass