Are you sure you want to delete this access key?
#deep Classifier project
Create folder structure using below code
import os from pathlib import Path import logging
logging.basicConfig(level=logging.INFO, format='[%(asctime)s]:%(message)s:') package_name = "deepClassifier"
list_of_files = [ ".github/workflows/.gitkeep", f"src/{package_name}/init.py", f"src/{package_name}/components/init.py", f"src/{package_name}/utils/init.py", f"src/{package_name}/config/init.py", f"src/{package_name}/pipeline/init.py", f"src/{package_name}/entity/init.py", f"src/{package_name}/constants/init.py", f"src/{package_name}/example/init.py", "tests/init.py", "tests/unit/init.py", "tests/integration/init.py", "research/trials.ipynb", "config/config.yaml", "dvc.yaml", "params.yaml", "init_setup.sh", "requirements.txt", "requirements_dev.txt", "setup.py", "setup.cfg", "pyproject.toml", "tox.ini", "research/trials.ipynb" ]
for filepath in list_of_files: filepath = Path(filepath) filedir, filename = os.path.split(filepath) if filedir != "": os.makedirs(filedir,exist_ok=True) logging.info(f"Creating directory: {filedir} for file:{filename}")
if (not os.path.exists(filepath)) or (os.path.getsize(filepath) == 0):
with open(filepath, "w") as f:
pass # create an empty file
logging.info(f"Creating directory:{filedir}")
else:
logging.info(f"{filename} already exists")
Folder structure code ends here
Press p or to see the previous file or, n or to see the next file
Are you sure you want to delete this access key?
Are you sure you want to delete this access key?
Are you sure you want to delete this access key?
Are you sure you want to delete this access key?