-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcreate_structure.py
More file actions
98 lines (92 loc) · 2.58 KB
/
create_structure.py
File metadata and controls
98 lines (92 loc) · 2.58 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
import os
base = r'c:\AI\G_Mind - Copy'
dirs = [
'alembic/versions',
'src/api',
'src/models',
'src/schemas',
'src/services',
'src/workers',
'src/utils',
'tests/unit',
'tests/integration',
'tests/fixtures/emails',
'tests/fixtures/responses',
'monitoring/prometheus',
'monitoring/grafana/dashboards',
'monitoring/alertmanager',
'scripts',
]
files = [
'docker-compose.yml',
'docker-compose.override.yml',
'Dockerfile',
'.env.example',
'.gitignore',
'pyproject.toml',
'alembic.ini',
'README.md',
'alembic/env.py',
'alembic/script.py.mako',
'alembic/versions/001_initial_schema.py',
'alembic/versions/002_add_failed_tasks.py',
'src/__init__.py',
'src/main.py',
'src/config.py',
'src/dependencies.py',
'src/api/__init__.py',
'src/api/router.py',
'src/api/webhook.py',
'src/api/health.py',
'src/api/tasks.py',
'src/models/__init__.py',
'src/models/base.py',
'src/models/email.py',
'src/models/task.py',
'src/models/response.py',
'src/models/failed_task.py',
'src/schemas/__init__.py',
'src/schemas/webhook.py',
'src/schemas/email.py',
'src/schemas/task.py',
'src/schemas/ai.py',
'src/services/__init__.py',
'src/services/email_service.py',
'src/services/ai_service.py',
'src/services/storage_service.py',
'src/services/queue_service.py',
'src/services/watch_service.py',
'src/workers/__init__.py',
'src/workers/celery_app.py',
'src/workers/tasks.py',
'src/workers/callbacks.py',
'src/utils/__init__.py',
'src/utils/logging.py',
'src/utils/retry.py',
'src/utils/pubsub.py',
'src/utils/gmail.py',
'tests/__init__.py',
'tests/conftest.py',
'tests/unit/test_email_service.py',
'tests/unit/test_ai_service.py',
'tests/unit/test_classification.py',
'tests/unit/test_deduplication.py',
'tests/integration/test_webhook_flow.py',
'tests/integration/test_celery_tasks.py',
'tests/integration/test_end_to_end.py',
'monitoring/prometheus/prometheus.yml',
'monitoring/grafana/dashboards/email-assistant.json',
'monitoring/alertmanager/config.yml',
'scripts/setup_watch.py',
'scripts/seed_test_emails.py',
'scripts/check_queue.py',
]
for d in dirs:
path = os.path.join(base, d.replace('/', os.sep))
os.makedirs(path, exist_ok=True)
for f in files:
path = os.path.join(base, f.replace('/', os.sep))
os.makedirs(os.path.dirname(path), exist_ok=True)
if not os.path.exists(path):
open(path, 'w').close()
print('Done!')