-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup_project.py
More file actions
35 lines (30 loc) · 864 Bytes
/
Copy pathsetup_project.py
File metadata and controls
35 lines (30 loc) · 864 Bytes
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
import os
from pathlib import Path
def create_structure():
# Define the folder structure
dirs = [
"data/raw",
"data/processed",
"data/vector_store",
"models",
"logs",
"notebooks",
"src/api",
"src/agents",
"src/data_engine",
"src/ml_engine",
"src/ui",
]
# Create directories
for d in dirs:
Path(d).mkdir(parents=True, exist_ok=True)
# Create __init__.py in every src subdirectory to make them packages
if d.startswith("src"):
init_file = Path(d) / "__init__.py"
init_file.touch()
# Create root __init__.py
Path("src/__init__.py").touch()
print("✅ Project structure created successfully.")
print("✅ __init__.py files created.")
if __name__ == "__main__":
create_structure()