orionis 0.338.0__py3-none-any.whl → 0.339.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.
Files changed (80) hide show
  1. orionis/container/__init__.py +70 -0
  2. orionis/container/context/__init__.py +9 -0
  3. orionis/container/contracts/__init__.py +9 -0
  4. orionis/container/entities/__init__.py +7 -0
  5. orionis/container/enums/__init__.py +7 -0
  6. orionis/container/exceptions/__init__.py +13 -0
  7. orionis/container/facades/__init__.py +7 -0
  8. orionis/container/providers/__init__.py +7 -0
  9. orionis/container/validators/__init__.py +23 -0
  10. orionis/foundation/__init__.py +52 -0
  11. orionis/foundation/config/__init__.py +128 -0
  12. orionis/foundation/config/app/__init__.py +10 -0
  13. orionis/foundation/config/app/entities/__init__.py +7 -0
  14. orionis/foundation/config/app/enums/__init__.py +9 -0
  15. orionis/foundation/config/auth/__init__.py +7 -0
  16. orionis/foundation/config/auth/entities/__init__.py +7 -0
  17. orionis/foundation/config/cache/__init__.py +11 -0
  18. orionis/foundation/config/cache/entities/__init__.py +11 -0
  19. orionis/foundation/config/cache/enums/__init__.py +7 -0
  20. orionis/foundation/config/cors/__init__.py +7 -0
  21. orionis/foundation/config/cors/entities/__init__.py +7 -0
  22. orionis/foundation/config/database/__init__.py +61 -0
  23. orionis/foundation/config/database/entities/__init__.py +17 -0
  24. orionis/foundation/config/database/enums/__init__.py +40 -0
  25. orionis/foundation/config/filesystems/__init__.py +17 -0
  26. orionis/foundation/config/filesystems/entitites/__init__.py +15 -0
  27. orionis/foundation/config/logging/__init__.py +30 -0
  28. orionis/foundation/config/logging/entities/__init__.py +21 -0
  29. orionis/foundation/config/logging/enums/__init__.py +7 -0
  30. orionis/foundation/config/mail/__init__.py +15 -0
  31. orionis/foundation/config/mail/entities/__init__.py +13 -0
  32. orionis/foundation/config/queue/__init__.py +20 -0
  33. orionis/foundation/config/queue/entities/__init__.py +11 -0
  34. orionis/foundation/config/queue/enums/__init__.py +7 -0
  35. orionis/foundation/config/roots/__init__.py +7 -0
  36. orionis/foundation/config/session/__init__.py +20 -0
  37. orionis/foundation/config/session/entities/__init__.py +7 -0
  38. orionis/foundation/config/session/enums/__init__.py +7 -0
  39. orionis/foundation/config/session/helpers/__init__.py +7 -0
  40. orionis/foundation/config/testing/__init__.py +14 -0
  41. orionis/foundation/config/testing/entities/__init__.py +7 -0
  42. orionis/foundation/config/testing/enums/__init__.py +7 -0
  43. orionis/foundation/contracts/__init__.py +7 -0
  44. orionis/foundation/exceptions/__init__.py +9 -0
  45. orionis/metadata/__init__.py +34 -0
  46. orionis/metadata/framework.py +1 -1
  47. orionis/patterns/__init__.py +8 -0
  48. orionis/patterns/singleton/__init__.py +7 -0
  49. orionis/services/asynchrony/__init__.py +11 -0
  50. orionis/services/asynchrony/contracts/__init__.py +7 -0
  51. orionis/services/asynchrony/coroutines.py +2 -2
  52. orionis/services/asynchrony/exceptions/__init__.py +7 -0
  53. orionis/services/environment/__init__.py +29 -0
  54. orionis/services/environment/contracts/__init__.py +9 -0
  55. orionis/services/environment/exceptions/__init__.py +9 -0
  56. orionis/services/introspection/__init__.py +68 -0
  57. orionis/services/introspection/abstract/__init__.py +7 -0
  58. orionis/services/introspection/callables/__init__.py +7 -0
  59. orionis/services/introspection/concretes/__init__.py +7 -0
  60. orionis/services/introspection/contracts/__init__.py +15 -0
  61. orionis/services/introspection/dependencies/__init__.py +22 -0
  62. orionis/services/introspection/dependencies/entities/__init__.py +13 -0
  63. orionis/services/introspection/exceptions/__init__.py +11 -0
  64. orionis/services/introspection/instances/__init__.py +7 -0
  65. orionis/services/introspection/modules/__init__.py +7 -0
  66. orionis/services/log/__init__.py +7 -0
  67. orionis/services/parsers/__init__.py +20 -0
  68. orionis/services/parsers/contracts/__init__.py +7 -0
  69. orionis/services/parsers/exceptions/__init__.py +7 -0
  70. orionis/services/paths/__init__.py +24 -0
  71. orionis/services/paths/contracts/__init__.py +7 -0
  72. orionis/services/paths/exceptions/__init__.py +9 -0
  73. orionis/services/system/__init__.py +17 -0
  74. orionis/services/system/contracts/__init__.py +9 -0
  75. {orionis-0.338.0.dist-info → orionis-0.339.0.dist-info}/METADATA +1 -1
  76. {orionis-0.338.0.dist-info → orionis-0.339.0.dist-info}/RECORD +80 -77
  77. {orionis-0.338.0.dist-info → orionis-0.339.0.dist-info}/WHEEL +0 -0
  78. {orionis-0.338.0.dist-info → orionis-0.339.0.dist-info}/licenses/LICENCE +0 -0
  79. {orionis-0.338.0.dist-info → orionis-0.339.0.dist-info}/top_level.txt +0 -0
  80. {orionis-0.338.0.dist-info → orionis-0.339.0.dist-info}/zip-safe +0 -0
