orionis 0.529.0__py3-none-any.whl → 0.530.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 +3 -1
- orionis/foundation/application.py +2 -2
- orionis/foundation/config/roots/paths.py +3 -12
- orionis/metadata/framework.py +1 -1
- orionis/services/file/contracts/directory.py +3 -3
- orionis/services/file/directory.py +4 -4
- {orionis-0.529.0.dist-info → orionis-0.530.0.dist-info}/METADATA +1 -1
- {orionis-0.529.0.dist-info → orionis-0.530.0.dist-info}/RECORD +13 -13
- tests/foundation/config/root/test_foundation_config_root_paths.py +1 -1
- {orionis-0.529.0.dist-info → orionis-0.530.0.dist-info}/WHEEL +0 -0
- {orionis-0.529.0.dist-info → orionis-0.530.0.dist-info}/licenses/LICENCE +0 -0
- {orionis-0.529.0.dist-info → orionis-0.530.0.dist-info}/top_level.txt +0 -0
- {orionis-0.529.0.dist-info → orionis-0.530.0.dist-info}/zip-safe +0 -0
orionis/console/core/reactor.py
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import argparse
|
|
2
2
|
import os
|
|
3
|
+
from pathlib import Path
|
|
3
4
|
import re
|
|
4
5
|
from typing import Any, List, Optional
|
|
5
6
|
from orionis.console.args.argument import CLIArgument
|
|
@@ -64,7 +65,8 @@ class Reactor(IReactor):
|
|
|
64
65
|
self.__commands: dict[str, Command] = {}
|
|
65
66
|
|
|
66
67
|
# Automatically discover and load command classes from the console commands directory
|
|
67
|
-
|
|
68
|
+
cli_commands_path = (Path(self.__app.path('console')) / 'commands').resolve()
|
|
69
|
+
self.__loadCommands(cli_commands_path, self.__root)
|
|
68
70
|
|
|
69
71
|
# Load core command classes provided by the Orionis framework
|
|
70
72
|
self.__loadCoreCommands()
|
|
@@ -1423,7 +1423,7 @@ class Application(Container, IApplication):
|
|
|
1423
1423
|
def setPaths(
|
|
1424
1424
|
self,
|
|
1425
1425
|
*,
|
|
1426
|
-
|
|
1426
|
+
console: str | Path = (Path.cwd() / 'app' / 'console').resolve(),
|
|
1427
1427
|
controllers: str | Path = (Path.cwd() / 'app' / 'http' / 'controllers').resolve(),
|
|
1428
1428
|
middleware: str | Path = (Path.cwd() / 'app' / 'http' / 'middleware').resolve(),
|
|
1429
1429
|
requests: str | Path = (Path.cwd() / 'app' / 'http' / 'requests').resolve(),
|
|
@@ -1527,7 +1527,7 @@ class Application(Container, IApplication):
|
|
|
1527
1527
|
# Ensure 'paths' exists in configurators
|
|
1528
1528
|
self.__configurators['path'] = {
|
|
1529
1529
|
'root' : self.__bootstrap_base_path or str(Path.cwd().resolve()),
|
|
1530
|
-
'
|
|
1530
|
+
'console' : str(console),
|
|
1531
1531
|
'controllers' : str(controllers),
|
|
1532
1532
|
'middleware' : str(middleware),
|
|
1533
1533
|
'requests' : str(requests),
|
|
@@ -14,23 +14,14 @@ class Paths(BaseEntity):
|
|
|
14
14
|
}
|
|
15
15
|
)
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
default_factory = lambda: str((Path.cwd() / 'app' / 'console'
|
|
17
|
+
console: str = field(
|
|
18
|
+
default_factory = lambda: str((Path.cwd() / 'app' / 'console').resolve()),
|
|
19
19
|
metadata = {
|
|
20
20
|
'description': 'Directory containing subfolders for console commands and scheduler.py.',
|
|
21
|
-
'default': lambda: str((Path.cwd() / 'app' / 'console'
|
|
21
|
+
'default': lambda: str((Path.cwd() / 'app' / 'console').resolve())
|
|
22
22
|
}
|
|
23
23
|
)
|
|
24
24
|
|
|
25
|
-
commands: str = field(
|
|
26
|
-
default_factory = lambda: str((Path.cwd() / 'app' / 'console' / 'commands').resolve()),
|
|
27
|
-
metadata = {
|
|
28
|
-
'description': 'Directory containing subfolders for console commands and scheduler.py.',
|
|
29
|
-
'default': lambda: str((Path.cwd() / 'app' / 'console' / 'commands').resolve())
|
|
30
|
-
}
|
|
31
|
-
)
|
|
32
|
-
|
|
33
|
-
|
|
34
25
|
controllers: str = field(
|
|
35
26
|
default_factory = lambda: str((Path.cwd() / 'app' / 'http' / 'controllers').resolve()),
|
|
36
27
|
metadata = {
|
orionis/metadata/framework.py
CHANGED
|
@@ -17,14 +17,14 @@ class IDirectory(ABC):
|
|
|
17
17
|
pass
|
|
18
18
|
|
|
19
19
|
@abstractmethod
|
|
20
|
-
def
|
|
20
|
+
def console(self) -> Path:
|
|
21
21
|
"""
|
|
22
|
-
Get the
|
|
22
|
+
Get the console directory path.
|
|
23
23
|
|
|
24
24
|
Returns
|
|
25
25
|
-------
|
|
26
26
|
Path
|
|
27
|
-
The path to the
|
|
27
|
+
The path to the console directory.
|
|
28
28
|
"""
|
|
29
29
|
pass
|
|
30
30
|
|
|
@@ -37,16 +37,16 @@ class Directory(IDirectory):
|
|
|
37
37
|
"""
|
|
38
38
|
return Path(self.__app.path('root'))
|
|
39
39
|
|
|
40
|
-
def
|
|
40
|
+
def console(self) -> Path:
|
|
41
41
|
"""
|
|
42
|
-
Get the
|
|
42
|
+
Get the console directory path.
|
|
43
43
|
|
|
44
44
|
Returns
|
|
45
45
|
-------
|
|
46
46
|
Path
|
|
47
|
-
The path to the
|
|
47
|
+
The path to the console directory.
|
|
48
48
|
"""
|
|
49
|
-
return Path(self.__app.path('
|
|
49
|
+
return Path(self.__app.path('console'))
|
|
50
50
|
|
|
51
51
|
def controllers(self) -> Path:
|
|
52
52
|
"""
|
|
@@ -28,7 +28,7 @@ orionis/console/contracts/schedule.py,sha256=17cfPYtLo-jqF8FxYOhh4epJZnxw5mMPuLG
|
|
|
28
28
|
orionis/console/contracts/schedule_event_listener.py,sha256=7fQdPh6X_npfGpQW_2x81D7-5Pe40jIog9uDeEU0kro,4390
|
|
29
29
|
orionis/console/contracts/scheduler.py,sha256=OW-a_YDDNPrenYT9z8Tv71VjyZ1aSzqzqhTBhTCZhGM,7698
|
|
30
30
|
orionis/console/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
31
|
-
orionis/console/core/reactor.py,sha256=
|
|
31
|
+
orionis/console/core/reactor.py,sha256=AG2i38YRTHSRG-eO2lNCy9P-Qfll297EvxYHCT_wvV0,30512
|
|
32
32
|
orionis/console/dumper/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
33
33
|
orionis/console/dumper/dump.py,sha256=CATERiQ6XuIrKQsDaWcVxzTtlAJI9qLJX44fQxEX8ws,22443
|
|
34
34
|
orionis/console/dumper/contracts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -125,7 +125,7 @@ orionis/failure/contracts/handler.py,sha256=4N9yMkMgdhtHbRGAyCtuTx3GmkPP74vhqdRL
|
|
|
125
125
|
orionis/failure/entities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
126
126
|
orionis/failure/entities/throwable.py,sha256=ogys062uhim5QMYU62ezlnumRAnYQlUf_vZvQY47S3U,1227
|
|
127
127
|
orionis/foundation/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
128
|
-
orionis/foundation/application.py,sha256=
|
|
128
|
+
orionis/foundation/application.py,sha256=EXFvPASSziIRMdsTrZMwNA-1sNWq4zx6v5fPjyvTTyE,86432
|
|
129
129
|
orionis/foundation/config/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
130
130
|
orionis/foundation/config/startup.py,sha256=vbzduprRCNyYeR2nnMaqc1uKXw6PTzAY2jVfXNQKN8I,9691
|
|
131
131
|
orionis/foundation/config/app/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -203,7 +203,7 @@ orionis/foundation/config/queue/entities/queue.py,sha256=YiWPeEg5e0fd_DJM2ogska6
|
|
|
203
203
|
orionis/foundation/config/queue/enums/__init__.py,sha256=oWY8GWwr5mex7szs_bLVqAS1jbyuIAvKl7XFGSlU9A0,64
|
|
204
204
|
orionis/foundation/config/queue/enums/strategy.py,sha256=S_kw7KZtoCk5FTOkbuXepdy_fOl9Eav4uT2K0OyzBa0,602
|
|
205
205
|
orionis/foundation/config/roots/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
206
|
-
orionis/foundation/config/roots/paths.py,sha256=
|
|
206
|
+
orionis/foundation/config/roots/paths.py,sha256=OqlaW_2n-jT94pmH92KJ19oCcaFtj2bUhgaqZyGdtVA,10538
|
|
207
207
|
orionis/foundation/config/session/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
208
208
|
orionis/foundation/config/session/entities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
209
209
|
orionis/foundation/config/session/entities/session.py,sha256=G3dRlzDCsL5_2A2ZKpge2Jwcu6N-YVsum09pWk9oHDc,6085
|
|
@@ -241,7 +241,7 @@ orionis/foundation/providers/scheduler_provider.py,sha256=1do4B09bU_6xbFHHVYYTGM
|
|
|
241
241
|
orionis/foundation/providers/testing_provider.py,sha256=SrJRpdvcblx9WvX7x9Y3zc7OQfiTf7la0HAJrm2ESlE,3725
|
|
242
242
|
orionis/foundation/providers/workers_provider.py,sha256=oa_2NIDH6UxZrtuGkkoo_zEoNIMGgJ46vg5CCgAm7wI,3926
|
|
243
243
|
orionis/metadata/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
244
|
-
orionis/metadata/framework.py,sha256=
|
|
244
|
+
orionis/metadata/framework.py,sha256=iq1qKEe-ycxdr7Wsf_DlcGm0mOkYQCN1i8jjbsKtRWw,4109
|
|
245
245
|
orionis/metadata/package.py,sha256=k7Yriyp5aUcR-iR8SK2ec_lf0_Cyc-C7JczgXa-I67w,16039
|
|
246
246
|
orionis/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
247
247
|
orionis/services/asynchrony/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -272,9 +272,9 @@ orionis/services/environment/validators/__init__.py,sha256=S0Us4_BtKPuOMQZf4uFFq
|
|
|
272
272
|
orionis/services/environment/validators/key_name.py,sha256=TSwVhQCbBYPZ_4zZ-o16yT_2pOe3WRWl9d8KzfDzWyg,1660
|
|
273
273
|
orionis/services/environment/validators/types.py,sha256=hiTszo7hS_1zQLclUIDOFUTGy2Kg2n3dZe7jU8Pmf1I,2839
|
|
274
274
|
orionis/services/file/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
275
|
-
orionis/services/file/directory.py,sha256=
|
|
275
|
+
orionis/services/file/directory.py,sha256=mET8jkvWf7wahmYBBODMFhuK48EuYROyVGnTuTYZOtk,7648
|
|
276
276
|
orionis/services/file/contracts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
277
|
-
orionis/services/file/contracts/directory.py,sha256=
|
|
277
|
+
orionis/services/file/contracts/directory.py,sha256=zNKIxYgcgpS5gxi32b1Q6_5J-OF1U08fkPOyGnCPJxY,6563
|
|
278
278
|
orionis/services/inspirational/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
279
279
|
orionis/services/inspirational/inspire.py,sha256=dUxwkNLjKC4jdi06cVB1gfyB2zHjfgdhYhwKtsOTf0Q,4090
|
|
280
280
|
orionis/services/inspirational/quotes.py,sha256=9hCIEFE0DdfXLaGq_SzFpXlC2AbGSnuFLzyec4Rd1H0,53455
|
|
@@ -419,7 +419,7 @@ orionis/test/validators/web_report.py,sha256=n9BfzOZz6aEiNTypXcwuWbFRG0OdHNSmCNu
|
|
|
419
419
|
orionis/test/validators/workers.py,sha256=rWcdRexINNEmGaO7mnc1MKUxkHKxrTsVuHgbnIfJYgc,1206
|
|
420
420
|
orionis/test/view/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
421
421
|
orionis/test/view/render.py,sha256=f-zNhtKSg9R5Njqujbg2l2amAs2-mRVESneLIkWOZjU,4082
|
|
422
|
-
orionis-0.
|
|
422
|
+
orionis-0.530.0.dist-info/licenses/LICENCE,sha256=JhC-z_9mbpUrCfPjcl3DhDA8trNDMzb57cvRSam1avc,1463
|
|
423
423
|
tests/container/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
424
424
|
tests/container/context/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
425
425
|
tests/container/context/test_manager.py,sha256=wOwXpl9rHNfTTexa9GBKYMwK0_-KSQPbI-AEyGNkmAE,1356
|
|
@@ -500,7 +500,7 @@ tests/foundation/config/queue/test_foundation_config_queue.py,sha256=1qeov00ibVD
|
|
|
500
500
|
tests/foundation/config/queue/test_foundation_config_queue_brokers.py,sha256=pgdOtasyAkKOBscdb8T4GP5JeYRSBtGfpQIB4li0It8,2594
|
|
501
501
|
tests/foundation/config/queue/test_foundation_config_queue_database.py,sha256=qLYXjG8YVIp_NWYcZA9A2GmOdjFyt3snq9X1cdIok8M,4830
|
|
502
502
|
tests/foundation/config/root/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
503
|
-
tests/foundation/config/root/test_foundation_config_root_paths.py,sha256=
|
|
503
|
+
tests/foundation/config/root/test_foundation_config_root_paths.py,sha256=DCkLHa_l3yopO3dZIOsoRZ9UMYswwlALp6OxmEmmfCQ,3934
|
|
504
504
|
tests/foundation/config/session/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
505
505
|
tests/foundation/config/session/test_foundation_config_session.py,sha256=itTV_OxTsUUsS4AVvcrNntkuEmMPmEO6YZLjVLRwP50,7380
|
|
506
506
|
tests/foundation/config/startup/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -565,8 +565,8 @@ tests/testing/validators/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZ
|
|
|
565
565
|
tests/testing/validators/test_testing_validators.py,sha256=WPo5GxTP6xE-Dw3X1vZoqOMpb6HhokjNSbgDsDRDvy4,16588
|
|
566
566
|
tests/testing/view/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
567
567
|
tests/testing/view/test_render.py,sha256=tnnMBwS0iKUIbogLvu-7Rii50G6Koddp3XT4wgdFEYM,1050
|
|
568
|
-
orionis-0.
|
|
569
|
-
orionis-0.
|
|
570
|
-
orionis-0.
|
|
571
|
-
orionis-0.
|
|
572
|
-
orionis-0.
|
|
568
|
+
orionis-0.530.0.dist-info/METADATA,sha256=De3ehdjmHKbxar1S392o95IJtr9kAQAhQWB3gpQ_0zs,4801
|
|
569
|
+
orionis-0.530.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
570
|
+
orionis-0.530.0.dist-info/top_level.txt,sha256=2bdoHgyGZhOtLAXS6Om8OCTmL24dUMC_L1quMe_ETbk,14
|
|
571
|
+
orionis-0.530.0.dist-info/zip-safe,sha256=frcCV1k9oG9oKj3dpUqdJg1PxRT2RSN_XKdLCPjaYaY,2
|
|
572
|
+
orionis-0.530.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|