orionis 0.529.0__py3-none-any.whl → 0.531.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.
@@ -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
- self.__loadCommands(self.__app.path('commands'), self.__root)
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
- commands: str | Path = (Path.cwd() / 'app' / 'console' / 'commands').resolve(),
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(),
@@ -1460,8 +1460,8 @@ class Application(Container, IApplication):
1460
1460
 
1461
1461
  Parameters
1462
1462
  ----------
1463
- commands : str or Path, optional
1464
- Directory for console command classes. Defaults to 'app/console/commands'.
1463
+ console : str or Path, optional
1464
+ Directory for console command classes. Defaults to 'app/console'.
1465
1465
  controllers : str or Path, optional
1466
1466
  Directory for HTTP controller classes. Defaults to 'app/http/controllers'.
1467
1467
  middleware : str or Path, optional
@@ -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
- 'commands' : str(commands),
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
- commands: str = field(
18
- default_factory = lambda: str((Path.cwd() / 'app' / 'console' / 'commands').resolve()),
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' / 'commands').resolve())
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 = {
@@ -5,7 +5,7 @@
5
5
  NAME = "orionis"
6
6
 
7
7
  # Current version of the framework
8
- VERSION = "0.529.0"
8
+ VERSION = "0.531.0"
9
9
 
10
10
  # Full name of the author or maintainer of the project
11
11
  AUTHOR = "Raul Mauricio Uñate Castro"
@@ -17,14 +17,14 @@ class IDirectory(ABC):
17
17
  pass
18
18
 
19
19
  @abstractmethod
20
- def commands(self) -> Path:
20
+ def console(self) -> Path:
21
21
  """
22
- Get the commands directory path.
22
+ Get the console directory path.
23
23
 
24
24
  Returns
25
25
  -------
26
26
  Path
27
- The path to the commands directory.
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 commands(self) -> Path:
40
+ def console(self) -> Path:
41
41
  """
42
- Get the commands directory path.
42
+ Get the console directory path.
43
43
 
44
44
  Returns
45
45
  -------
46
46
  Path
47
- The path to the commands directory.
47
+ The path to the console directory.
48
48
  """
49
- return Path(self.__app.path('commands'))
49
+ return Path(self.__app.path('console'))
50
50
 
51
51
  def controllers(self) -> Path:
52
52
  """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: orionis
3
- Version: 0.529.0
3
+ Version: 0.531.0
4
4
  Summary: Orionis Framework – Elegant, Fast, and Powerful.
5
5
  Home-page: https://github.com/orionis-framework/framework
6
6
  Author: Raul Mauricio Uñate Castro
@@ -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=JlxNiqmyzAqiS21hxOMD5ELiDNPzmGHYDNrdlaMvYuI,30409
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=OOe10s0Dpo3uC4L3xrhjRitaZo7ukaFJaRSJcpdl0cA,86448
128
+ orionis/foundation/application.py,sha256=JtTFU__67Vrg4vDA5ieNu1WgqiBjulaJJRjAgYIVRgE,86422
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=oplhq0aZkYdHIHH6RfV-Pn0fWc-gOwgrtpaex_rvqTk,10920
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=KSIr45mPJD8Xe_R8lz2kUYhFGKDI3gp43norbMrfEYY,4109
244
+ orionis/metadata/framework.py,sha256=5Up2-YWMRMMui3nVYJBNvG81pm5vlb0awntbaIiHh8A,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=mEwuY3uAK3rAR9RutSBSey_rhNSaiO6cDo6Og3VzHK0,7652
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=Y6UlsldY2aUhcyeEsp-3L21z7VY2STl7WKH95lcTA4c,6566
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.529.0.dist-info/licenses/LICENCE,sha256=JhC-z_9mbpUrCfPjcl3DhDA8trNDMzb57cvRSam1avc,1463
422
+ orionis-0.531.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=cdXhXDa6BzfrgaUFjLTsBDeiAQQStdcvxZpflBiej2o,3935
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.529.0.dist-info/METADATA,sha256=48O-op1F2RW9AdutQZ_sR5GA7IfebIxb7O00TrsfW9E,4801
569
- orionis-0.529.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
570
- orionis-0.529.0.dist-info/top_level.txt,sha256=2bdoHgyGZhOtLAXS6Om8OCTmL24dUMC_L1quMe_ETbk,14
571
- orionis-0.529.0.dist-info/zip-safe,sha256=frcCV1k9oG9oKj3dpUqdJg1PxRT2RSN_XKdLCPjaYaY,2
572
- orionis-0.529.0.dist-info/RECORD,,
568
+ orionis-0.531.0.dist-info/METADATA,sha256=zfe49sBuT8RAIkEbWnNODcJ-k9987ERhWzcrBlJ0Vc4,4801
569
+ orionis-0.531.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
570
+ orionis-0.531.0.dist-info/top_level.txt,sha256=2bdoHgyGZhOtLAXS6Om8OCTmL24dUMC_L1quMe_ETbk,14
571
+ orionis-0.531.0.dist-info/zip-safe,sha256=frcCV1k9oG9oKj3dpUqdJg1PxRT2RSN_XKdLCPjaYaY,2
572
+ orionis-0.531.0.dist-info/RECORD,,
@@ -53,7 +53,7 @@ class TestFoundationConfigRootPaths(AsyncTestCase):
53
53
  None
54
54
  """
55
55
  with self.assertRaises(OrionisIntegrityException):
56
- Paths(commands=123)
56
+ Paths(console=123)
57
57
 
58
58
  def testToDictReturnsCompleteDictionary(self):
59
59
  """