-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
48 lines (38 loc) · 1.25 KB
/
setup.py
File metadata and controls
48 lines (38 loc) · 1.25 KB
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
46
47
48
"""
Setup script to initialize the project
Creates necessary directories and checks dependencies
"""
import os
from pathlib import Path
def setup_project():
"""
Creates necessary directory structure
"""
project_root = Path(__file__).parent
directories = [
project_root / "data" / "raw",
project_root / "data" / "processed",
project_root / "models",
project_root / "logs",
]
print("Creating directory structure...")
for directory in directories:
directory.mkdir(parents=True, exist_ok=True)
print(f" ✓ {directory}")
# Create .gitkeep files if needed
gitkeep_files = [
project_root / "data" / ".gitkeep",
project_root / "models" / ".gitkeep",
project_root / "logs" / ".gitkeep",
]
for gitkeep in gitkeep_files:
if not gitkeep.exists():
gitkeep.touch()
print("\nStructure created successfully!")
print("\nNext steps:")
print("1. Download data: python src/data/download_data.py")
print("2. Process data: python src/data/process_data.py")
print("3. Train model: python src/models/train_model.py")
print("4. Run API: python -m uvicorn src.api.main:app --reload")
if __name__ == "__main__":
setup_project()