orionis 0.420.0__py3-none-any.whl → 0.422.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- orionis/__init__.py +0 -11
- orionis/foundation/config/app/entities/app.py +15 -14
- orionis/foundation/config/cache/entities/cache.py +2 -1
- orionis/foundation/config/cache/entities/file.py +1 -0
- orionis/foundation/config/cache/entities/stores.py +1 -0
- orionis/foundation/config/cors/entities/cors.py +1 -0
- orionis/foundation/config/database/entities/connections.py +5 -4
- orionis/foundation/config/database/entities/database.py +3 -2
- orionis/foundation/config/database/entities/mysql.py +7 -6
- orionis/foundation/config/database/entities/oracle.py +11 -10
- orionis/foundation/config/database/entities/pgsql.py +7 -6
- orionis/foundation/config/database/entities/sqlite.py +8 -7
- orionis/foundation/config/filesystems/entitites/aws.py +1 -0
- orionis/foundation/config/filesystems/entitites/disks.py +4 -3
- orionis/foundation/config/filesystems/entitites/filesystems.py +2 -1
- orionis/foundation/config/filesystems/entitites/local.py +1 -0
- orionis/foundation/config/filesystems/entitites/public.py +1 -0
- orionis/foundation/config/logging/entities/channels.py +7 -6
- orionis/foundation/config/logging/entities/chunked.py +1 -0
- orionis/foundation/config/logging/entities/daily.py +3 -2
- orionis/foundation/config/logging/entities/hourly.py +1 -0
- orionis/foundation/config/logging/entities/logging.py +2 -1
- orionis/foundation/config/logging/entities/monthly.py +1 -0
- orionis/foundation/config/logging/entities/stack.py +1 -0
- orionis/foundation/config/logging/entities/weekly.py +1 -0
- orionis/foundation/config/mail/entities/mail.py +1 -1
- orionis/foundation/config/mail/entities/mailers.py +2 -2
- orionis/foundation/config/queue/entities/brokers.py +2 -1
- orionis/foundation/config/queue/entities/database.py +1 -0
- orionis/foundation/config/queue/entities/queue.py +2 -1
- orionis/foundation/config/roots/paths.py +63 -62
- orionis/foundation/config/session/entities/session.py +9 -8
- orionis/foundation/config/startup.py +13 -12
- orionis/foundation/config/testing/entities/testing.py +2 -1
- orionis/metadata/framework.py +1 -1
- orionis/services/environment/contracts/{types.py → caster.py} +1 -29
- orionis/services/environment/core/dot_env.py +230 -142
- orionis/services/environment/dynamic/caster.py +902 -0
- orionis/services/environment/enums/{cast_type.py → value_type.py} +11 -10
- orionis/services/environment/key/key_generator.py +7 -15
- orionis/services/environment/validators/types.py +10 -10
- orionis/support/entities/base.py +25 -0
- {orionis-0.420.0.dist-info → orionis-0.422.0.dist-info}/METADATA +1 -1
- {orionis-0.420.0.dist-info → orionis-0.422.0.dist-info}/RECORD +49 -51
- tests/foundation/config/root/test_foundation_config_root_paths.py +4 -1
- orionis/services/environment/dynamic/types.py +0 -577
- orionis/services/environment/serializer/__init__.py +0 -0
- orionis/services/environment/serializer/values.py +0 -21
- {orionis-0.420.0.dist-info → orionis-0.422.0.dist-info}/WHEEL +0 -0
- {orionis-0.420.0.dist-info → orionis-0.422.0.dist-info}/licenses/LICENCE +0 -0
- {orionis-0.420.0.dist-info → orionis-0.422.0.dist-info}/top_level.txt +0 -0
- {orionis-0.420.0.dist-info → orionis-0.422.0.dist-info}/zip-safe +0 -0
|
@@ -42,14 +42,15 @@ class Daily(BaseEntity):
|
|
|
42
42
|
)
|
|
43
43
|
|
|
44
44
|
at: time | str = field(
|
|
45
|
-
|
|
45
|
+
default_factory = lambda: time(0, 0).strftime("%H:%M"),
|
|
46
46
|
metadata = {
|
|
47
47
|
"description": "The time of day when the log rotation should occur.",
|
|
48
|
-
"default":
|
|
48
|
+
"default": "00:00"
|
|
49
49
|
},
|
|
50
50
|
)
|
|
51
51
|
|
|
52
52
|
def __post_init__(self):
|
|
53
|
+
super().__post_init__()
|
|
53
54
|
"""
|
|
54
55
|
Validates and normalizes the attributes after dataclass initialization.
|
|
55
56
|
|
|
@@ -27,11 +27,12 @@ class Logging(BaseEntity):
|
|
|
27
27
|
default_factory = lambda: Channels(),
|
|
28
28
|
metadata = {
|
|
29
29
|
"description": "A collection of available logging channels.",
|
|
30
|
-
"default": Channels().toDict()
|
|
30
|
+
"default": lambda: Channels().toDict()
|
|
31
31
|
}
|
|
32
32
|
)
|
|
33
33
|
|
|
34
34
|
def __post_init__(self):
|
|
35
|
+
super().__post_init__()
|
|
35
36
|
"""
|
|
36
37
|
Validates the logging configuration after dataclass initialization by ensuring
|
|
37
38
|
the default channel and channels configuration are properly formatted and valid.
|
|
@@ -26,7 +26,7 @@ class Mailers(BaseEntity):
|
|
|
26
26
|
default_factory = lambda: Smtp(),
|
|
27
27
|
metadata = {
|
|
28
28
|
"description": "The SMTP configuration used for sending emails.",
|
|
29
|
-
"default": Smtp().toDict()
|
|
29
|
+
"default": lambda: Smtp().toDict()
|
|
30
30
|
}
|
|
31
31
|
)
|
|
32
32
|
|
|
@@ -34,7 +34,7 @@ class Mailers(BaseEntity):
|
|
|
34
34
|
default_factory = lambda: File(),
|
|
35
35
|
metadata = {
|
|
36
36
|
"description": "The file-based mail transport configuration.",
|
|
37
|
-
"default": File().toDict()
|
|
37
|
+
"default": lambda: File().toDict()
|
|
38
38
|
}
|
|
39
39
|
)
|
|
40
40
|
|
|
@@ -31,11 +31,12 @@ class Brokers(BaseEntity):
|
|
|
31
31
|
default_factory = lambda: Database(),
|
|
32
32
|
metadata = {
|
|
33
33
|
"description": "The configuration for the database-backed queue.",
|
|
34
|
-
"default": Database().toDict()
|
|
34
|
+
"default": lambda: Database().toDict()
|
|
35
35
|
}
|
|
36
36
|
)
|
|
37
37
|
|
|
38
38
|
def __post_init__(self):
|
|
39
|
+
super().__post_init__()
|
|
39
40
|
"""
|
|
40
41
|
Post-initialization validation for the Brokers entity.
|
|
41
42
|
|
|
@@ -30,11 +30,12 @@ class Queue(BaseEntity):
|
|
|
30
30
|
default_factory = lambda: Brokers(),
|
|
31
31
|
metadata={
|
|
32
32
|
"description": "The default queue broker to use.",
|
|
33
|
-
"default": Brokers().toDict()
|
|
33
|
+
"default": lambda: Brokers().toDict()
|
|
34
34
|
}
|
|
35
35
|
)
|
|
36
36
|
|
|
37
37
|
def __post_init__(self):
|
|
38
|
+
super().__post_init__()
|
|
38
39
|
"""
|
|
39
40
|
Post-initialization validation for the Queue entity.
|
|
40
41
|
|
|
@@ -7,255 +7,256 @@ from orionis.support.entities.base import BaseEntity
|
|
|
7
7
|
class Paths(BaseEntity):
|
|
8
8
|
|
|
9
9
|
console_scheduler: str = field(
|
|
10
|
-
|
|
10
|
+
default_factory = lambda: str((Path.cwd() / 'app' / 'console' / 'kernel.py').resolve()),
|
|
11
11
|
metadata = {
|
|
12
12
|
'description': 'Path to the console scheduler (Kernel) file.',
|
|
13
|
-
'default': str((Path.cwd() / 'app' / 'console' / 'kernel.py').resolve())
|
|
13
|
+
'default': lambda: str((Path.cwd() / 'app' / 'console' / 'kernel.py').resolve())
|
|
14
14
|
}
|
|
15
15
|
)
|
|
16
16
|
|
|
17
17
|
console_commands: str = field(
|
|
18
|
-
|
|
18
|
+
default_factory = lambda: str((Path.cwd() / 'app' / 'console' / 'commands').resolve()),
|
|
19
19
|
metadata = {
|
|
20
20
|
'description': 'Directory containing custom ArtisanStyle console commands.',
|
|
21
|
-
'default': str((Path.cwd() / 'app' / 'console' / 'commands').resolve())
|
|
21
|
+
'default': lambda: str((Path.cwd() / 'app' / 'console' / 'commands').resolve())
|
|
22
22
|
}
|
|
23
23
|
)
|
|
24
24
|
|
|
25
25
|
http_controllers: str = field(
|
|
26
|
-
|
|
26
|
+
default_factory = lambda: str((Path.cwd() / 'app' / 'http' / 'controllers').resolve()),
|
|
27
27
|
metadata = {
|
|
28
28
|
'description': 'Directory containing HTTP controller classes.',
|
|
29
|
-
'default': str((Path.cwd() / 'app' / 'http' / 'controllers').resolve())
|
|
29
|
+
'default': lambda: str((Path.cwd() / 'app' / 'http' / 'controllers').resolve())
|
|
30
30
|
}
|
|
31
31
|
)
|
|
32
32
|
|
|
33
33
|
http_middleware: str = field(
|
|
34
|
-
|
|
34
|
+
default_factory = lambda: str((Path.cwd() / 'app' / 'http' / 'middleware').resolve()),
|
|
35
35
|
metadata = {
|
|
36
36
|
'description': 'Directory containing HTTP middleware classes.',
|
|
37
|
-
'default': str((Path.cwd() / 'app' / 'http' / 'middleware').resolve())
|
|
37
|
+
'default': lambda: str((Path.cwd() / 'app' / 'http' / 'middleware').resolve())
|
|
38
38
|
}
|
|
39
39
|
)
|
|
40
40
|
|
|
41
41
|
http_requests: str = field(
|
|
42
|
-
|
|
42
|
+
default_factory = lambda: str((Path.cwd() / 'app' / 'http' / 'requests').resolve()),
|
|
43
43
|
metadata = {
|
|
44
44
|
'description': 'Directory containing HTTP form request validation classes.',
|
|
45
|
-
'default': str((Path.cwd() / 'app' / 'http' / 'requests').resolve())
|
|
45
|
+
'default': lambda: str((Path.cwd() / 'app' / 'http' / 'requests').resolve())
|
|
46
46
|
}
|
|
47
47
|
)
|
|
48
48
|
|
|
49
49
|
models: str = field(
|
|
50
|
-
|
|
50
|
+
default_factory = lambda: str((Path.cwd() / 'app' / 'models').resolve()),
|
|
51
51
|
metadata = {
|
|
52
52
|
'description': 'Directory containing ORM model classes.',
|
|
53
|
-
'default': str((Path.cwd() / 'app' / 'models').resolve())
|
|
53
|
+
'default': lambda: str((Path.cwd() / 'app' / 'models').resolve())
|
|
54
54
|
}
|
|
55
55
|
)
|
|
56
56
|
|
|
57
57
|
providers: str = field(
|
|
58
|
-
|
|
58
|
+
default_factory = lambda: str((Path.cwd() / 'app' / 'providers').resolve()),
|
|
59
59
|
metadata = {
|
|
60
60
|
'description': 'Directory containing service provider classes.',
|
|
61
|
-
'default': str((Path.cwd() / 'app' / 'providers').resolve())
|
|
61
|
+
'default': lambda: str((Path.cwd() / 'app' / 'providers').resolve())
|
|
62
62
|
}
|
|
63
63
|
)
|
|
64
64
|
|
|
65
65
|
events: str = field(
|
|
66
|
-
|
|
66
|
+
default_factory = lambda: str((Path.cwd() / 'app' / 'events').resolve()),
|
|
67
67
|
metadata = {
|
|
68
68
|
'description': 'Directory containing event classes.',
|
|
69
|
-
'default': str((Path.cwd() / 'app' / 'events').resolve())
|
|
69
|
+
'default': lambda: str((Path.cwd() / 'app' / 'events').resolve())
|
|
70
70
|
}
|
|
71
71
|
)
|
|
72
72
|
|
|
73
73
|
listeners: str = field(
|
|
74
|
-
|
|
74
|
+
default_factory = lambda: str((Path.cwd() / 'app' / 'listeners').resolve()),
|
|
75
75
|
metadata = {
|
|
76
76
|
'description': 'Directory containing event listener classes.',
|
|
77
|
-
'default': str((Path.cwd() / 'app' / 'listeners').resolve())
|
|
77
|
+
'default': lambda: str((Path.cwd() / 'app' / 'listeners').resolve())
|
|
78
78
|
}
|
|
79
79
|
)
|
|
80
80
|
|
|
81
81
|
notifications: str = field(
|
|
82
|
-
|
|
82
|
+
default_factory = lambda: str((Path.cwd() / 'app' / 'notifications').resolve()),
|
|
83
83
|
metadata = {
|
|
84
84
|
'description': 'Directory containing notification classes.',
|
|
85
|
-
'default': str((Path.cwd() / 'app' / 'notifications').resolve())
|
|
85
|
+
'default': lambda: str((Path.cwd() / 'app' / 'notifications').resolve())
|
|
86
86
|
}
|
|
87
87
|
)
|
|
88
88
|
|
|
89
89
|
jobs: str = field(
|
|
90
|
-
|
|
90
|
+
default_factory = lambda: str((Path.cwd() / 'app' / 'jobs').resolve()),
|
|
91
91
|
metadata = {
|
|
92
92
|
'description': 'Directory containing queued job classes.',
|
|
93
|
-
'default': str((Path.cwd() / 'app' / 'jobs').resolve())
|
|
93
|
+
'default': lambda: str((Path.cwd() / 'app' / 'jobs').resolve())
|
|
94
94
|
}
|
|
95
95
|
)
|
|
96
96
|
|
|
97
97
|
policies: str = field(
|
|
98
|
-
|
|
98
|
+
default_factory = lambda: str((Path.cwd() / 'app' / 'policies').resolve()),
|
|
99
99
|
metadata = {
|
|
100
100
|
'description': 'Directory containing authorization policy classes.',
|
|
101
|
-
'default': str((Path.cwd() / 'app' / 'policies').resolve())
|
|
101
|
+
'default': lambda: str((Path.cwd() / 'app' / 'policies').resolve())
|
|
102
102
|
}
|
|
103
103
|
)
|
|
104
104
|
|
|
105
105
|
exceptions: str = field(
|
|
106
|
-
|
|
106
|
+
default_factory = lambda: str((Path.cwd() / 'app' / 'exceptions').resolve()),
|
|
107
107
|
metadata = {
|
|
108
108
|
'description': 'Directory containing exception handler classes.',
|
|
109
|
-
'default': str((Path.cwd() / 'app' / 'exceptions').resolve())
|
|
109
|
+
'default': lambda: str((Path.cwd() / 'app' / 'exceptions').resolve())
|
|
110
110
|
}
|
|
111
111
|
)
|
|
112
112
|
|
|
113
113
|
services: str = field(
|
|
114
|
-
|
|
114
|
+
default_factory = lambda: str((Path.cwd() / 'app' / 'services').resolve()),
|
|
115
115
|
metadata = {
|
|
116
116
|
'description': 'Directory containing business logic service classes.',
|
|
117
|
-
'default': str((Path.cwd() / 'app' / 'services').resolve())
|
|
117
|
+
'default': lambda: str((Path.cwd() / 'app' / 'services').resolve())
|
|
118
118
|
}
|
|
119
119
|
)
|
|
120
120
|
|
|
121
121
|
views: str = field(
|
|
122
|
-
|
|
122
|
+
default_factory = lambda: str((Path.cwd() / 'resources' / 'views').resolve()),
|
|
123
123
|
metadata = {
|
|
124
124
|
'description': 'Directory containing template view files.',
|
|
125
|
-
'default': str((Path.cwd() / 'resources' / 'views').resolve())
|
|
125
|
+
'default': lambda: str((Path.cwd() / 'resources' / 'views').resolve())
|
|
126
126
|
}
|
|
127
127
|
)
|
|
128
128
|
|
|
129
129
|
lang: str = field(
|
|
130
|
-
|
|
130
|
+
default_factory = lambda: str((Path.cwd() / 'resources' / 'lang').resolve()),
|
|
131
131
|
metadata = {
|
|
132
132
|
'description': 'Directory containing internationalization files.',
|
|
133
|
-
'default': str((Path.cwd() / 'resources' / 'lang').resolve())
|
|
133
|
+
'default': lambda: str((Path.cwd() / 'resources' / 'lang').resolve())
|
|
134
134
|
}
|
|
135
135
|
)
|
|
136
136
|
|
|
137
137
|
assets: str = field(
|
|
138
|
-
|
|
138
|
+
default_factory = lambda: str((Path.cwd() / 'resources' / 'assets').resolve()),
|
|
139
139
|
metadata = {
|
|
140
140
|
'description': 'Directory containing frontend assets (JS, CSS, images).',
|
|
141
|
-
'default': str((Path.cwd() / 'resources' / 'assets').resolve())
|
|
141
|
+
'default': lambda: str((Path.cwd() / 'resources' / 'assets').resolve())
|
|
142
142
|
}
|
|
143
143
|
)
|
|
144
144
|
|
|
145
145
|
routes_web: str = field(
|
|
146
|
-
|
|
146
|
+
default_factory = lambda: str((Path.cwd() / 'routes' / 'web.py').resolve()),
|
|
147
147
|
metadata = {
|
|
148
148
|
'description': 'Path to the web routes definition file.',
|
|
149
|
-
'default': str((Path.cwd() / 'routes' / 'web.py').resolve())
|
|
149
|
+
'default': lambda: str((Path.cwd() / 'routes' / 'web.py').resolve())
|
|
150
150
|
}
|
|
151
151
|
)
|
|
152
152
|
|
|
153
153
|
routes_api: str = field(
|
|
154
|
-
|
|
154
|
+
default_factory = lambda: str((Path.cwd() / 'routes' / 'api.py').resolve()),
|
|
155
155
|
metadata = {
|
|
156
156
|
'description': 'Path to the API routes definition file.',
|
|
157
|
-
'default': str((Path.cwd() / 'routes' / 'api.py').resolve())
|
|
157
|
+
'default': lambda: str((Path.cwd() / 'routes' / 'api.py').resolve())
|
|
158
158
|
}
|
|
159
159
|
)
|
|
160
160
|
|
|
161
161
|
routes_console: str = field(
|
|
162
|
-
|
|
162
|
+
default_factory = lambda: str((Path.cwd() / 'routes' / 'console.py').resolve()),
|
|
163
163
|
metadata = {
|
|
164
164
|
'description': 'Path to the console routes definition file.',
|
|
165
|
-
'default': str((Path.cwd() / 'routes' / 'console.py').resolve())
|
|
165
|
+
'default': lambda: str((Path.cwd() / 'routes' / 'console.py').resolve())
|
|
166
166
|
}
|
|
167
167
|
)
|
|
168
168
|
|
|
169
169
|
routes_channels: str = field(
|
|
170
|
-
|
|
170
|
+
default_factory = lambda: str((Path.cwd() / 'routes' / 'channels.py').resolve()),
|
|
171
171
|
metadata = {
|
|
172
172
|
'description': 'Path to the broadcast channels routes file.',
|
|
173
|
-
'default': str((Path.cwd() / 'routes' / 'channels.py').resolve())
|
|
173
|
+
'default': lambda: str((Path.cwd() / 'routes' / 'channels.py').resolve())
|
|
174
174
|
}
|
|
175
175
|
)
|
|
176
176
|
|
|
177
177
|
config: str = field(
|
|
178
|
-
|
|
178
|
+
default_factory = lambda: str((Path.cwd() / 'config').resolve()),
|
|
179
179
|
metadata = {
|
|
180
180
|
'description': 'Directory containing application configuration files.',
|
|
181
|
-
'default': str((Path.cwd() / 'config').resolve())
|
|
181
|
+
'default': lambda: str((Path.cwd() / 'config').resolve())
|
|
182
182
|
}
|
|
183
183
|
)
|
|
184
184
|
|
|
185
185
|
migrations: str = field(
|
|
186
|
-
|
|
186
|
+
default_factory = lambda: str((Path.cwd() / 'database' / 'migrations').resolve()),
|
|
187
187
|
metadata = {
|
|
188
188
|
'description': 'Directory containing database migration files.',
|
|
189
|
-
'default': str((Path.cwd() / 'database' / 'migrations').resolve())
|
|
189
|
+
'default': lambda: str((Path.cwd() / 'database' / 'migrations').resolve())
|
|
190
190
|
}
|
|
191
191
|
)
|
|
192
192
|
|
|
193
193
|
seeders: str = field(
|
|
194
|
-
|
|
194
|
+
default_factory = lambda: str((Path.cwd() / 'database' / 'seeders').resolve()),
|
|
195
195
|
metadata = {
|
|
196
196
|
'description': 'Directory containing database seeder files.',
|
|
197
|
-
'default': str((Path.cwd() / 'database' / 'seeders').resolve())
|
|
197
|
+
'default': lambda: str((Path.cwd() / 'database' / 'seeders').resolve())
|
|
198
198
|
}
|
|
199
199
|
)
|
|
200
200
|
|
|
201
201
|
factories: str = field(
|
|
202
|
-
|
|
202
|
+
default_factory = lambda: str((Path.cwd() / 'database' / 'factories').resolve()),
|
|
203
203
|
metadata = {
|
|
204
204
|
'description': 'Directory containing model factory files.',
|
|
205
|
-
'default': str((Path.cwd() / 'database' / 'factories').resolve())
|
|
205
|
+
'default': lambda: str((Path.cwd() / 'database' / 'factories').resolve())
|
|
206
206
|
}
|
|
207
207
|
)
|
|
208
208
|
|
|
209
209
|
storage_logs: str = field(
|
|
210
|
-
|
|
210
|
+
default_factory = lambda: str((Path.cwd() / 'storage' / 'logs').resolve()),
|
|
211
211
|
metadata = {
|
|
212
212
|
'description': 'Directory containing application log files.',
|
|
213
|
-
'default': str((Path.cwd() / 'storage' / 'logs').resolve())
|
|
213
|
+
'default': lambda: str((Path.cwd() / 'storage' / 'logs').resolve())
|
|
214
214
|
}
|
|
215
215
|
)
|
|
216
216
|
|
|
217
217
|
storage_framework: str = field(
|
|
218
|
-
|
|
218
|
+
default_factory = lambda: str((Path.cwd() / 'storage' / 'framework').resolve()),
|
|
219
219
|
metadata = {
|
|
220
220
|
'description': 'Directory for framework-generated files (cache, sessions, views).',
|
|
221
|
-
'default': str((Path.cwd() / 'storage' / 'framework').resolve())
|
|
221
|
+
'default': lambda: str((Path.cwd() / 'storage' / 'framework').resolve())
|
|
222
222
|
}
|
|
223
223
|
)
|
|
224
224
|
|
|
225
225
|
storage_sessions: str = field(
|
|
226
|
-
|
|
226
|
+
default_factory = lambda: str((Path.cwd() / 'storage' / 'framework' / 'sessions').resolve()),
|
|
227
227
|
metadata = {
|
|
228
228
|
'description': 'Directory containing session files.',
|
|
229
|
-
'default': str((Path.cwd() / 'storage' / 'framework' / 'sessions').resolve())
|
|
229
|
+
'default': lambda: str((Path.cwd() / 'storage' / 'framework' / 'sessions').resolve())
|
|
230
230
|
}
|
|
231
231
|
)
|
|
232
232
|
|
|
233
233
|
storage_cache: str = field(
|
|
234
|
-
|
|
234
|
+
default_factory = lambda: str((Path.cwd() / 'storage' / 'framework' / 'cache').resolve()),
|
|
235
235
|
metadata = {
|
|
236
236
|
'description': 'Directory containing framework cache files.',
|
|
237
|
-
'default': str((Path.cwd() / 'storage' / 'framework' / 'cache').resolve())
|
|
237
|
+
'default': lambda: str((Path.cwd() / 'storage' / 'framework' / 'cache').resolve())
|
|
238
238
|
}
|
|
239
239
|
)
|
|
240
240
|
|
|
241
241
|
storage_views: str = field(
|
|
242
|
-
|
|
242
|
+
default_factory = lambda: str((Path.cwd() / 'storage' / 'framework' / 'views').resolve()),
|
|
243
243
|
metadata = {
|
|
244
244
|
'description': 'Directory containing compiled view files.',
|
|
245
|
-
'default': str((Path.cwd() / 'storage' / 'framework' / 'views').resolve())
|
|
245
|
+
'default': lambda: str((Path.cwd() / 'storage' / 'framework' / 'views').resolve())
|
|
246
246
|
}
|
|
247
247
|
)
|
|
248
248
|
|
|
249
249
|
storage_testing: str = field(
|
|
250
|
-
|
|
250
|
+
default_factory = lambda: str((Path.cwd() / 'storage' / 'framework' / 'testing').resolve()),
|
|
251
251
|
metadata = {
|
|
252
252
|
'description': 'Directory containing compiled view files.',
|
|
253
|
-
'default': str((Path.cwd() / 'storage' / 'framework' / 'testing').resolve())
|
|
253
|
+
'default': lambda: str((Path.cwd() / 'storage' / 'framework' / 'testing').resolve())
|
|
254
254
|
}
|
|
255
255
|
)
|
|
256
256
|
|
|
257
257
|
|
|
258
258
|
def __post_init__(self) -> None:
|
|
259
|
+
super().__post_init__()
|
|
259
260
|
"""
|
|
260
261
|
Ensures all path attributes are of type str.
|
|
261
262
|
|
|
@@ -22,15 +22,15 @@ class Session(BaseEntity):
|
|
|
22
22
|
"""
|
|
23
23
|
|
|
24
24
|
secret_key: str = field(
|
|
25
|
-
|
|
25
|
+
default_factory = lambda: Env.get('APP_KEY', SecretKey.random()),
|
|
26
26
|
metadata = {
|
|
27
27
|
"description": "Secret key for signing session cookies (required).",
|
|
28
|
-
"default": SecretKey.random()
|
|
28
|
+
"default": lambda: SecretKey.random()
|
|
29
29
|
}
|
|
30
30
|
)
|
|
31
31
|
|
|
32
32
|
session_cookie: str = field(
|
|
33
|
-
|
|
33
|
+
default_factory = lambda: Env.get('SESSION_COOKIE_NAME', 'orionis_session'),
|
|
34
34
|
metadata = {
|
|
35
35
|
"description": "Name of the session cookie.",
|
|
36
36
|
"default": 'orionis_session'
|
|
@@ -38,7 +38,7 @@ class Session(BaseEntity):
|
|
|
38
38
|
)
|
|
39
39
|
|
|
40
40
|
max_age: Optional[int] = field(
|
|
41
|
-
|
|
41
|
+
default_factory = lambda: Env.get('SESSION_MAX_AGE', 30 * 60),
|
|
42
42
|
metadata = {
|
|
43
43
|
"description": "Session expiration in seconds. None for browser session.",
|
|
44
44
|
"default": 30 * 60
|
|
@@ -46,7 +46,7 @@ class Session(BaseEntity):
|
|
|
46
46
|
)
|
|
47
47
|
|
|
48
48
|
same_site: str | SameSitePolicy = field(
|
|
49
|
-
|
|
49
|
+
default_factory = lambda: Env.get('SESSION_SAME_SITE', SameSitePolicy.LAX.value),
|
|
50
50
|
metadata = {
|
|
51
51
|
"description": "SameSite cookie policy.",
|
|
52
52
|
"default": SameSitePolicy.LAX.value
|
|
@@ -54,7 +54,7 @@ class Session(BaseEntity):
|
|
|
54
54
|
)
|
|
55
55
|
|
|
56
56
|
path: str = field(
|
|
57
|
-
|
|
57
|
+
default_factory = lambda: Env.get('SESSION_PATH', '/'),
|
|
58
58
|
metadata = {
|
|
59
59
|
"description": "Cookie path.",
|
|
60
60
|
"default": "/"
|
|
@@ -62,7 +62,7 @@ class Session(BaseEntity):
|
|
|
62
62
|
)
|
|
63
63
|
|
|
64
64
|
https_only: bool = field(
|
|
65
|
-
|
|
65
|
+
default_factory = lambda: Env.get('SESSION_HTTPS_ONLY', False),
|
|
66
66
|
metadata = {
|
|
67
67
|
"description": "Restrict cookies to HTTPS.",
|
|
68
68
|
"default": False
|
|
@@ -70,7 +70,7 @@ class Session(BaseEntity):
|
|
|
70
70
|
)
|
|
71
71
|
|
|
72
72
|
domain: Optional[str] = field(
|
|
73
|
-
|
|
73
|
+
default_factory = lambda: Env.get('SESSION_DOMAIN'),
|
|
74
74
|
metadata = {
|
|
75
75
|
"description": "Cookie domain for cross-subdomain usage.",
|
|
76
76
|
"default": None
|
|
@@ -78,6 +78,7 @@ class Session(BaseEntity):
|
|
|
78
78
|
)
|
|
79
79
|
|
|
80
80
|
def __post_init__(self):
|
|
81
|
+
super().__post_init__()
|
|
81
82
|
"""
|
|
82
83
|
Validates the initialization parameters of the session entity.
|
|
83
84
|
Raises:
|
|
@@ -56,7 +56,7 @@ class Configuration(BaseEntity):
|
|
|
56
56
|
default_factory = lambda: App(),
|
|
57
57
|
metadata = {
|
|
58
58
|
"description": "Application configuration settings.",
|
|
59
|
-
"default": App().toDict()
|
|
59
|
+
"default": lambda: App().toDict()
|
|
60
60
|
}
|
|
61
61
|
)
|
|
62
62
|
|
|
@@ -64,7 +64,7 @@ class Configuration(BaseEntity):
|
|
|
64
64
|
default_factory = lambda: Auth(),
|
|
65
65
|
metadata = {
|
|
66
66
|
"description": "Authentication configuration settings.",
|
|
67
|
-
"default": Auth().toDict()
|
|
67
|
+
"default": lambda: Auth().toDict()
|
|
68
68
|
}
|
|
69
69
|
)
|
|
70
70
|
|
|
@@ -72,7 +72,7 @@ class Configuration(BaseEntity):
|
|
|
72
72
|
default_factory = lambda: Cache(),
|
|
73
73
|
metadata = {
|
|
74
74
|
"description": "Cache configuration settings.",
|
|
75
|
-
"default": Cache().toDict()
|
|
75
|
+
"default": lambda: Cache().toDict()
|
|
76
76
|
}
|
|
77
77
|
)
|
|
78
78
|
|
|
@@ -80,7 +80,7 @@ class Configuration(BaseEntity):
|
|
|
80
80
|
default_factory = lambda: Cors(),
|
|
81
81
|
metadata = {
|
|
82
82
|
"description": "CORS configuration settings.",
|
|
83
|
-
"default": Cors().toDict()
|
|
83
|
+
"default": lambda: Cors().toDict()
|
|
84
84
|
}
|
|
85
85
|
)
|
|
86
86
|
|
|
@@ -88,7 +88,7 @@ class Configuration(BaseEntity):
|
|
|
88
88
|
default_factory = lambda: Database(),
|
|
89
89
|
metadata = {
|
|
90
90
|
"description": "Database configuration settings.",
|
|
91
|
-
"default": Database().toDict()
|
|
91
|
+
"default": lambda: Database().toDict()
|
|
92
92
|
}
|
|
93
93
|
)
|
|
94
94
|
|
|
@@ -96,7 +96,7 @@ class Configuration(BaseEntity):
|
|
|
96
96
|
default_factory = lambda: Filesystems(),
|
|
97
97
|
metadata = {
|
|
98
98
|
"description": "Filesystem configuration settings.",
|
|
99
|
-
"default": Filesystems().toDict()
|
|
99
|
+
"default": lambda: Filesystems().toDict()
|
|
100
100
|
}
|
|
101
101
|
)
|
|
102
102
|
|
|
@@ -104,7 +104,7 @@ class Configuration(BaseEntity):
|
|
|
104
104
|
default_factory = lambda: Logging(),
|
|
105
105
|
metadata = {
|
|
106
106
|
"description": "Logging configuration settings.",
|
|
107
|
-
"default": Logging().toDict()
|
|
107
|
+
"default": lambda: Logging().toDict()
|
|
108
108
|
}
|
|
109
109
|
)
|
|
110
110
|
|
|
@@ -112,7 +112,7 @@ class Configuration(BaseEntity):
|
|
|
112
112
|
default_factory = lambda: Mail(),
|
|
113
113
|
metadata = {
|
|
114
114
|
"description": "Mail configuration settings.",
|
|
115
|
-
"default": Mail().toDict()
|
|
115
|
+
"default": lambda: Mail().toDict()
|
|
116
116
|
}
|
|
117
117
|
)
|
|
118
118
|
|
|
@@ -120,7 +120,7 @@ class Configuration(BaseEntity):
|
|
|
120
120
|
default_factory = lambda: Paths(),
|
|
121
121
|
metadata={
|
|
122
122
|
"description": "Path configuration settings.",
|
|
123
|
-
"default": Paths().toDict()
|
|
123
|
+
"default": lambda: Paths().toDict()
|
|
124
124
|
}
|
|
125
125
|
)
|
|
126
126
|
|
|
@@ -128,7 +128,7 @@ class Configuration(BaseEntity):
|
|
|
128
128
|
default_factory = lambda: Queue(),
|
|
129
129
|
metadata = {
|
|
130
130
|
"description": "Queue configuration settings.",
|
|
131
|
-
"default": Queue().toDict()
|
|
131
|
+
"default": lambda: Queue().toDict()
|
|
132
132
|
}
|
|
133
133
|
)
|
|
134
134
|
|
|
@@ -136,7 +136,7 @@ class Configuration(BaseEntity):
|
|
|
136
136
|
default_factory = lambda: Session(),
|
|
137
137
|
metadata = {
|
|
138
138
|
"description": "Session configuration settings.",
|
|
139
|
-
"default": Session().toDict()
|
|
139
|
+
"default": lambda: Session().toDict()
|
|
140
140
|
}
|
|
141
141
|
)
|
|
142
142
|
|
|
@@ -144,11 +144,12 @@ class Configuration(BaseEntity):
|
|
|
144
144
|
default_factory = lambda: Testing(),
|
|
145
145
|
metadata = {
|
|
146
146
|
"description": "Testing configuration settings.",
|
|
147
|
-
"default": Testing().toDict()
|
|
147
|
+
"default": lambda: Testing().toDict()
|
|
148
148
|
}
|
|
149
149
|
)
|
|
150
150
|
|
|
151
151
|
def __post_init__(self):
|
|
152
|
+
super().__post_init__()
|
|
152
153
|
"""
|
|
153
154
|
Validates and converts configuration attributes to their respective entity types.
|
|
154
155
|
|