orionis 0.583.0__py3-none-any.whl → 0.585.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/console/core/reactor.py +4 -18
- orionis/container/facades/facade.py +2 -3
- orionis/foundation/application.py +181 -319
- orionis/foundation/config/roots/paths.py +40 -140
- orionis/foundation/contracts/application.py +742 -401
- orionis/metadata/framework.py +1 -1
- orionis/services/file/contracts/directory.py +43 -199
- orionis/services/file/directory.py +58 -197
- {orionis-0.583.0.dist-info → orionis-0.585.0.dist-info}/METADATA +1 -1
- {orionis-0.583.0.dist-info → orionis-0.585.0.dist-info}/RECORD +13 -14
- orionis/app.py +0 -17
- {orionis-0.583.0.dist-info → orionis-0.585.0.dist-info}/WHEEL +0 -0
- {orionis-0.583.0.dist-info → orionis-0.585.0.dist-info}/licenses/LICENCE +0 -0
- {orionis-0.583.0.dist-info → orionis-0.585.0.dist-info}/top_level.txt +0 -0
orionis/metadata/framework.py
CHANGED
@@ -6,359 +6,203 @@ class IDirectory(ABC):
|
|
6
6
|
@abstractmethod
|
7
7
|
def root(self) -> Path:
|
8
8
|
"""
|
9
|
-
Get the root directory
|
9
|
+
Get the root directory of the application.
|
10
10
|
|
11
11
|
Returns
|
12
12
|
-------
|
13
13
|
Path
|
14
|
-
|
14
|
+
Path object representing the root directory.
|
15
15
|
"""
|
16
16
|
pass
|
17
17
|
|
18
18
|
@abstractmethod
|
19
|
-
def
|
20
|
-
"""
|
21
|
-
Get the console directory path.
|
22
|
-
|
23
|
-
Returns
|
24
|
-
-------
|
25
|
-
Path
|
26
|
-
The path to the console directory.
|
27
|
-
"""
|
28
|
-
pass
|
29
|
-
|
30
|
-
@abstractmethod
|
31
|
-
def consoleCommands(self) -> Path:
|
32
|
-
"""
|
33
|
-
Get the console commands directory path.
|
34
|
-
|
35
|
-
Returns
|
36
|
-
-------
|
37
|
-
Path
|
38
|
-
The path to the console commands directory.
|
39
|
-
"""
|
40
|
-
pass
|
41
|
-
|
42
|
-
@abstractmethod
|
43
|
-
def consoleListeners(self) -> Path:
|
19
|
+
def app(self) -> Path:
|
44
20
|
"""
|
45
|
-
Get the
|
21
|
+
Get the main application directory.
|
46
22
|
|
47
23
|
Returns
|
48
24
|
-------
|
49
25
|
Path
|
50
|
-
|
26
|
+
Path object representing the application directory.
|
51
27
|
"""
|
52
28
|
pass
|
53
29
|
|
54
30
|
@abstractmethod
|
55
|
-
def
|
31
|
+
def console(self) -> Path:
|
56
32
|
"""
|
57
|
-
Get the
|
33
|
+
Get the console directory.
|
58
34
|
|
59
35
|
Returns
|
60
36
|
-------
|
61
37
|
Path
|
62
|
-
|
38
|
+
Path object representing the console directory.
|
63
39
|
"""
|
64
40
|
pass
|
65
41
|
|
66
42
|
@abstractmethod
|
67
|
-
def
|
43
|
+
def exceptions(self) -> Path:
|
68
44
|
"""
|
69
|
-
Get the
|
45
|
+
Get the exceptions directory.
|
70
46
|
|
71
47
|
Returns
|
72
48
|
-------
|
73
49
|
Path
|
74
|
-
|
50
|
+
Path object representing the exceptions directory.
|
75
51
|
"""
|
76
52
|
pass
|
77
53
|
|
78
54
|
@abstractmethod
|
79
|
-
def
|
55
|
+
def http(self) -> Path:
|
80
56
|
"""
|
81
|
-
Get the
|
57
|
+
Get the HTTP directory.
|
82
58
|
|
83
59
|
Returns
|
84
60
|
-------
|
85
61
|
Path
|
86
|
-
|
62
|
+
Path object representing the HTTP directory.
|
87
63
|
"""
|
88
64
|
pass
|
89
65
|
|
90
66
|
@abstractmethod
|
91
67
|
def models(self) -> Path:
|
92
68
|
"""
|
93
|
-
Get the models directory
|
69
|
+
Get the models directory.
|
94
70
|
|
95
71
|
Returns
|
96
72
|
-------
|
97
73
|
Path
|
98
|
-
|
74
|
+
Path object representing the models directory.
|
99
75
|
"""
|
100
76
|
pass
|
101
77
|
|
102
78
|
@abstractmethod
|
103
79
|
def providers(self) -> Path:
|
104
80
|
"""
|
105
|
-
Get the providers directory
|
106
|
-
|
107
|
-
Returns
|
108
|
-
-------
|
109
|
-
Path
|
110
|
-
The path to the providers directory.
|
111
|
-
"""
|
112
|
-
pass
|
113
|
-
|
114
|
-
@abstractmethod
|
115
|
-
def events(self) -> Path:
|
116
|
-
"""
|
117
|
-
Get the events directory path.
|
81
|
+
Get the providers directory.
|
118
82
|
|
119
83
|
Returns
|
120
84
|
-------
|
121
85
|
Path
|
122
|
-
|
123
|
-
"""
|
124
|
-
pass
|
125
|
-
|
126
|
-
@abstractmethod
|
127
|
-
def listeners(self) -> Path:
|
128
|
-
"""
|
129
|
-
Get the listeners directory path.
|
130
|
-
|
131
|
-
Returns
|
132
|
-
-------
|
133
|
-
Path
|
134
|
-
The path to the listeners directory.
|
86
|
+
Path object representing the providers directory.
|
135
87
|
"""
|
136
88
|
pass
|
137
89
|
|
138
90
|
@abstractmethod
|
139
91
|
def notifications(self) -> Path:
|
140
92
|
"""
|
141
|
-
Get the notifications directory
|
93
|
+
Get the notifications directory.
|
142
94
|
|
143
95
|
Returns
|
144
96
|
-------
|
145
97
|
Path
|
146
|
-
|
147
|
-
"""
|
148
|
-
pass
|
149
|
-
|
150
|
-
@abstractmethod
|
151
|
-
def jobs(self) -> Path:
|
152
|
-
"""
|
153
|
-
Get the jobs directory path.
|
154
|
-
|
155
|
-
Returns
|
156
|
-
-------
|
157
|
-
Path
|
158
|
-
The path to the jobs directory.
|
159
|
-
"""
|
160
|
-
pass
|
161
|
-
|
162
|
-
@abstractmethod
|
163
|
-
def policies(self) -> Path:
|
164
|
-
"""
|
165
|
-
Get the policies directory path.
|
166
|
-
|
167
|
-
Returns
|
168
|
-
-------
|
169
|
-
Path
|
170
|
-
The path to the policies directory.
|
171
|
-
"""
|
172
|
-
pass
|
173
|
-
|
174
|
-
@abstractmethod
|
175
|
-
def exceptions(self) -> Path:
|
176
|
-
"""
|
177
|
-
Get the exceptions directory path.
|
178
|
-
|
179
|
-
Returns
|
180
|
-
-------
|
181
|
-
Path
|
182
|
-
The path to the exceptions directory.
|
98
|
+
Path object representing the notifications directory.
|
183
99
|
"""
|
184
100
|
pass
|
185
101
|
|
186
102
|
@abstractmethod
|
187
103
|
def services(self) -> Path:
|
188
104
|
"""
|
189
|
-
Get the services directory
|
190
|
-
|
191
|
-
Returns
|
192
|
-
-------
|
193
|
-
Path
|
194
|
-
The path to the services directory.
|
195
|
-
"""
|
196
|
-
pass
|
197
|
-
|
198
|
-
@abstractmethod
|
199
|
-
def views(self) -> Path:
|
200
|
-
"""
|
201
|
-
Get the views directory path.
|
105
|
+
Get the services directory.
|
202
106
|
|
203
107
|
Returns
|
204
108
|
-------
|
205
109
|
Path
|
206
|
-
|
110
|
+
Path object representing the services directory.
|
207
111
|
"""
|
208
112
|
pass
|
209
113
|
|
210
114
|
@abstractmethod
|
211
|
-
def
|
212
|
-
"""
|
213
|
-
Get the language files directory path.
|
214
|
-
|
215
|
-
Returns
|
216
|
-
-------
|
217
|
-
Path
|
218
|
-
The path to the language files directory.
|
219
|
-
"""
|
220
|
-
pass
|
221
|
-
|
222
|
-
@abstractmethod
|
223
|
-
def assets(self) -> Path:
|
115
|
+
def jobs(self) -> Path:
|
224
116
|
"""
|
225
|
-
Get the
|
117
|
+
Get the jobs directory.
|
226
118
|
|
227
119
|
Returns
|
228
120
|
-------
|
229
121
|
Path
|
230
|
-
|
122
|
+
Path object representing the jobs directory.
|
231
123
|
"""
|
232
124
|
pass
|
233
125
|
|
234
126
|
@abstractmethod
|
235
|
-
def
|
127
|
+
def bootstrap(self) -> Path:
|
236
128
|
"""
|
237
|
-
Get the
|
129
|
+
Get the bootstrap directory.
|
238
130
|
|
239
131
|
Returns
|
240
132
|
-------
|
241
133
|
Path
|
242
|
-
|
134
|
+
Path object representing the bootstrap directory.
|
243
135
|
"""
|
244
136
|
pass
|
245
137
|
|
246
138
|
@abstractmethod
|
247
139
|
def config(self) -> Path:
|
248
140
|
"""
|
249
|
-
Get the configuration directory
|
250
|
-
|
251
|
-
Returns
|
252
|
-
-------
|
253
|
-
Path
|
254
|
-
The path to the configuration directory.
|
255
|
-
"""
|
256
|
-
pass
|
257
|
-
|
258
|
-
@abstractmethod
|
259
|
-
def migrations(self) -> Path:
|
260
|
-
"""
|
261
|
-
Get the migrations directory path.
|
262
|
-
|
263
|
-
Returns
|
264
|
-
-------
|
265
|
-
Path
|
266
|
-
The path to the migrations directory.
|
267
|
-
"""
|
268
|
-
pass
|
269
|
-
|
270
|
-
@abstractmethod
|
271
|
-
def seeders(self) -> Path:
|
272
|
-
"""
|
273
|
-
Get the seeders directory path.
|
141
|
+
Get the configuration directory.
|
274
142
|
|
275
143
|
Returns
|
276
144
|
-------
|
277
145
|
Path
|
278
|
-
|
146
|
+
Path object representing the configuration directory.
|
279
147
|
"""
|
280
148
|
pass
|
281
149
|
|
282
150
|
@abstractmethod
|
283
|
-
def
|
151
|
+
def database(self) -> Path:
|
284
152
|
"""
|
285
|
-
Get the
|
153
|
+
Get the database directory.
|
286
154
|
|
287
155
|
Returns
|
288
156
|
-------
|
289
157
|
Path
|
290
|
-
|
158
|
+
Path object representing the database directory.
|
291
159
|
"""
|
292
160
|
pass
|
293
161
|
|
294
162
|
@abstractmethod
|
295
|
-
def
|
163
|
+
def resources(self) -> Path:
|
296
164
|
"""
|
297
|
-
Get the
|
165
|
+
Get the resources directory.
|
298
166
|
|
299
167
|
Returns
|
300
168
|
-------
|
301
169
|
Path
|
302
|
-
|
170
|
+
Path object representing the resources directory.
|
303
171
|
"""
|
304
172
|
pass
|
305
173
|
|
306
174
|
@abstractmethod
|
307
|
-
def
|
308
|
-
"""
|
309
|
-
Get the sessions directory path.
|
310
|
-
|
311
|
-
Returns
|
312
|
-
-------
|
313
|
-
Path
|
314
|
-
The path to the sessions directory.
|
315
|
-
"""
|
316
|
-
pass
|
317
|
-
|
318
|
-
@abstractmethod
|
319
|
-
def cache(self) -> Path:
|
320
|
-
"""
|
321
|
-
Get the cache directory path.
|
322
|
-
|
323
|
-
Returns
|
324
|
-
-------
|
325
|
-
Path
|
326
|
-
The path to the cache directory.
|
327
|
-
"""
|
328
|
-
pass
|
329
|
-
|
330
|
-
@abstractmethod
|
331
|
-
def testing(self) -> Path:
|
175
|
+
def routes(self) -> Path:
|
332
176
|
"""
|
333
|
-
Get the
|
177
|
+
Get the routes directory.
|
334
178
|
|
335
179
|
Returns
|
336
180
|
-------
|
337
181
|
Path
|
338
|
-
|
182
|
+
Path object representing the routes directory.
|
339
183
|
"""
|
340
184
|
pass
|
341
185
|
|
342
186
|
@abstractmethod
|
343
187
|
def storage(self) -> Path:
|
344
188
|
"""
|
345
|
-
Get the storage directory
|
189
|
+
Get the storage directory.
|
346
190
|
|
347
191
|
Returns
|
348
192
|
-------
|
349
193
|
Path
|
350
|
-
|
194
|
+
Path object representing the storage directory.
|
351
195
|
"""
|
352
196
|
pass
|
353
197
|
|
354
198
|
@abstractmethod
|
355
199
|
def tests(self) -> Path:
|
356
200
|
"""
|
357
|
-
Get the tests directory
|
201
|
+
Get the tests directory.
|
358
202
|
|
359
203
|
Returns
|
360
204
|
-------
|
361
205
|
Path
|
362
|
-
|
206
|
+
Path object representing the tests directory.
|
363
207
|
"""
|
364
208
|
pass
|