-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathstart.py
More file actions
79 lines (69 loc) · 2 KB
/
Copy pathstart.py
File metadata and controls
79 lines (69 loc) · 2 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#!/usr/bin/env python3
"""
Script to generate folder structure for Sirraya LSD Code
"""
import os
from pathlib import Path
def create_structure():
"""Create the complete folder structure"""
# Define the directory structure
directories = [
".github/workflows",
".github/ISSUE_TEMPLATE",
"docs",
"examples",
"lsd/core",
"lsd/models",
"lsd/data",
"lsd/evaluation",
"lsd/visualization",
"tests",
"scripts",
"requirements"
]
# Create directories
for directory in directories:
Path(directory).mkdir(parents=True, exist_ok=True)
print(f"Created: {directory}/")
# Create empty __init__.py files
init_files = [
"lsd/__init__.py",
"lsd/core/__init__.py",
"lsd/models/__init__.py",
"lsd/data/__init__.py",
"lsd/evaluation/__init__.py",
"lsd/visualization/__init__.py",
"tests/__init__.py"
]
for init_file in init_files:
Path(init_file).touch()
print(f"Created: {init_file}")
# Create other essential files
essential_files = [
"README.md",
"LICENSE",
"CONTRIBUTING.md",
"CODE_OF_CONDUCT.md",
"pyproject.toml",
"requirements.txt",
"environment.yml",
"Dockerfile",
".dockerignore",
".gitignore",
"setup.py",
".github/workflows/python-package.yml",
".github/workflows/tests.yml",
".github/ISSUE_TEMPLATE/bug_report.md",
".github/ISSUE_TEMPLATE/feature_request.md",
"examples/basic_usage.py",
"examples/advanced_analysis.py",
"lsd/cli.py",
"lsd/_version.py"
]
for file in essential_files:
Path(file).touch()
print(f"Created: {file}")
print("\nFolder structure created successfully!")
print("Now you can add your code files to the respective directories.")
if __name__ == "__main__":
create_structure()