orionis 0.391.0__py3-none-any.whl → 0.393.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.
config/__init__.py ADDED
File without changes
config/app.py ADDED
@@ -0,0 +1,79 @@
1
+ from orionis.foundation.config.app.entities.app import App
2
+ from orionis.foundation.contracts.config import IConfig
3
+ from orionis.services.environment.helpers.functions import env
4
+
5
+ class Config(IConfig):
6
+
7
+ config = App(
8
+
9
+ #--------------------------------------------------------------------------
10
+ # Application Name
11
+ #--------------------------------------------------------------------------
12
+ # Defines the name of the application.
13
+ #
14
+ # This value is used in notifications, UI elements, logs, and anywhere
15
+ # the application's name needs to be displayed.
16
+ #--------------------------------------------------------------------------
17
+
18
+ name = env('APP_NAME', 'Orionis'),
19
+
20
+ #--------------------------------------------------------------------------
21
+ # Debug Mode
22
+ #--------------------------------------------------------------------------
23
+ # Enables or disables detailed error reporting.
24
+ #
25
+ # When set to True, the application will display detailed error messages,
26
+ # which is useful during development but should be disabled in production.
27
+ #--------------------------------------------------------------------------
28
+
29
+ debug = env('APP_DEBUG', False),
30
+
31
+ #--------------------------------------------------------------------------
32
+ # Timezone Configuration
33
+ #--------------------------------------------------------------------------
34
+ # Defines the application's default timezone.
35
+ #
36
+ # This setting ensures consistency when handling timestamps, logs,
37
+ # and scheduled tasks. The default value is 'UTC'.
38
+ #--------------------------------------------------------------------------
39
+
40
+ timezone = env('APP_TIMEZONE', 'UTC'),
41
+
42
+ #--------------------------------------------------------------------------
43
+ # Uvicorn Server Configuration
44
+ #--------------------------------------------------------------------------
45
+ # Defines the settings for running the application with Uvicorn.
46
+ #
47
+ # - `url` : The host address for the application.
48
+ # - `port` : The port number on which the application will run.
49
+ # - `workers` : Number of worker processes to handle requests.
50
+ # - `reload` : Enables auto-reloading when code changes (useful for development).
51
+ #--------------------------------------------------------------------------
52
+
53
+ url = env('APP_URL', '127.0.0.1'),
54
+ port = env('APP_PORT', 8080),
55
+ workers = env('APP_WORKERS', 1),
56
+ reload = env('APP_RELOAD', False),
57
+
58
+ #--------------------------------------------------------------------------
59
+ # Application Encryption
60
+ #--------------------------------------------------------------------------
61
+ # Defines the encryption method and key used by the framework.
62
+ #
63
+ # The encryption method used is AES-256-GCM, which ensures secure data
64
+ # encryption. The key should be properly set via environment variables.
65
+ # Supported key sizes: 128, 192, or 256-bit.
66
+ #--------------------------------------------------------------------------
67
+
68
+ cipher = 'AES-256-GCM',
69
+ key = env('APP_KEY'),
70
+
71
+ #--------------------------------------------------------------------------
72
+ # Additional Values
73
+ #--------------------------------------------------------------------------
74
+ # If your application requires additional configurations, you can define
75
+ # them in this dictionary.
76
+ #--------------------------------------------------------------------------
77
+
78
+ # custom = {}
79
+ )
orionis/__init__.py CHANGED
@@ -1,9 +1,11 @@
1
1
  from orionis.foundation.application import (
2
2
  Application as Orionis,
3
- IApplication as IOrionis
3
+ IApplication as IOrionis,
4
+ Configuration as Config
4
5
  )
5
6
 
6
7
  __all__ = [
7
8
  "Orionis",
8
- "IOrionis"
9
+ "IOrionis",
10
+ "Config"
9
11
  ]