orionis 0.18.0__py3-none-any.whl → 0.20.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.18.0"
8
+ VERSION = "0.20.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
1
  from orionis.luminate.bootstrap.config.parser import Parser
2
- from orionis.luminate.container.container import Container
2
+ from orionis.luminate.cache.app.config import CacheConfig
3
3
  from orionis.luminate.contracts.bootstrap.config.register_interface import IRegister
4
4
  from orionis.luminate.contracts.config.config_interface import IConfig
5
5
  from orionis.luminate.tools.reflection import Reflection
@@ -17,7 +17,7 @@ class Register(IRegister):
17
17
  Registers a configuration class and ensures it meets the necessary criteria.
18
18
  """
19
19
 
20
- def __init__(self, container = Container()) -> None:
20
+ def __init__(self, cache = CacheConfig) -> None:
21
21
  """
22
22
  Initializes the Register instance with a cache configuration.
23
23
 
@@ -26,7 +26,7 @@ class Register(IRegister):
26
26
  container : Container
27
27
  The container instance to be used for configuration registration.
28
28
  """
29
- self.container = container
29
+ self.cache = cache
30
30
 
31
31
  def config(self, config_class: type) -> type:
32
32
  """
@@ -70,7 +70,7 @@ class Register(IRegister):
70
70
  raise TypeError(f"Class {config_class.__name__} must inherit from 'IConfig'.")
71
71
 
72
72
  # Register configuration
73
- self.container.config(
73
+ self.cache.register(
74
74
  section=section,
75
75
  data=Parser.toDict(config_class)
76
76
  )
@@ -2,34 +2,16 @@ from typing import Dict, Any
2
2
 
3
3
  class CacheConfig:
4
4
  """
5
- Singleton class for managing application configuration caching.
6
-
7
5
  This class ensures that configuration sections are registered only once
8
6
  and provides methods to register, unregister, and retrieve configurations.
9
7
 
10
8
  Attributes
11
9
  ----------
12
- _instance : CacheConfig
13
- A private class attribute that holds the singleton instance.
14
10
  config : dict
15
11
  A dictionary storing registered configuration sections.
16
12
  """
17
-
18
- _instance = None
19
-
20
- def __new__(cls, *args, **kwargs):
21
- """
22
- Ensures a single instance of CacheConfig (Singleton Pattern).
23
-
24
- Returns
25
- -------
26
- CacheConfig
27
- The singleton instance of the class.
28
- """
29
- if cls._instance is None:
30
- cls._instance = super().__new__(cls)
31
- cls._instance.config = {}
32
- return cls._instance
13
+ def __init__(self) -> None:
14
+ self.config = {}
33
15
 
34
16
  def register(self, section: str, data: Dict[str, Any]) -> None:
35
17
  """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: orionis
3
- Version: 0.18.0
3
+ Version: 0.20.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,16 +1,16 @@
1
1
  orionis/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  orionis/cli_manager.py,sha256=9wNVJxB0HyqUbNesUvkwlsqTyUbZwK6R46iVLE5WVBQ,1715
3
- orionis/framework.py,sha256=4ilspd7nmKcBPyWZ0pNNOZeAA0sin3LpEsbO9vDCx6Y,1386
3
+ orionis/framework.py,sha256=xAH4msz4TQ36XY-7sinSy7wkqTja4k3WvDgiEFxmXdQ,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
7
7
  orionis/luminate/bootstrap/config/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
8
  orionis/luminate/bootstrap/config/bootstrapper.py,sha256=R1ixec362o-Td-kNSvi-0ylVqspFWJq6L6IHYzWHPmg,4227
9
9
  orionis/luminate/bootstrap/config/parser.py,sha256=Ay8dh3aax9xhVgeLSHT71ubtZJiKAJAP85dLFF7djyA,1950
10
- orionis/luminate/bootstrap/config/register.py,sha256=O_7-LhIJaZGzQJYShoTVTtjG90QM6dTYLuQ5QKeAbUQ,2775
10
+ orionis/luminate/bootstrap/config/register.py,sha256=5LN3wYOlrpzeJG7zheslWyYHIdJtgFaK2irrTKD1ZKs,2760
11
11
  orionis/luminate/cache/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
12
12
  orionis/luminate/cache/app/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
13
- orionis/luminate/cache/app/config.py,sha256=4V-E-jkBurc0imqCZedsEO3KmKz9hfK-XQjuBVbmHRg,2777
13
+ orionis/luminate/cache/app/config.py,sha256=tSHZ7sL_nYSz0aQOo_WkhYYchV1Q9ZdHOWUeHx7uwxE,2242
14
14
  orionis/luminate/cache/console/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
15
15
  orionis/luminate/cache/console/commands.py,sha256=hDwGT4DhMnV4LM35CX7L-E5c_cCHn4TLVkgdXvJ3wFg,3181
16
16
  orionis/luminate/config/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -140,9 +140,9 @@ tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
140
140
  tests/tools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
141
141
  tests/tools/class_example.py,sha256=dIPD997Y15n6WmKhWoOFSwEldRm9MdOHTZZ49eF1p3c,1056
142
142
  tests/tools/test_reflection.py,sha256=dNN5p_xAosyEf0ddAElmmmTfhcTtBd4zBNl7qzgnsc0,5242
143
- orionis-0.18.0.dist-info/LICENCE,sha256=-_4cF2EBKuYVS_SQpy1uapq0oJPUU1vl_RUWSy2jJTo,1111
144
- orionis-0.18.0.dist-info/METADATA,sha256=WOpBgkK-eut-jkQFjgfeeMij6E4VOylykbK3H5SCzPY,2978
145
- orionis-0.18.0.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
146
- orionis-0.18.0.dist-info/entry_points.txt,sha256=eef1_CVewfokKjrGBynXa06KabSJYo7LlDKKIKvs1cM,53
147
- orionis-0.18.0.dist-info/top_level.txt,sha256=2bdoHgyGZhOtLAXS6Om8OCTmL24dUMC_L1quMe_ETbk,14
148
- orionis-0.18.0.dist-info/RECORD,,
143
+ orionis-0.20.0.dist-info/LICENCE,sha256=-_4cF2EBKuYVS_SQpy1uapq0oJPUU1vl_RUWSy2jJTo,1111
144
+ orionis-0.20.0.dist-info/METADATA,sha256=pZlnmaGqu2EVBf7Lcv5SbUqzfqATQIB6qwyg6-JwkiQ,2978
145
+ orionis-0.20.0.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
146
+ orionis-0.20.0.dist-info/entry_points.txt,sha256=eef1_CVewfokKjrGBynXa06KabSJYo7LlDKKIKvs1cM,53
147
+ orionis-0.20.0.dist-info/top_level.txt,sha256=2bdoHgyGZhOtLAXS6Om8OCTmL24dUMC_L1quMe_ETbk,14
148
+ orionis-0.20.0.dist-info/RECORD,,