orionis 0.9.0__py3-none-any.whl → 0.11.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/framework.py CHANGED
@@ -5,7 +5,7 @@
5
5
  NAME = "orionis"
6
6
 
7
7
  # Current version of the framework
8
- VERSION = "0.9.0"
8
+ VERSION = "0.11.0"
9
9
 
10
10
  # Full name of the author or maintainer of the project
11
11
  AUTHOR = "Raul Mauricio Uñate Castro"
@@ -1,5 +1,5 @@
1
- from typing import Optional
2
- from dataclasses import dataclass
1
+ from typing import Dict, Optional
2
+ from dataclasses import dataclass, field
3
3
 
4
4
  @dataclass
5
5
  class Sqlite:
@@ -201,3 +201,6 @@ class Database:
201
201
  """
202
202
  default: str
203
203
  connections: Connections
204
+
205
+ # Holds additional custom properties, initialized as an empty dictionary
206
+ custom: Dict[str, any] = field(default_factory=dict)
@@ -1,5 +1,5 @@
1
- from dataclasses import dataclass
2
- from typing import Optional
1
+ from dataclasses import dataclass, field
2
+ from typing import Dict, Optional
3
3
 
4
4
  @dataclass
5
5
  class Local:
@@ -100,3 +100,6 @@ class Filesystems:
100
100
 
101
101
  default: str
102
102
  disks: Disks
103
+
104
+ # Holds additional custom properties, initialized as an empty dictionary
105
+ custom: Dict[str, any] = field(default_factory=dict)
@@ -1,5 +1,5 @@
1
- from dataclasses import dataclass
2
- from typing import Any, Union
1
+ from dataclasses import dataclass, field
2
+ from typing import Any, Dict, Union
3
3
 
4
4
  @dataclass
5
5
  class Single:
@@ -105,3 +105,6 @@ class Logging:
105
105
  """
106
106
  default: str
107
107
  channels: Channels
108
+
109
+ # Holds additional custom properties, initialized as an empty dictionary
110
+ custom: Dict[str, any] = field(default_factory=dict)
@@ -1,5 +1,5 @@
1
- from dataclasses import dataclass
2
- from typing import Optional
1
+ from dataclasses import dataclass, field
2
+ from typing import Dict, Optional
3
3
 
4
4
  @dataclass
5
5
  class Smtp:
@@ -79,3 +79,6 @@ class Mail:
79
79
 
80
80
  default: str
81
81
  mailers: Mailers
82
+
83
+ # Holds additional custom properties, initialized as an empty dictionary
84
+ custom: Dict[str, any] = field(default_factory=dict)
@@ -1,4 +1,5 @@
1
- from dataclasses import dataclass
1
+ from dataclasses import dataclass, field
2
+ from typing import Dict
2
3
 
3
4
  @dataclass
4
5
  class Database:
@@ -61,3 +62,6 @@ class Queue:
61
62
 
62
63
  default: str
63
64
  connections: Connections
65
+
66
+ # Holds additional custom properties, initialized as an empty dictionary
67
+ custom: Dict[str, any] = field(default_factory=dict)
@@ -1,5 +1,5 @@
1
- from dataclasses import dataclass
2
- from typing import Optional
1
+ from dataclasses import dataclass, field
2
+ from typing import Dict, Optional
3
3
 
4
4
  @dataclass
5
5
  class Cookie:
@@ -23,11 +23,11 @@ class Cookie:
23
23
  """
24
24
 
25
25
  name: str = "orionis_session"
26
- path: str
27
- domain: Optional[str]
28
- secure: Optional[bool]
29
- http_only: bool
30
- same_site: str
26
+ path: str = "/"
27
+ domain: Optional[str] = None
28
+ secure: Optional[bool] = None
29
+ http_only: bool = True
30
+ same_site: str = "lax"
31
31
 
32
32
 
33
33
  @dataclass
@@ -57,3 +57,6 @@ class Session:
57
57
  encrypt: bool
58
58
  files: str
59
59
  cookie: Cookie
60
+
61
+ # Holds additional custom properties, initialized as an empty dictionary
62
+ custom: Dict[str, any] = field(default_factory=dict)
@@ -38,12 +38,12 @@ class SkeletonPath(ISkeletonPath):
38
38
  base_path = SysPath(os.getcwd()) # Get the directory where the script is executed
39
39
  real_path = (base_path / route).resolve() # Combine base path with the relative route
40
40
 
41
- # Validate that the path exists and is a directory
42
- if not real_path.is_dir():
41
+ # Validate that the path exists and is a directory or file
42
+ if real_path.is_dir() or real_path.is_file():
43
+ self.route = str(real_path)
44
+ else:
43
45
  raise ValueError(f"The requested directory does not exist or is not a directory: {real_path}")
44
46
 
45
- self.route = str(real_path)
46
-
47
47
  def resolve(self) -> str:
48
48
  """
49
49
  Returns the absolute path as a string.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: orionis
3
- Version: 0.9.0
3
+ Version: 0.11.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
@@ -1,6 +1,6 @@
1
1
  orionis/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  orionis/cli_manager.py,sha256=9wNVJxB0HyqUbNesUvkwlsqTyUbZwK6R46iVLE5WVBQ,1715
3
- orionis/framework.py,sha256=BDQNBEtNeZ5JZqepVCR2lQaQu7J3yGdOPT4QZR1RIJU,1385
3
+ orionis/framework.py,sha256=AMBen4p24cxXgu6cbkcdFlTvXrH2xvCTHlnNJ_Ox2y8,1386
4
4
  orionis/luminate/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
5
  orionis/luminate/app.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
6
  orionis/luminate/bootstrap/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -19,12 +19,12 @@ orionis/luminate/config/dataclass/app.py,sha256=7teuVPuaV2ao0M5Bv-jhSgjEwb9DtVwd
19
19
  orionis/luminate/config/dataclass/auth.py,sha256=CG8F0pfVjKz4DY3d1Wi7gscdhnp4TT-Q8SJ2sdsHh18,523
20
20
  orionis/luminate/config/dataclass/cache.py,sha256=nBKmDFDb91sbBriEsVLjMhrNb__j7YsRzZGQRDdALtA,1338
21
21
  orionis/luminate/config/dataclass/cors.py,sha256=zWKUylPiaUzGXTJM3eLmwY0HcAD7iOLp9QiAoTyAL08,2275
22
- orionis/luminate/config/dataclass/database.py,sha256=RMQNNCTDaXS0m7k4twOgUzAr398Xyih2TrziWnFdWRA,5470
23
- orionis/luminate/config/dataclass/filesystems.py,sha256=vcangnAKrTbnpThIuYqOe1ESX3P536wJ1hCpyofNdO0,2293
24
- orionis/luminate/config/dataclass/logging.py,sha256=GdU8ukr_4dta5G-2apMxlU4M4OJ8jAF9pOL0UgqOI6I,2681
25
- orionis/luminate/config/dataclass/mail.py,sha256=s829_YgC833HKjCPwKZKDKNCbaar6y43Z5Ne1gdSPtk,1951
26
- orionis/luminate/config/dataclass/queue.py,sha256=7c9M6Pcoywgv_Zwie-zrEsxaY1hmFzPUBL5bGBidiEE,1569
27
- orionis/luminate/config/dataclass/session.py,sha256=AYiF1TLp1ylzpPjClcXOin99F91jDCvDcZVcGUzJI4I,1674
22
+ orionis/luminate/config/dataclass/database.py,sha256=oj-FQWtbwIYrJAQktSGBl96EZu78fr6IBcQxHbWDVBM,5619
23
+ orionis/luminate/config/dataclass/filesystems.py,sha256=fAn4Wx6naIb8E4U2TXJhVnx0Ipxpxc_Ee2w_FWfwlHI,2444
24
+ orionis/luminate/config/dataclass/logging.py,sha256=H110K6LyTCNgxZPqiGGn0z8FZ2I6kW5ZKfsVhoWB4KM,2832
25
+ orionis/luminate/config/dataclass/mail.py,sha256=3iYXG72bXiVns4sEPZ_A3-cGcFjGEGDXkuLKkk-hKtY,2102
26
+ orionis/luminate/config/dataclass/queue.py,sha256=DYjP5zD09ISsIX117wtOfjiG_iQrcrPoQVeeftmuO3c,1739
27
+ orionis/luminate/config/dataclass/session.py,sha256=7mOC_DfGIBDqAClSiewHoTA9Kht_zdHApvALcZc7cfY,1861
28
28
  orionis/luminate/console/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