@@ -0,0 +1,70 @@
1
+ # Import main container classes
2
+ from .container import Container
3
+ from .resolver import Resolver
4
+
5
+ # Import entities
6
+ from .entities import Binding
7
+
8
+ # Import enums
9
+ from .enums import Lifetime
10
+
11
+ # Import exceptions
12
+ from .exceptions import (
13
+ OrionisContainerAttributeError,
14
+ OrionisContainerException,
15
+ OrionisContainerTypeError,
16
+ OrionisContainerValueError
17
+ )
18
+
19
+ # Import contracts/interfaces
20
+ from .contracts import (
21
+ IContainer,
22
+ IServiceProvider
23
+ )
24
+
25
+ # Import validators (commonly used)
26
+ from .validators import (
27
+ ImplementsAbstractMethods,
28
+ IsAbstractClass,
29
+ IsCallable,
30
+ IsConcreteClass,
31
+ IsInstance,
32
+ IsNotSubclass,
33
+ IsSubclass,
34
+ IsValidAlias,
35
+ LifetimeValidator
36
+ )
37
+
38
+ # Define the public API of this module
39
+ __all__ = [
40
+ # Main classes
41
+ "Container",
42
+ "Resolver",
43
+
44
+ # Entities
45
+ "Binding",
46
+
47
+ # Enums
48
+ "Lifetime",
49
+
50
+ # Exceptions
51
+ "OrionisContainerAttributeError",
52
+ "OrionisContainerException",
53
+ "OrionisContainerTypeError",
54
+ "OrionisContainerValueError",
55
+
56
+ # Contracts
57
+ "IContainer",
58
+ "IServiceProvider",
59
+
60
+ # Validators
61
+ "ImplementsAbstractMethods",
62
+ "IsAbstractClass",
63
+ "IsCallable",
64
+ "IsConcreteClass",
65
+ "IsInstance",
66
+ "IsNotSubclass",
67
+ "IsSubclass",
68
+ "IsValidAlias",
69
+ "LifetimeValidator",
70
+ ]
@@ -0,0 +1,9 @@
1
+ # Import all necessary components for the context module
2
+ from .manager import ScopeManager
3
+ from .scope import ScopedContext
4
+
5
+ # Define the public API of this module
6
+ __all__ = [
7
+ "ScopeManager",
8
+ "ScopedContext"
9
+ ]
@@ -0,0 +1,9 @@
1
+ # Import all necessary components for the context module
2
+ from .container import IContainer
3
+ from .service_provider import IServiceProvider
4
+
5
+ # Define the public API of this module
6
+ __all__ = [
7
+ "IContainer",
8
+ "IServiceProvider"
9
+ ]
@@ -0,0 +1,7 @@
1
+ # Import all necessary components for the context module
2
+ from .binding import Binding
3
+
4
+ # Define the public API of this module
5
+ __all__ = [
6
+ "Binding"
7
+ ]
@@ -0,0 +1,7 @@
1
+ # Import all necessary components for the container module
2
+ from .lifetimes import Lifetime
3
+
4
+ # Define the public API of this module
5
+ __all__ = [
6
+ "Lifetime"
7
+ ]
@@ -0,0 +1,13 @@
1
+ # Import all necessary components for the container exceptions module
2
+ from .attribute_error import OrionisContainerAttributeError
3
+ from .container_exception import OrionisContainerException
4
+ from .type_error_exception import OrionisContainerTypeError
5
+ from .value_exception import OrionisContainerValueError
6
+
7
+ # Define the public API of this module
8
+ __all__ = [
9
+ "OrionisContainerAttributeError",
10
+ "OrionisContainerException",
11
+ "OrionisContainerTypeError",
12
+ "OrionisContainerValueError"
13
+ ]
@@ -0,0 +1,7 @@
1
+ # Import all necessary components for the facade module
2
+ from .facade import Facade
3
+
4
+ # Define the public API of this module
5
+ __all__ = [
6
+ "Facade"
7
+ ]
@@ -0,0 +1,7 @@
1
+ # Import the ServiceProvider class from the service_provider module
2
+ from .service_provider import ServiceProvider
3
+
4
+ # Import all necessary components for the service provider module
5
+ __all__ = [
6
+ "ServiceProvider"
7
+ ]
@@ -0,0 +1,23 @@
1
+ # Import container validators
2
+ from .implements import ImplementsAbstractMethods
3
+ from .is_abstract_class import IsAbstractClass
4
+ from .is_callable import IsCallable
5
+ from .is_concrete_class import IsConcreteClass
6
+ from .is_instance import IsInstance
7
+ from .is_not_subclass import IsNotSubclass
8
+ from .is_subclass import IsSubclass
9
+ from .is_valid_alias import IsValidAlias
10
+ from .lifetime import LifetimeValidator
11
+
12
+ # Define the public API of this module
13
+ __all__ = [
14
+ "ImplementsAbstractMethods",
15
+ "IsAbstractClass",
16
+ "IsCallable",
17
+ "IsConcreteClass",
18
+ "IsInstance",
19
+ "IsNotSubclass",
20
+ "IsSubclass",
21
+ "IsValidAlias",
22
+ "LifetimeValidator",
23
+ ]
@@ -0,0 +1,52 @@
1
+ # Import main foundation classes
2
+ from .application import App
3
+
4
+ # Import configuration components
5
+ from .config import (
6
+ Configuration,
7
+ App as AppConfig,
8
+ Cipher,
9
+ Environments,
10
+ Auth,
11
+ Cache,
12
+ CacheFile,
13
+ Stores,
14
+ CacheDrivers,
15
+ Cors,
16
+ Paths
17
+ )
18
+
19
+ # Import contracts
20
+ from .contracts import IConfig
21
+
22
+ # Import exceptions
23
+ from .exceptions import (
24
+ OrionisIntegrityException,
25
+ OrionisValueError
26
+ )
27
+
28
+ # Define the public API of this module
29
+ __all__ = [
30
+ # Main foundation class
31
+ "App",
32
+
33
+ # Configuration
34
+ "Configuration",
35
+ "AppConfig",
36
+ "Cipher",
37
+ "Environments",
38
+ "Auth",
39
+ "Cache",
40
+ "CacheFile",
41
+ "Stores",
42
+ "CacheDrivers",
43
+ "Cors",
44
+ "Paths",
45
+
46
+ # Contracts
47
+ "IConfig",
48
+
49
+ # Exceptions
50
+ "OrionisIntegrityException",
51
+ "OrionisValueError",
52
+ ]
@@ -0,0 +1,128 @@
1
+ # Import configuration startup
2
+ from .startup import Configuration
3
+
4
+ # Import specific configuration modules
5
+ from .app import App, Cipher, Environments
6
+ from .auth import Auth
7
+ from .cache import Cache, File as CacheFile, Stores, Drivers as CacheDrivers
8
+ from .cors import Cors
9
+ from .database import (
10
+ Connections,
11
+ Database,
12
+ MySQL,
13
+ Oracle,
14
+ PGSQL,
15
+ SQLite,
16
+ MySQLCharset,
17
+ MySQLCollation,
18
+ MySQLEngine,
19
+ OracleEncoding,
20
+ OracleNencoding,
21
+ PGSQLCharset,
22
+ PGSQLCollation,
23
+ PGSQLSSLMode,
24
+ SQLiteForeignKey,
25
+ SQLiteJournalMode,
26
+ SQLiteSynchronous
27
+ )
28
+ from .filesystems import S3, Disks, Filesystems, Local, Public
29
+ from .logging import (
30
+ Channels,
31
+ Chunked,
32
+ Daily,
33
+ Hourly,
34
+ Logging,
35
+ Monthly,
36
+ Stack,
37
+ Weekly,
38
+ Level
39
+ )
40
+ from .mail import File as MailFile, Mail, Mailers, Smtp
41
+ from .queue import Brokers, Database as QueueDatabase, Queue, Strategy
42
+ from .roots import Paths
43
+ from .session import Session, SameSitePolicy, SecretKey
44
+ from .testing import Testing, ExecutionMode
45
+
46
+ # Define the public API of this module
47
+ __all__ = [
48
+ # Main configuration
49
+ "Configuration",
50
+
51
+ # App configuration
52
+ "App",
53
+ "Cipher",
54
+ "Environments",
55
+
56
+ # Auth configuration
57
+ "Auth",
58
+
59
+ # Cache configuration
60
+ "Cache",
61
+ "CacheFile",
62
+ "Stores",
63
+ "CacheDrivers",
64
+
65
+ # CORS configuration
66
+ "Cors",
67
+
68
+ # Database configuration
69
+ "Connections",
70
+ "Database",
71
+ "MySQL",
72
+ "Oracle",
73
+ "PGSQL",
74
+ "SQLite",
75
+ "MySQLCharset",
76
+ "MySQLCollation",
77
+ "MySQLEngine",
78
+ "OracleEncoding",
79
+ "OracleNencoding",
80
+ "PGSQLCharset",
81
+ "PGSQLCollation",
82
+ "PGSQLSSLMode",
83
+ "SQLiteForeignKey",
84
+ "SQLiteJournalMode",
85
+ "SQLiteSynchronous",
86
+
87
+ # Filesystems configuration
88
+ "S3",
89
+ "Disks",
90
+ "Filesystems",
91
+ "Local",
92
+ "Public",
93
+
94
+ # Logging configuration
95
+ "Channels",
96
+ "Chunked",
97
+ "Daily",
98
+ "Hourly",
99
+ "Logging",
100
+ "Monthly",
101
+ "Stack",
102
+ "Weekly",
103
+ "Level",
104
+
105
+ # Mail configuration
106
+ "MailFile",
107
+ "Mail",
108
+ "Mailers",
109
+ "Smtp",
110
+
111
+ # Queue configuration
112
+ "Brokers",
113
+ "QueueDatabase",
114
+ "Queue",
115
+ "Strategy",
116
+
117
+ # Paths configuration
118
+ "Paths",
119
+
120
+ # Session configuration
121
+ "Session",
122
+ "SameSitePolicy",
123
+ "SecretKey",
124
+
125
+ # Testing configuration
126
+ "Testing",
127
+ "ExecutionMode",
128
+ ]
@@ -0,0 +1,10 @@
1
+ # Import app configuration components
2
+ from .entities import App
3
+ from .enums import Cipher, Environments
4
+
5
+ # Define the public API of this module
6
+ __all__ = [
7
+ "App",
8
+ "Cipher",
9
+ "Environments",
10
+ ]
@@ -0,0 +1,7 @@
1
+ # Import app entities
2
+ from .app import App
3
+
4
+ # Define the public API of this module
5
+ __all__ = [
6
+ "App",
7
+ ]
@@ -0,0 +1,9 @@
1
+ # Import app enums
2
+ from .ciphers import Cipher
3
+ from .environments import Environments
4
+
5
+ # Define the public API of this module
6
+ __all__ = [
7
+ "Cipher",
8
+ "Environments",
9
+ ]
@@ -0,0 +1,7 @@
1
+ # Import auth configuration components
2
+ from .entities import Auth
3
+
4
+ # Define the public API of this module
5
+ __all__ = [
6
+ "Auth",
7
+ ]
@@ -0,0 +1,7 @@
1
+ # Import auth entities
2
+ from .auth import Auth
3
+
4
+ # Define the public API of this module
5
+ __all__ = [
6
+ "Auth",
7
+ ]
@@ -0,0 +1,11 @@
1
+ # Import cache configuration components
2
+ from .entities import Cache, File, Stores
3
+ from .enums import Drivers
4
+
5
+ # Define the public API of this module
6
+ __all__ = [
7
+ "Cache",
8
+ "File",
9
+ "Stores",
10
+ "Drivers",
11
+ ]
@@ -0,0 +1,11 @@
1
+ # Import cache entities
2
+ from .cache import Cache
3
+ from .file import File
4
+ from .stores import Stores
5
+
6
+ # Define the public API of this module
7
+ __all__ = [
8
+ "Cache",
9
+ "File",
10
+ "Stores",
11
+ ]
@@ -0,0 +1,7 @@
1
+ # Import cache enums
2
+ from .drivers import Drivers
3
+
4
+ # Define the public API of this module
5
+ __all__ = [
6
+ "Drivers",
7
+ ]
@@ -0,0 +1,7 @@
1
+ # Import cors configuration components
2
+ from .entities import Cors
3
+
4
+ # Define the public API of this module
5
+ __all__ = [
6
+ "Cors",
7
+ ]
@@ -0,0 +1,7 @@
1
+ # Import cors entities
2
+ from .cors import Cors
3
+
4
+ # Define the public API of this module
5
+ __all__ = [
6
+ "Cors",
7
+ ]
@@ -0,0 +1,61 @@
1
+ # Import database entities
2
+ from .entities import (
3
+ Connections,
4
+ Database,
5
+ MySQL,
6
+ Oracle,
7
+ PGSQL,
8
+ SQLite
9
+ )
10
+
11
+ # Import database enums
12
+ from .enums import (
13
+ # MySQL enums
14
+ MySQLCharset,
15
+ MySQLCollation,
16
+ MySQLEngine,
17
+
18
+ # Oracle enums
19
+ OracleEncoding,
20
+ OracleNencoding,
21
+
22
+ # PostgreSQL enums
23
+ PGSQLCharset,
24
+ PGSQLCollation,
25
+ PGSQLSSLMode,
26
+
27
+ # SQLite enums
28
+ SQLiteForeignKey,
29
+ SQLiteJournalMode,
30
+ SQLiteSynchronous
31
+ )
32
+
33
+ # Define the public API of this module
34
+ __all__ = [
35
+ # Database entities
36
+ "Connections",
37
+ "Database",
38
+ "MySQL",
39
+ "Oracle",
40
+ "PGSQL",
41
+ "SQLite",
42
+
43
+ # MySQL enums
44
+ "MySQLCharset",
45
+ "MySQLCollation",
46
+ "MySQLEngine",
47
+
48
+ # Oracle enums
49
+ "OracleEncoding",
50
+ "OracleNencoding",
51
+
52
+ # PostgreSQL enums
53
+ "PGSQLCharset",
54
+ "PGSQLCollation",
55
+ "PGSQLSSLMode",
56
+
57
+ # SQLite enums
58
+ "SQLiteForeignKey",
59
+ "SQLiteJournalMode",
60
+ "SQLiteSynchronous",
61
+ ]
@@ -0,0 +1,17 @@
1
+ # Import database entities
2
+ from .connections import Connections
3
+ from .database import Database
4
+ from .mysql import MySQL
5
+ from .oracle import Oracle
6
+ from .pgsql import PGSQL
7
+ from .sqlite import SQLite
8
+
9
+ # Define the public API of this module
10
+ __all__ = [
11
+ "Connections",
12
+ "Database",
13
+ "MySQL",
14
+ "Oracle",
15
+ "PGSQL",
16
+ "SQLite",
17
+ ]
@@ -0,0 +1,40 @@
1
+ # Import MySQL enums
2
+ from .mysql_charsets import MySQLCharset
3
+ from .mysql_collations import MySQLCollation
4
+ from .mysql_engine import MySQLEngine
5
+
6
+ # Import Oracle enums
7
+ from .oracle_encoding import OracleEncoding
8
+ from .oracle_nencoding import OracleNencoding
9
+
10
+ # Import PostgreSQL enums
11
+ from .pgsql_charsets import PGSQLCharset
12
+ from .pgsql_collations import PGSQLCollation
13
+ from .pgsql_mode import PGSQLSSLMode
14
+
15
+ # Import SQLite enums
16
+ from .sqlite_foreign_key import SQLiteForeignKey
17
+ from .sqlite_journal import SQLiteJournalMode
18
+ from .sqlite_synchronous import SQLiteSynchronous
19
+
20
+ # Define the public API of this module
21
+ __all__ = [
22
+ # MySQL enums
23
+ "MySQLCharset",
24
+ "MySQLCollation",
25
+ "MySQLEngine",
26
+
27
+ # Oracle enums
28
+ "OracleEncoding",
29
+ "OracleNencoding",
30
+
31
+ # PostgreSQL enums
32
+ "PGSQLCharset",
33
+ "PGSQLCollation",
34
+ "PGSQLSSLMode",
35
+
36
+ # SQLite enums
37
+ "SQLiteForeignKey",
38
+ "SQLiteJournalMode",
39
+ "SQLiteSynchronous",
40
+ ]
@@ -0,0 +1,17 @@
1
+ # Import filesystems entities
2
+ from .entitites import (
3
+ S3,
4
+ Disks,
5
+ Filesystems,
6
+ Local,
7
+ Public
8
+ )
9
+
10
+ # Define the public API of this module
11
+ __all__ = [
12
+ "S3",
13
+ "Disks",
14
+ "Filesystems",
15
+ "Local",
16
+ "Public",
17
+ ]
@@ -0,0 +1,15 @@
1
+ # Import filesystems entities
2
+ from .aws import S3
3
+ from .disks import Disks
4
+ from .filesystems import Filesystems
5
+ from .local import Local
6
+ from .public import Public
7
+
8
+ # Define the public API of this module
9
+ __all__ = [
10
+ "S3",
11
+ "Disks",
12
+ "Filesystems",
13
+ "Local",
14
+ "Public",
15
+ ]
@@ -0,0 +1,30 @@
1
+ # Import logging entities
2
+ from .entities import (
3
+ Channels,
4
+ Chunked,
5
+ Daily,
6
+ Hourly,
7
+ Logging,
8
+ Monthly,
9
+ Stack,
10
+ Weekly
11
+ )
12
+
13
+ # Import logging enums
14
+ from .enums import Level
15
+
16
+ # Define the public API of this module
17
+ __all__ = [
18
+ # Logging entities
19
+ "Channels",
20
+ "Chunked",
21
+ "Daily",
22
+ "Hourly",
23
+ "Logging",
24
+ "Monthly",
25
+ "Stack",
26
+ "Weekly",
27
+
28
+ # Logging enums
29
+ "Level",
30
+ ]
@@ -0,0 +1,21 @@
1
+ # Import logging entities
2
+ from .channels import Channels
3
+ from .chunked import Chunked
4
+ from .daily import Daily
5
+ from .hourly import Hourly
6
+ from .logging import Logging
7
+ from .monthly import Monthly
8
+ from .stack import Stack
9
+ from .weekly import Weekly
10
+
11
+ # Define the public API of this module
12
+ __all__ = [
13
+ "Channels",
14
+ "Chunked",
15
+ "Daily",
16
+ "Hourly",
17
+ "Logging",
18
+ "Monthly",
19
+ "Stack",
20
+ "Weekly",
21
+ ]
@@ -0,0 +1,7 @@
1
+ # Import logging enums
2
+ from .levels import Level
3
+
4
+ # Define the public API of this module
5
+ __all__ = [
6
+ "Level",
7
+ ]
@@ -0,0 +1,15 @@
1
+ # Import mail entities
2
+ from .entities import (
3
+ File,
4
+ Mail,
5
+ Mailers,
6
+ Smtp
7
+ )
8
+
9
+ # Define the public API of this module
10
+ __all__ = [
11
+ "File",
12
+ "Mail",
13
+ "Mailers",
14
+ "Smtp",
15
+ ]