Skip to content

Commit

Permalink
folder strcuture updated
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnysavita10 committed Dec 27, 2023
1 parent a331913 commit 0d75d39
Show file tree
Hide file tree
Showing 23 changed files with 42 additions and 0 deletions.
Empty file added .github/workflows/.gitkeep
Empty file.
Empty file added experiment/experiments.ipynb
Empty file.
Empty file added init_setup.sh
Empty file.
Empty file added pyproject.toml
Empty file.
Empty file added requirements.txt
Empty file.
Empty file added requirements_dev.txt
Empty file.
Empty file added setup.cfg
Empty file.
Empty file added setup.py
Empty file.
Empty file added src/__init__.py
Empty file.
Empty file added src/components/__init__.py
Empty file.
Empty file.
Empty file.
Empty file.
Empty file added src/components/model_trainer.py
Empty file.
Empty file.
Empty file added src/logger/logging.py
Empty file.
Empty file added src/pipeline/__init__.py
Empty file.
Empty file.
Empty file.
Empty file.
42 changes: 42 additions & 0 deletions template.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
import os
from pathlib import Path


list_of_files=[

".github/workflows/.gitkeep",
"src/__init__.py",
"src/components/__init__.py",
"src/components/data_ingestion.py",
"src/components/data_transformation.py",
"src/components/model_trainer.py",
"src/components/model_evaluation.py",
"src/pipeline/__init__.py",
"src/pipeline/training_pipeline.py",
"src/pipeline/prediction_pipeline.py",
"src/utils/__init__.py"
"src/utils/utils.py",
"src/logger/logging.py",
"src/exception/exception"
"tests/unit/__init__.py",
"tests/integration/__init__.py",
"init_setup.sh",
"requirements.txt",
"requirements_dev.txt",
"setup.py",
"setup.cfg",
"pyproject.toml",
"tox.ini",
"experiment/experiments.ipynb"

]

for filepath in list_of_files:
filepath = Path(filepath)
filedir, filename = os.path.split(filepath)
if filedir != "":
os.makedirs(filedir, exist_ok=True)

if (not os.path.exists(filepath)) or (os.path.getsize(filepath) == 0):
with open(filepath, "w") as f:
pass # create an empty file
Empty file added tests/integration/__init__.py
Empty file.
Empty file added tox.ini
Empty file.

0 comments on commit 0d75d39

Please sign in to comment.