orionis 0.138.0__py3-none-any.whl → 0.151.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 +1 -1
- orionis/luminate/application.py +1 -4
- orionis/luminate/console/base/command.py +6 -3
- orionis/luminate/console/command_filter.py +1 -1
- orionis/luminate/console/commands/cache_clear.py +4 -3
- orionis/luminate/console/commands/schedule_work.py +1 -1
- orionis/luminate/console/kernel.py +1 -2
- orionis/luminate/console/output/console.py +1 -1
- orionis/luminate/console/output/executor.py +1 -1
- orionis/luminate/console/output/progress_bar.py +1 -1
- orionis/luminate/console/parser.py +1 -1
- orionis/luminate/container/container.py +379 -270
- orionis/luminate/container/container_integrity.py +235 -0
- orionis/luminate/container/lifetimes.py +13 -0
- orionis/luminate/contracts/console/{i_parser.py → parser.py} +0 -1
- orionis/luminate/contracts/container/container.py +346 -0
- orionis/luminate/contracts/container/container_integrity.py +168 -0
- orionis/luminate/facades/commands/commands_facade.py +1 -1
- orionis/luminate/facades/commands/scheduler_facade.py +1 -1
- orionis/luminate/facades/config/config_facade.py +1 -1
- orionis/luminate/facades/environment/environment_facade.py +1 -2
- orionis/luminate/facades/files/path_facade.py +1 -1
- orionis/luminate/facades/log/log_facade.py +1 -1
- orionis/luminate/facades/tests/tests_facade.py +1 -1
- orionis/luminate/foundation/config/config_bootstrapper.py +1 -1
- orionis/luminate/foundation/console/command_bootstrapper.py +1 -1
- orionis/luminate/foundation/environment/environment_bootstrapper.py +1 -1
- orionis/luminate/foundation/providers/service_providers_bootstrapper.py +1 -1
- orionis/luminate/providers/commands/reactor_commands_service_provider.py +2 -1
- orionis/luminate/providers/commands/scheduler_provider.py +2 -1
- orionis/luminate/providers/config/config_service_provider.py +2 -1
- orionis/luminate/providers/environment/environment__service_provider.py +2 -1
- orionis/luminate/providers/files/paths_provider.py +2 -1
- orionis/luminate/providers/log/log_service_provider.py +2 -1
- orionis/luminate/providers/service_provider.py +1 -2
- orionis/luminate/services/commands/reactor_commands_service.py +1 -2
- orionis/luminate/services/commands/scheduler_service.py +1 -2
- orionis/luminate/services/config/config_service.py +1 -2
- orionis/luminate/services/environment/environment_service.py +1 -2
- orionis/luminate/services/files/path_resolver_service.py +1 -2
- orionis/luminate/services/log/log_service.py +1 -2
- orionis/luminate/support/exception_to_dict.py +1 -1
- orionis/luminate/support/reflection.py +1 -1
- orionis/luminate/support/std.py +1 -1
- {orionis-0.138.0.dist-info → orionis-0.151.0.dist-info}/METADATA +1 -1
- {orionis-0.138.0.dist-info → orionis-0.151.0.dist-info}/RECORD +78 -77
- orionis/luminate/container/types.py +0 -51
- orionis/luminate/contracts/container/i_container.py +0 -239
- orionis/luminate/contracts/container/i_types.py +0 -16
- /orionis/luminate/contracts/console/base/{i_command.py → command.py} +0 -0
- /orionis/luminate/contracts/console/{i_command_filter.py → command_filter.py} +0 -0
- /orionis/luminate/contracts/console/{i_kernel.py → kernel.py} +0 -0
- /orionis/luminate/contracts/console/output/{i_console.py → console.py} +0 -0
- /orionis/luminate/contracts/console/output/{i_executor.py → executor.py} +0 -0
- /orionis/luminate/contracts/console/output/{i_progress_bar.py → progress_bar.py} +0 -0
- /orionis/luminate/contracts/console/{i_task_manager.py → task_manager.py} +0 -0
- /orionis/luminate/contracts/facades/commands/{i_commands_facade.py → commands_facade.py} +0 -0
- /orionis/luminate/contracts/facades/commands/{i_scheduler_facade.py → scheduler_facade.py} +0 -0
- /orionis/luminate/contracts/facades/config/{i_config_facade.py → config_facade.py} +0 -0
- /orionis/luminate/contracts/facades/environment/{i_environment_facade.py → environment_facade.py} +0 -0
- /orionis/luminate/contracts/facades/files/{i_path_facade.py → path_facade.py} +0 -0
- /orionis/luminate/contracts/facades/log/{i_log_facade.py → log_facade.py} +0 -0
- /orionis/luminate/contracts/facades/tests/{i_tests_facade.py → tests_facade.py} +0 -0
- /orionis/luminate/contracts/foundation/config/{i_config_bootstrapper.py → config_bootstrapper.py} +0 -0
- /orionis/luminate/contracts/foundation/console/{i_command_bootstrapper.py → command_bootstrapper.py} +0 -0
- /orionis/luminate/contracts/foundation/environment/{i_environment_bootstrapper.py → environment_bootstrapper.py} +0 -0
- /orionis/luminate/contracts/foundation/providers/{i_service_providers_bootstrapper.py → service_providers_bootstrapper.py} +0 -0
- /orionis/luminate/contracts/providers/{i_service_provider.py → service_provider.py} +0 -0
- /orionis/luminate/contracts/services/commands/{i_reactor_commands_service.py → reactor_commands_service.py} +0 -0
- /orionis/luminate/contracts/services/commands/{i_schedule_service.py → schedule_service.py} +0 -0
- /orionis/luminate/contracts/services/config/{i_config_service.py → config_service.py} +0 -0
- /orionis/luminate/contracts/services/environment/{i_environment_service.py → environment_service.py} +0 -0
- /orionis/luminate/contracts/services/files/{i_path_resolver_service.py → path_resolver_service.py} +0 -0
- /orionis/luminate/contracts/services/log/{i_log_service.py → log_service.py} +0 -0
- /orionis/luminate/contracts/support/{i_exception_to_dict.py → exception_to_dict.py} +0 -0
- /orionis/luminate/contracts/support/{i_reflection.py → reflection.py} +0 -0
- /orionis/luminate/contracts/support/{i_std.py → std.py} +0 -0
- {orionis-0.138.0.dist-info → orionis-0.151.0.dist-info}/LICENCE +0 -0
- {orionis-0.138.0.dist-info → orionis-0.151.0.dist-info}/WHEEL +0 -0
- {orionis-0.138.0.dist-info → orionis-0.151.0.dist-info}/entry_points.txt +0 -0
- {orionis-0.138.0.dist-info → orionis-0.151.0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,168 @@
|
|
1
|
+
from abc import ABC, abstractmethod
|
2
|
+
from typing import Any, Callable, Type
|
3
|
+
|
4
|
+
class IContainerIntegrity(ABC):
|
5
|
+
|
6
|
+
@abstractmethod
|
7
|
+
def ensureImplementation(abstract: Type, concrete: Type) -> None:
|
8
|
+
"""
|
9
|
+
Verify at runtime if `concrete` implements all methods of `abstract`.
|
10
|
+
|
11
|
+
:param abstract: Abstract class or interface.
|
12
|
+
:param concrete: Concrete class that should implement the abstract class.
|
13
|
+
:raises TypeError: If `concrete` does not implement all methods of `abstract`.
|
14
|
+
"""
|
15
|
+
pass
|
16
|
+
|
17
|
+
@abstractmethod
|
18
|
+
def ensureIsAbstract(abstract: Callable[..., Any]) -> None:
|
19
|
+
"""
|
20
|
+
Ensure that the given abstract is a valid abstract class.
|
21
|
+
|
22
|
+
:param abstract: Class to check
|
23
|
+
:raises OrionisContainerValueError: If the class is not a valid abstract interface
|
24
|
+
"""
|
25
|
+
pass
|
26
|
+
|
27
|
+
@abstractmethod
|
28
|
+
def ensureIsCallable(concrete: Callable[..., Any]) -> None:
|
29
|
+
"""
|
30
|
+
Ensure that the given implementation is callable or instantiable.
|
31
|
+
|
32
|
+
Parameters
|
33
|
+
----------
|
34
|
+
concrete : Callable[..., Any]
|
35
|
+
The implementation to check.
|
36
|
+
|
37
|
+
Raises
|
38
|
+
------
|
39
|
+
OrionisContainerTypeError
|
40
|
+
If the implementation is not callable.
|
41
|
+
"""
|
42
|
+
pass
|
43
|
+
|
44
|
+
@abstractmethod
|
45
|
+
def ensureIsInstance(instance: Any) -> None:
|
46
|
+
"""
|
47
|
+
Ensure that the given instance is a valid object.
|
48
|
+
|
49
|
+
Parameters
|
50
|
+
----------
|
51
|
+
instance : Any
|
52
|
+
The instance to check.
|
53
|
+
|
54
|
+
Raises
|
55
|
+
------
|
56
|
+
OrionisContainerValueError
|
57
|
+
If the instance is not a valid object.
|
58
|
+
"""
|
59
|
+
pass
|
60
|
+
|
61
|
+
@abstractmethod
|
62
|
+
def ensureNotMain(concrete: Callable[..., Any]) -> str:
|
63
|
+
"""
|
64
|
+
Ensure that a class is not defined in the main script.
|
65
|
+
|
66
|
+
Parameters
|
67
|
+
----------
|
68
|
+
concrete : Callable[..., Any]
|
69
|
+
The class or function to check.
|
70
|
+
|
71
|
+
Returns
|
72
|
+
-------
|
73
|
+
str
|
74
|
+
The fully qualified name of the class.
|
75
|
+
|
76
|
+
Raises
|
77
|
+
------
|
78
|
+
OrionisContainerValueError
|
79
|
+
If the class is defined in the main module.
|
80
|
+
"""
|
81
|
+
pass
|
82
|
+
|
83
|
+
@abstractmethod
|
84
|
+
def ensureIsAlias(name: str) -> bool:
|
85
|
+
"""
|
86
|
+
Ensure that the given alias name is a valid string, with no special characters or spaces,
|
87
|
+
and it is not a primitive type.
|
88
|
+
|
89
|
+
Parameters
|
90
|
+
----------
|
91
|
+
name : str
|
92
|
+
The alias name to check.
|
93
|
+
|
94
|
+
Raises
|
95
|
+
------
|
96
|
+
OrionisContainerValueError
|
97
|
+
If the alias is invalid.
|
98
|
+
"""
|
99
|
+
pass
|
100
|
+
|
101
|
+
@abstractmethod
|
102
|
+
def isAlias(name: str) -> bool:
|
103
|
+
"""
|
104
|
+
Check if the given alias name is a valid string, with no special characters or spaces,
|
105
|
+
and it is not a primitive type.
|
106
|
+
|
107
|
+
Parameters
|
108
|
+
----------
|
109
|
+
name : str
|
110
|
+
The alias name to check.
|
111
|
+
|
112
|
+
Returns
|
113
|
+
-------
|
114
|
+
bool
|
115
|
+
True if the alias is valid, False otherwise.
|
116
|
+
"""
|
117
|
+
pass
|
118
|
+
|
119
|
+
@abstractmethod
|
120
|
+
def isCallable(concrete: Callable[..., Any]) -> bool:
|
121
|
+
"""
|
122
|
+
Check if the given implementation is callable or instantiable.
|
123
|
+
|
124
|
+
Parameters
|
125
|
+
----------
|
126
|
+
concrete : Callable[..., Any]
|
127
|
+
The implementation to check.
|
128
|
+
|
129
|
+
Returns
|
130
|
+
-------
|
131
|
+
bool
|
132
|
+
True if the implementation is callable, False otherwise.
|
133
|
+
"""
|
134
|
+
pass
|
135
|
+
|
136
|
+
@abstractmethod
|
137
|
+
def isInstance(instance: Any) -> bool:
|
138
|
+
"""
|
139
|
+
Check if the given instance is a valid object.
|
140
|
+
|
141
|
+
Parameters
|
142
|
+
----------
|
143
|
+
instance : Any
|
144
|
+
The instance to check.
|
145
|
+
|
146
|
+
Returns
|
147
|
+
-------
|
148
|
+
bool
|
149
|
+
True if the instance is valid, False otherwise.
|
150
|
+
"""
|
151
|
+
pass
|
152
|
+
|
153
|
+
@abstractmethod
|
154
|
+
def isAbstract(abstract: Callable[..., Any]) -> bool:
|
155
|
+
"""
|
156
|
+
Check if the given abstract is a valid abstract class.
|
157
|
+
|
158
|
+
Parameters
|
159
|
+
----------
|
160
|
+
abstract : Callable[..., Any]
|
161
|
+
The class to check.
|
162
|
+
|
163
|
+
Returns
|
164
|
+
-------
|
165
|
+
bool
|
166
|
+
True if the class is a valid abstract interface, False otherwise.
|
167
|
+
"""
|
168
|
+
pass
|
@@ -1,5 +1,5 @@
|
|
1
1
|
from typing import Any
|
2
|
-
from orionis.luminate.contracts.facades.commands.
|
2
|
+
from orionis.luminate.contracts.facades.commands.commands_facade import ICommand
|
3
3
|
from orionis.luminate.facades.app_facade import app
|
4
4
|
from orionis.luminate.services.commands.reactor_commands_service import ReactorCommandsService
|
5
5
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
from typing import Any
|
2
|
-
from orionis.luminate.contracts.facades.commands.
|
2
|
+
from orionis.luminate.contracts.facades.commands.scheduler_facade import ISchedule
|
3
3
|
from orionis.luminate.facades.app_facade import app
|
4
4
|
from orionis.luminate.services.commands.scheduler_service import ScheduleService
|
5
5
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
from typing import Any, Optional
|
2
|
-
from orionis.luminate.contracts.facades.config.
|
2
|
+
from orionis.luminate.contracts.facades.config.config_facade import IConfig
|
3
3
|
from orionis.luminate.facades.app_facade import app
|
4
4
|
from orionis.luminate.services.config.config_service import ConfigService
|
5
5
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
from orionis.luminate.contracts.facades.environment.
|
1
|
+
from orionis.luminate.contracts.facades.environment.environment_facade import IEnv
|
2
2
|
from orionis.luminate.facades.app_facade import app
|
3
3
|
from orionis.luminate.services.environment.environment_service import EnvironmentService
|
4
4
|
|
@@ -28,7 +28,6 @@ def env(key: str, default=None) -> str:
|
|
28
28
|
|
29
29
|
class Env(IEnv):
|
30
30
|
|
31
|
-
|
32
31
|
@staticmethod
|
33
32
|
def get(key: str, default=None) -> str:
|
34
33
|
"""
|
@@ -2,7 +2,7 @@ import importlib
|
|
2
2
|
import pathlib
|
3
3
|
from dataclasses import asdict
|
4
4
|
from typing import Any, Dict
|
5
|
-
from orionis.luminate.contracts.foundation.config.
|
5
|
+
from orionis.luminate.contracts.foundation.config.config_bootstrapper import IConfigBootstrapper
|
6
6
|
from orionis.luminate.contracts.config.i_config import IConfig
|
7
7
|
from orionis.luminate.foundation.exceptions.exception_bootstrapper import BootstrapRuntimeError
|
8
8
|
|
@@ -2,7 +2,7 @@ import pathlib
|
|
2
2
|
import importlib
|
3
3
|
import inspect
|
4
4
|
from typing import Any, Callable, Dict, List
|
5
|
-
from orionis.luminate.contracts.foundation.console.
|
5
|
+
from orionis.luminate.contracts.foundation.console.command_bootstrapper import ICommandsBootstrapper
|
6
6
|
from orionis.luminate.foundation.exceptions.exception_bootstrapper import BootstrapRuntimeError
|
7
7
|
from orionis.luminate.console.base.command import BaseCommand
|
8
8
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
from typing import Dict
|
2
|
-
from orionis.luminate.contracts.foundation.environment.
|
2
|
+
from orionis.luminate.contracts.foundation.environment.environment_bootstrapper import IEnvironmentBootstrapper
|
3
3
|
from orionis.luminate.services.environment.environment_service import EnvironmentService
|
4
4
|
|
5
5
|
class EnvironmentBootstrapper(IEnvironmentBootstrapper):
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import importlib
|
2
2
|
import inspect
|
3
3
|
import pathlib
|
4
|
-
from orionis.luminate.contracts.foundation.providers.
|
4
|
+
from orionis.luminate.contracts.foundation.providers.service_providers_bootstrapper import IServiceProvidersBootstrapper
|
5
5
|
from orionis.luminate.container.container import Container
|
6
6
|
from orionis.luminate.foundation.exceptions.exception_bootstrapper import BootstrapRuntimeError
|
7
7
|
from orionis.luminate.providers.service_provider import ServiceProvider
|
@@ -1,3 +1,4 @@
|
|
1
|
+
from orionis.luminate.contracts.services.commands.reactor_commands_service import IReactorCommandsService
|
1
2
|
from orionis.luminate.providers.service_provider import ServiceProvider
|
2
3
|
from orionis.luminate.services.commands.reactor_commands_service import ReactorCommandsService
|
3
4
|
|
@@ -7,7 +8,7 @@ class ReactorCommandsServiceProvider(ServiceProvider):
|
|
7
8
|
"""
|
8
9
|
Registers services or bindings into the given container.
|
9
10
|
"""
|
10
|
-
self._container_id = self.app.singleton(ReactorCommandsService)
|
11
|
+
self._container_id = self.app.singleton(IReactorCommandsService, ReactorCommandsService)
|
11
12
|
|
12
13
|
def boot(self,) -> None:
|
13
14
|
"""
|
@@ -1,3 +1,4 @@
|
|
1
|
+
from orionis.luminate.contracts.services.commands.schedule_service import IScheduleService
|
1
2
|
from orionis.luminate.providers.service_provider import ServiceProvider
|
2
3
|
from orionis.luminate.services.commands.scheduler_service import ScheduleService
|
3
4
|
|
@@ -7,7 +8,7 @@ class ScheduleServiceProvider(ServiceProvider):
|
|
7
8
|
"""
|
8
9
|
Registers services or bindings into the given container.
|
9
10
|
"""
|
10
|
-
self._container_id = self.app.scoped(ScheduleService)
|
11
|
+
self._container_id = self.app.scoped(IScheduleService, ScheduleService)
|
11
12
|
|
12
13
|
def boot(self,) -> None:
|
13
14
|
"""
|
@@ -1,3 +1,4 @@
|
|
1
|
+
from orionis.luminate.contracts.services.config.config_service import IConfigService
|
1
2
|
from orionis.luminate.providers.service_provider import ServiceProvider
|
2
3
|
from orionis.luminate.services.config.config_service import ConfigService
|
3
4
|
|
@@ -7,7 +8,7 @@ class ConfigServiceProvider(ServiceProvider):
|
|
7
8
|
"""
|
8
9
|
Registers services or bindings into the given container.
|
9
10
|
"""
|
10
|
-
self._container_id = self.app.scoped(ConfigService)
|
11
|
+
self._container_id = self.app.scoped(IConfigService, ConfigService)
|
11
12
|
|
12
13
|
def boot(self,) -> None:
|
13
14
|
"""
|
@@ -1,3 +1,4 @@
|
|
1
|
+
from orionis.luminate.contracts.services.environment.environment_service import IEnvironmentService
|
1
2
|
from orionis.luminate.providers.service_provider import ServiceProvider
|
2
3
|
from orionis.luminate.services.environment.environment_service import EnvironmentService
|
3
4
|
from orionis.luminate.services.files.path_resolver_service import PathResolverService
|
@@ -10,7 +11,7 @@ class EnvironmentServiceProvider(ServiceProvider):
|
|
10
11
|
"""
|
11
12
|
Registers services or bindings into the given container.
|
12
13
|
"""
|
13
|
-
self._container_id = self.app.singleton(EnvironmentService)
|
14
|
+
self._container_id = self.app.singleton(IEnvironmentService, EnvironmentService)
|
14
15
|
|
15
16
|
def boot(self) -> None:
|
16
17
|
"""
|
@@ -1,3 +1,4 @@
|
|
1
|
+
from orionis.luminate.contracts.services.files.path_resolver_service import IPathResolverService
|
1
2
|
from orionis.luminate.providers.service_provider import ServiceProvider
|
2
3
|
from orionis.luminate.services.files.path_resolver_service import PathResolverService
|
3
4
|
|
@@ -9,7 +10,7 @@ class PathResolverProvider(ServiceProvider):
|
|
9
10
|
"""
|
10
11
|
Registers services or bindings into the given container.
|
11
12
|
"""
|
12
|
-
self._container_id = self.app.singleton(PathResolverService)
|
13
|
+
self._container_id = self.app.singleton(IPathResolverService, PathResolverService)
|
13
14
|
|
14
15
|
def boot(self) -> None:
|
15
16
|
"""
|
@@ -1,3 +1,4 @@
|
|
1
|
+
from orionis.luminate.contracts.services.log.log_service import ILogguerService
|
1
2
|
from orionis.luminate.providers.service_provider import ServiceProvider
|
2
3
|
from orionis.luminate.services.log.log_service import LogguerService
|
3
4
|
|
@@ -7,7 +8,7 @@ class LogServiceProvider(ServiceProvider):
|
|
7
8
|
"""
|
8
9
|
Registers services or bindings into the given container.
|
9
10
|
"""
|
10
|
-
self._container_id = self.app.singleton(LogguerService)
|
11
|
+
self._container_id = self.app.singleton(ILogguerService, LogguerService)
|
11
12
|
|
12
13
|
def boot(self) -> None:
|
13
14
|
"""
|
@@ -1,4 +1,4 @@
|
|
1
|
-
from orionis.luminate.contracts.providers.
|
1
|
+
from orionis.luminate.contracts.providers.service_provider import IServiceProvider
|
2
2
|
from orionis.luminate.container.container import Container
|
3
3
|
|
4
4
|
class ServiceProvider(IServiceProvider):
|
@@ -14,7 +14,6 @@ class ServiceProvider(IServiceProvider):
|
|
14
14
|
# Indicates whether the service provider is a bootstrapper.
|
15
15
|
beferoBootstrapping = False
|
16
16
|
|
17
|
-
|
18
17
|
def __init__(self, app : Container) -> None:
|
19
18
|
"""
|
20
19
|
Initialize the service provider with the given container.
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import time
|
2
2
|
from typing import Any, Dict, Optional
|
3
|
-
from orionis.luminate.contracts.services.commands.i_reactor_commands_service import IReactorCommandsService
|
4
3
|
from orionis.luminate.foundation.console.command_bootstrapper import CommandsBootstrapper
|
5
4
|
from orionis.luminate.console.base.command import BaseCommand
|
6
5
|
from orionis.luminate.console.command_filter import CommandFilter
|
@@ -11,7 +10,7 @@ from orionis.luminate.console.parser import Parser
|
|
11
10
|
from orionis.luminate.facades.app_facade import app
|
12
11
|
from orionis.luminate.facades.log.log_facade import Log
|
13
12
|
|
14
|
-
class ReactorCommandsService
|
13
|
+
class ReactorCommandsService:
|
15
14
|
"""
|
16
15
|
Service responsible for executing and managing CLI commands in Orionis.
|
17
16
|
|
@@ -7,11 +7,10 @@ from typing import Any
|
|
7
7
|
from apscheduler.schedulers.background import BackgroundScheduler
|
8
8
|
from apscheduler.triggers.cron import CronTrigger
|
9
9
|
from apscheduler.triggers.interval import IntervalTrigger
|
10
|
-
from orionis.luminate.contracts.services.commands.i_schedule_service import IScheduleService
|
11
10
|
from orionis.luminate.console.exceptions.cli_exception import CLIOrionisScheduleException
|
12
11
|
from orionis.luminate.facades.commands.commands_facade import Command
|
13
12
|
|
14
|
-
class ScheduleService
|
13
|
+
class ScheduleService:
|
15
14
|
"""
|
16
15
|
A class that manages the scheduling of tasks using the APScheduler.
|
17
16
|
|
@@ -1,9 +1,8 @@
|
|
1
1
|
import copy
|
2
2
|
from typing import Any, Optional
|
3
|
-
from orionis.luminate.contracts.services.config.i_config_service import IConfigService
|
4
3
|
from orionis.luminate.foundation.config.config_bootstrapper import ConfigBootstrapper
|
5
4
|
|
6
|
-
class ConfigService
|
5
|
+
class ConfigService:
|
7
6
|
|
8
7
|
def __init__(self, config_bootstrapper: ConfigBootstrapper) -> None:
|
9
8
|
"""
|
@@ -3,9 +3,8 @@ import os
|
|
3
3
|
from pathlib import Path
|
4
4
|
from typing import Any
|
5
5
|
from dotenv import set_key, unset_key, dotenv_values
|
6
|
-
from orionis.luminate.contracts.services.environment.i_environment_service import IEnvironmentService
|
7
6
|
|
8
|
-
class EnvironmentService
|
7
|
+
class EnvironmentService:
|
9
8
|
|
10
9
|
def __init__(self, path: str = None):
|
11
10
|
|
@@ -4,10 +4,9 @@ from pathlib import Path
|
|
4
4
|
import re
|
5
5
|
from datetime import datetime
|
6
6
|
from logging.handlers import RotatingFileHandler, TimedRotatingFileHandler
|
7
|
-
from orionis.luminate.contracts.services.log.i_log_service import ILogguerService
|
8
7
|
from orionis.luminate.services.config.config_service import ConfigService
|
9
8
|
|
10
|
-
class LogguerService
|
9
|
+
class LogguerService:
|
11
10
|
"""
|
12
11
|
A service class for logging messages with different severity levels.
|
13
12
|
|
@@ -3,7 +3,7 @@ import inspect
|
|
3
3
|
import importlib
|
4
4
|
from enum import Enum
|
5
5
|
from typing import Any, List, Optional
|
6
|
-
from orionis.luminate.contracts.support.
|
6
|
+
from orionis.luminate.contracts.support.reflection import IReflection
|
7
7
|
|
8
8
|
class Reflection(IReflection):
|
9
9
|
"""
|
orionis/luminate/support/std.py
CHANGED