29
29
  orionis/luminate/console/cache.py,sha256=GuiCYaiU8fHTcPZauSOJJeXbRM6aau2PmDuJ00uD8kA,5125
30
30
  orionis/luminate/console/command.py,sha256=bSFFniZds1L_GKPcotfQZlt8m-GKByvfZR1deTMLPb8,1381
@@ -106,7 +106,7 @@ orionis/luminate/facades/log.py,sha256=yHht-ok-eseVmwZgsAiHuFOS3MRLJ-YJrbG7VmHgu
106
106
  orionis/luminate/facades/paths.py,sha256=qXU9KvgNw54IsNc82_S66o198CA9bMZqO8wuCMW1Rnk,7300
107
107
  orionis/luminate/facades/tests.py,sha256=69n_XMQJYISOfMjtpDTIWIKU26dw20zaGE8dEj5cJK8,1664
108
108
  orionis/luminate/files/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
109
- orionis/luminate/files/paths.py,sha256=hDFgUOwlDDI5jyRqi8vPjpIRkJzhmdmQNoJDdTQ-JmA,1752
109
+ orionis/luminate/files/paths.py,sha256=a3Tz8Va6EcEiWz3Z-EljXM7IZyHTgdcWeQulUo2E43M,1796
110
110
  orionis/luminate/installer/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
111
111
  orionis/luminate/installer/icon.ascii,sha256=B1TAXYes9sQVg284MdVYNJh2LvIH88-MuHUyyKaBsNM,714
112
112
  orionis/luminate/installer/info.ascii,sha256=DV0NZRDuYXujymer8YAbg0PC8xejDEh7LSLZFGuOdw0,773
@@ -136,9 +136,9 @@ tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
136
136
  tests/tools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
137
137
  tests/tools/class_example.py,sha256=dIPD997Y15n6WmKhWoOFSwEldRm9MdOHTZZ49eF1p3c,1056
138
138
  tests/tools/test_reflection.py,sha256=dNN5p_xAosyEf0ddAElmmmTfhcTtBd4zBNl7qzgnsc0,5242
139
- orionis-0.9.0.dist-info/LICENCE,sha256=-_4cF2EBKuYVS_SQpy1uapq0oJPUU1vl_RUWSy2jJTo,1111
140
- orionis-0.9.0.dist-info/METADATA,sha256=m0yzNERPFenFK381JNLuGbah-nCXAvlgAkX04lYd_Vg,2977
141
- orionis-0.9.0.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
142
- orionis-0.9.0.dist-info/entry_points.txt,sha256=eef1_CVewfokKjrGBynXa06KabSJYo7LlDKKIKvs1cM,53
143
- orionis-0.9.0.dist-info/top_level.txt,sha256=2bdoHgyGZhOtLAXS6Om8OCTmL24dUMC_L1quMe_ETbk,14
144
- orionis-0.9.0.dist-info/RECORD,,
139
+ orionis-0.11.0.dist-info/LICENCE,sha256=-_4cF2EBKuYVS_SQpy1uapq0oJPUU1vl_RUWSy2jJTo,1111
140
+ orionis-0.11.0.dist-info/METADATA,sha256=YpHiqFF7lhdDFFFQVhht8GxBDIR6UnHg6NCCrzZemTQ,2978
141
+ orionis-0.11.0.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
142
+ orionis-0.11.0.dist-info/entry_points.txt,sha256=eef1_CVewfokKjrGBynXa06KabSJYo7LlDKKIKvs1cM,53
143
+ orionis-0.11.0.dist-info/top_level.txt,sha256=2bdoHgyGZhOtLAXS6Om8OCTmL24dUMC_L1quMe_ETbk,14
144
+ orionis-0.11.0.dist-info/RECORD,,