orionis 0.337.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.
- orionis/container/__init__.py +70 -0
- orionis/container/context/__init__.py +9 -0
- orionis/container/contracts/__init__.py +9 -0
- orionis/container/entities/__init__.py +7 -0
- orionis/container/enums/__init__.py +7 -0
- orionis/container/exceptions/__init__.py +13 -0
- orionis/container/facades/__init__.py +7 -0
- orionis/container/providers/__init__.py +7 -0
- orionis/container/validators/__init__.py +23 -0
- orionis/foundation/__init__.py +52 -0
- orionis/foundation/config/__init__.py +128 -0
- orionis/foundation/config/app/__init__.py +10 -0
- orionis/foundation/config/app/entities/__init__.py +7 -0
- orionis/foundation/config/app/enums/__init__.py +9 -0
- orionis/foundation/config/auth/__init__.py +7 -0
- orionis/foundation/config/auth/entities/__init__.py +7 -0
- orionis/foundation/config/cache/__init__.py +11 -0
- orionis/foundation/config/cache/entities/__init__.py +11 -0
- orionis/foundation/config/cache/enums/__init__.py +7 -0
- orionis/foundation/config/cors/__init__.py +7 -0
- orionis/foundation/config/cors/entities/__init__.py +7 -0
- orionis/foundation/config/database/__init__.py +61 -0
- orionis/foundation/config/database/entities/__init__.py +17 -0
- orionis/foundation/config/database/enums/__init__.py +40 -0
- orionis/foundation/config/filesystems/__init__.py +17 -0
- orionis/foundation/config/filesystems/entitites/__init__.py +15 -0
- orionis/foundation/config/logging/__init__.py +30 -0
- orionis/foundation/config/logging/entities/__init__.py +21 -0
- orionis/foundation/config/logging/enums/__init__.py +7 -0
- orionis/foundation/config/mail/__init__.py +15 -0
- orionis/foundation/config/mail/entities/__init__.py +13 -0
- orionis/foundation/config/queue/__init__.py +20 -0
- orionis/foundation/config/queue/entities/__init__.py +11 -0
- orionis/foundation/config/queue/enums/__init__.py +7 -0
- orionis/foundation/config/roots/__init__.py +7 -0
- orionis/foundation/config/session/__init__.py +20 -0
- orionis/foundation/config/session/entities/__init__.py +7 -0
- orionis/foundation/config/session/enums/__init__.py +7 -0
- orionis/foundation/config/session/helpers/__init__.py +7 -0
- orionis/foundation/config/testing/__init__.py +14 -0
- orionis/foundation/config/testing/entities/__init__.py +7 -0
- orionis/foundation/config/testing/enums/__init__.py +7 -0
- orionis/foundation/contracts/__init__.py +7 -0
- orionis/foundation/exceptions/__init__.py +9 -0
- orionis/metadata/__init__.py +34 -0
- orionis/metadata/framework.py +1 -1
- orionis/patterns/__init__.py +8 -0
- orionis/patterns/singleton/__init__.py +7 -0
- orionis/services/asynchrony/__init__.py +11 -0
- orionis/services/asynchrony/contracts/__init__.py +7 -0
- orionis/services/asynchrony/coroutines.py +2 -2
- orionis/services/asynchrony/exceptions/__init__.py +7 -0
- orionis/services/environment/__init__.py +29 -0
- orionis/services/environment/contracts/__init__.py +9 -0
- orionis/services/environment/exceptions/__init__.py +9 -0
- orionis/services/introspection/__init__.py +68 -0
- orionis/services/introspection/abstract/__init__.py +7 -0
- orionis/services/introspection/callables/__init__.py +7 -0
- orionis/services/introspection/concretes/__init__.py +7 -0
- orionis/services/introspection/contracts/__init__.py +15 -0
- orionis/services/introspection/dependencies/__init__.py +22 -0
- orionis/services/introspection/dependencies/entities/__init__.py +13 -0
- orionis/services/introspection/exceptions/__init__.py +11 -0
- orionis/services/introspection/instances/__init__.py +7 -0
- orionis/services/introspection/modules/__init__.py +7 -0
- orionis/services/log/__init__.py +7 -0
- orionis/services/parsers/__init__.py +20 -0
- orionis/services/parsers/contracts/__init__.py +7 -0
- orionis/services/parsers/exceptions/__init__.py +7 -0
- orionis/services/paths/__init__.py +24 -0
- orionis/services/paths/contracts/__init__.py +7 -0
- orionis/services/paths/exceptions/__init__.py +9 -0
- orionis/services/system/__init__.py +17 -0
- orionis/services/system/contracts/__init__.py +9 -0
- orionis/support/standard/__init__.py +9 -0
- orionis/support/standard/contracts/__init__.py +5 -0
- orionis/support/standard/exceptions/__init__.py +5 -0
- orionis/support/standard/std.py +2 -2
- orionis/support/wrapper/__init__.py +5 -0
- orionis/support/wrapper/dicts/__init__.py +5 -0
- {orionis-0.337.0.dist-info → orionis-0.339.0.dist-info}/METADATA +1 -1
- {orionis-0.337.0.dist-info → orionis-0.339.0.dist-info}/RECORD +88 -85
- tests/support/standard/test_services_std.py +1 -1
- tests/support/wrapper/test_services_wrapper_docdict.py +1 -1
- {orionis-0.337.0.dist-info → orionis-0.339.0.dist-info}/WHEEL +0 -0
- {orionis-0.337.0.dist-info → orionis-0.339.0.dist-info}/licenses/LICENCE +0 -0
- {orionis-0.337.0.dist-info → orionis-0.339.0.dist-info}/top_level.txt +0 -0
- {orionis-0.337.0.dist-info → orionis-0.339.0.dist-info}/zip-safe +0 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Import queue entities
|
|
2
|
+
from .entities import (
|
|
3
|
+
Brokers,
|
|
4
|
+
Database,
|
|
5
|
+
Queue
|
|
6
|
+
)
|
|
7
|
+
|
|
8
|
+
# Import queue enums
|
|
9
|
+
from .enums import Strategy
|
|
10
|
+
|
|
11
|
+
# Define the public API of this module
|
|
12
|
+
__all__ = [
|
|
13
|
+
# Queue entities
|
|
14
|
+
"Brokers",
|
|
15
|
+
"Database",
|
|
16
|
+
"Queue",
|
|
17
|
+
|
|
18
|
+
# Queue enums
|
|
19
|
+
"Strategy",
|
|
20
|
+
]
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Import session entities
|
|
2
|
+
from .entities import Session
|
|
3
|
+
|
|
4
|
+
# Import session enums
|
|
5
|
+
from .enums import SameSitePolicy
|
|
6
|
+
|
|
7
|
+
# Import session helpers
|
|
8
|
+
from .helpers import SecretKey
|
|
9
|
+
|
|
10
|
+
# Define the public API of this module
|
|
11
|
+
__all__ = [
|
|
12
|
+
# Session entities
|
|
13
|
+
"Session",
|
|
14
|
+
|
|
15
|
+
# Session enums
|
|
16
|
+
"SameSitePolicy",
|
|
17
|
+
|
|
18
|
+
# Session helpers
|
|
19
|
+
"SecretKey",
|
|
20
|
+
]
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Import testing entities
|
|
2
|
+
from .entities import Testing
|
|
3
|
+
|
|
4
|
+
# Import testing enums
|
|
5
|
+
from .enums import ExecutionMode
|
|
6
|
+
|
|
7
|
+
# Define the public API of this module
|
|
8
|
+
__all__ = [
|
|
9
|
+
# Testing entities
|
|
10
|
+
"Testing",
|
|
11
|
+
|
|
12
|
+
# Testing enums
|
|
13
|
+
"ExecutionMode",
|
|
14
|
+
]
|
orionis/metadata/__init__.py
CHANGED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# Import framework metadata constants
|
|
2
|
+
from .framework import (
|
|
3
|
+
NAME,
|
|
4
|
+
VERSION,
|
|
5
|
+
AUTHOR,
|
|
6
|
+
AUTHOR_EMAIL,
|
|
7
|
+
DESCRIPTION,
|
|
8
|
+
SKELETON,
|
|
9
|
+
FRAMEWORK,
|
|
10
|
+
DOCS,
|
|
11
|
+
API,
|
|
12
|
+
PYTHON_REQUIRES
|
|
13
|
+
)
|
|
14
|
+
|
|
15
|
+
# Import package utilities
|
|
16
|
+
from .package import PypiPackageApi
|
|
17
|
+
|
|
18
|
+
# Define the public API of this module
|
|
19
|
+
__all__ = [
|
|
20
|
+
# Framework metadata constants
|
|
21
|
+
"NAME",
|
|
22
|
+
"VERSION",
|
|
23
|
+
"AUTHOR",
|
|
24
|
+
"AUTHOR_EMAIL",
|
|
25
|
+
"DESCRIPTION",
|
|
26
|
+
"SKELETON",
|
|
27
|
+
"FRAMEWORK",
|
|
28
|
+
"DOCS",
|
|
29
|
+
"API",
|
|
30
|
+
"PYTHON_REQUIRES",
|
|
31
|
+
|
|
32
|
+
# Package utilities
|
|
33
|
+
"PypiPackageApi",
|
|
34
|
+
]
|
orionis/metadata/framework.py
CHANGED
orionis/patterns/__init__.py
CHANGED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Importing necessary modules for asynchrony services in Orionis framework
|
|
2
|
+
from .coroutines import Coroutine
|
|
3
|
+
from .exceptions import OrionisCoroutineException
|
|
4
|
+
from .contracts import ICoroutine
|
|
5
|
+
|
|
6
|
+
# Defining the public API of this module
|
|
7
|
+
__all__ = [
|
|
8
|
+
"Coroutine",
|
|
9
|
+
"OrionisCoroutineException",
|
|
10
|
+
"ICoroutine"
|
|
11
|
+
]
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import asyncio
|
|
2
2
|
from typing import Any, Coroutine as TypingCoroutine, TypeVar, Union
|
|
3
|
-
from orionis.services.asynchrony.contracts
|
|
4
|
-
from orionis.services.asynchrony.exceptions
|
|
3
|
+
from orionis.services.asynchrony.contracts import ICoroutine
|
|
4
|
+
from orionis.services.asynchrony.exceptions import OrionisCoroutineException
|
|
5
5
|
from orionis.services.introspection.inspection import Inspection
|
|
6
6
|
|
|
7
7
|
T = TypeVar("T")
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Import environment services
|
|
2
|
+
from .dot_env import DotEnv
|
|
3
|
+
from .env import Env
|
|
4
|
+
from .types import EnvTypes
|
|
5
|
+
|
|
6
|
+
# Import environment contracts
|
|
7
|
+
from .contracts import IEnv, IEnvTypes
|
|
8
|
+
|
|
9
|
+
# Import environment exceptions
|
|
10
|
+
from .exceptions import (
|
|
11
|
+
OrionisEnvironmentValueError,
|
|
12
|
+
OrionisEnvironmentValueException
|
|
13
|
+
)
|
|
14
|
+
|
|
15
|
+
# Define the public API of this module
|
|
16
|
+
__all__ = [
|
|
17
|
+
# Environment services
|
|
18
|
+
"DotEnv",
|
|
19
|
+
"Env",
|
|
20
|
+
"EnvTypes",
|
|
21
|
+
|
|
22
|
+
# Environment contracts
|
|
23
|
+
"IEnv",
|
|
24
|
+
"IEnvTypes",
|
|
25
|
+
|
|
26
|
+
# Environment exceptions
|
|
27
|
+
"OrionisEnvironmentValueError",
|
|
28
|
+
"OrionisEnvironmentValueException",
|
|
29
|
+
]
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# Import environment exceptions
|
|
2
|
+
from .environment_value_error import OrionisEnvironmentValueError
|
|
3
|
+
from .environment_value_exception import OrionisEnvironmentValueException
|
|
4
|
+
|
|
5
|
+
# Define the public API of this module
|
|
6
|
+
__all__ = [
|
|
7
|
+
"OrionisEnvironmentValueError",
|
|
8
|
+
"OrionisEnvironmentValueException",
|
|
9
|
+
]
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
# Import main introspection services
|
|
2
|
+
from .inspection import Inspection
|
|
3
|
+
from .reflection import Reflection
|
|
4
|
+
|
|
5
|
+
# Import specialized reflection services
|
|
6
|
+
from .abstract import ReflectionAbstract
|
|
7
|
+
from .callables import ReflectionCallable
|
|
8
|
+
from .concretes import ReflectionConcrete
|
|
9
|
+
from .instances import ReflectionInstance
|
|
10
|
+
from .modules import ReflectionModule
|
|
11
|
+
|
|
12
|
+
# Import dependency services
|
|
13
|
+
from .dependencies import (
|
|
14
|
+
ReflectDependencies,
|
|
15
|
+
CallableDependency,
|
|
16
|
+
ClassDependency,
|
|
17
|
+
MethodDependency,
|
|
18
|
+
ResolvedDependency
|
|
19
|
+
)
|
|
20
|
+
|
|
21
|
+
# Import contracts
|
|
22
|
+
from .contracts import (
|
|
23
|
+
IReflectionAbstract,
|
|
24
|
+
IReflectionConcrete,
|
|
25
|
+
IReflectionInstance,
|
|
26
|
+
IReflectionModule,
|
|
27
|
+
IReflectDependencies
|
|
28
|
+
)
|
|
29
|
+
|
|
30
|
+
# Import exceptions
|
|
31
|
+
from .exceptions import (
|
|
32
|
+
ReflectionAttributeError,
|
|
33
|
+
ReflectionTypeError,
|
|
34
|
+
ReflectionValueError
|
|
35
|
+
)
|
|
36
|
+
|
|
37
|
+
# Define the public API of this module
|
|
38
|
+
__all__ = [
|
|
39
|
+
# Main introspection services
|
|
40
|
+
"Inspection",
|
|
41
|
+
"Reflection",
|
|
42
|
+
|
|
43
|
+
# Specialized reflection services
|
|
44
|
+
"ReflectionAbstract",
|
|
45
|
+
"ReflectionCallable",
|
|
46
|
+
"ReflectionConcrete",
|
|
47
|
+
"ReflectionInstance",
|
|
48
|
+
"ReflectionModule",
|
|
49
|
+
|
|
50
|
+
# Dependency services
|
|
51
|
+
"ReflectDependencies",
|
|
52
|
+
"CallableDependency",
|
|
53
|
+
"ClassDependency",
|
|
54
|
+
"MethodDependency",
|
|
55
|
+
"ResolvedDependency",
|
|
56
|
+
|
|
57
|
+
# Contracts
|
|
58
|
+
"IReflectionAbstract",
|
|
59
|
+
"IReflectionConcrete",
|
|
60
|
+
"IReflectionInstance",
|
|
61
|
+
"IReflectionModule",
|
|
62
|
+
"IReflectDependencies",
|
|
63
|
+
|
|
64
|
+
# Exceptions
|
|
65
|
+
"ReflectionAttributeError",
|
|
66
|
+
"ReflectionTypeError",
|
|
67
|
+
"ReflectionValueError",
|
|
68
|
+
]
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Import introspection contracts
|
|
2
|
+
from .reflection_abstract import IReflectionAbstract
|
|
3
|
+
from .reflection_concrete import IReflectionConcrete
|
|
4
|
+
from .reflection_instance import IReflectionInstance
|
|
5
|
+
from .reflection_module import IReflectionModule
|
|
6
|
+
from .reflect_dependencies import IReflectDependencies
|
|
7
|
+
|
|
8
|
+
# Define the public API of this module
|
|
9
|
+
__all__ = [
|
|
10
|
+
"IReflectionAbstract",
|
|
11
|
+
"IReflectionConcrete",
|
|
12
|
+
"IReflectionInstance",
|
|
13
|
+
"IReflectionModule",
|
|
14
|
+
"IReflectDependencies",
|
|
15
|
+
]
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Import dependency services
|
|
2
|
+
from .reflect_dependencies import ReflectDependencies
|
|
3
|
+
|
|
4
|
+
# Import dependency entities
|
|
5
|
+
from .entities import (
|
|
6
|
+
CallableDependency,
|
|
7
|
+
ClassDependency,
|
|
8
|
+
MethodDependency,
|
|
9
|
+
ResolvedDependency
|
|
10
|
+
)
|
|
11
|
+
|
|
12
|
+
# Define the public API of this module
|
|
13
|
+
__all__ = [
|
|
14
|
+
# Dependency services
|
|
15
|
+
"ReflectDependencies",
|
|
16
|
+
|
|
17
|
+
# Dependency entities
|
|
18
|
+
"CallableDependency",
|
|
19
|
+
"ClassDependency",
|
|
20
|
+
"MethodDependency",
|
|
21
|
+
"ResolvedDependency",
|
|
22
|
+
]
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Import dependency entities
|
|
2
|
+
from .callable_dependencies import CallableDependency
|
|
3
|
+
from .class_dependencies import ClassDependency
|
|
4
|
+
from .method_dependencies import MethodDependency
|
|
5
|
+
from .resolved_dependencies import ResolvedDependency
|
|
6
|
+
|
|
7
|
+
# Define the public API of this module
|
|
8
|
+
__all__ = [
|
|
9
|
+
"CallableDependency",
|
|
10
|
+
"ClassDependency",
|
|
11
|
+
"MethodDependency",
|
|
12
|
+
"ResolvedDependency",
|
|
13
|
+
]
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Import introspection exceptions
|
|
2
|
+
from .reflection_attribute_error import ReflectionAttributeError
|
|
3
|
+
from .reflection_type_error import ReflectionTypeError
|
|
4
|
+
from .reflection_value_error import ReflectionValueError
|
|
5
|
+
|
|
6
|
+
# Define the public API of this module
|
|
7
|
+
__all__ = [
|
|
8
|
+
"ReflectionAttributeError",
|
|
9
|
+
"ReflectionTypeError",
|
|
10
|
+
"ReflectionValueError",
|
|
11
|
+
]
|
orionis/services/log/__init__.py
CHANGED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Import main parser classes
|
|
2
|
+
from .serializer import Parser
|
|
3
|
+
|
|
4
|
+
# Import parser contracts
|
|
5
|
+
from .contracts import IExceptionParser
|
|
6
|
+
|
|
7
|
+
# Import parser implementations
|
|
8
|
+
from .exceptions import ExceptionParser
|
|
9
|
+
|
|
10
|
+
# Define the public API of this module
|
|
11
|
+
__all__ = [
|
|
12
|
+
# Main parser classes
|
|
13
|
+
"Parser",
|
|
14
|
+
|
|
15
|
+
# Contracts
|
|
16
|
+
"IExceptionParser",
|
|
17
|
+
|
|
18
|
+
# Parser implementations
|
|
19
|
+
"ExceptionParser",
|
|
20
|
+
]
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Import main path classes
|
|
2
|
+
from .resolver import Resolver
|
|
3
|
+
|
|
4
|
+
# Import path contracts
|
|
5
|
+
from .contracts import IResolver
|
|
6
|
+
|
|
7
|
+
# Import path exceptions
|
|
8
|
+
from .exceptions import (
|
|
9
|
+
OrionisFileNotFoundException,
|
|
10
|
+
OrionisPathValueException
|
|
11
|
+
)
|
|
12
|
+
|
|
13
|
+
# Define the public API of this module
|
|
14
|
+
__all__ = [
|
|
15
|
+
# Main path classes
|
|
16
|
+
"Resolver",
|
|
17
|
+
|
|
18
|
+
# Contracts
|
|
19
|
+
"IResolver",
|
|
20
|
+
|
|
21
|
+
# Exceptions
|
|
22
|
+
"OrionisFileNotFoundException",
|
|
23
|
+
"OrionisPathValueException",
|
|
24
|
+
]
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# Import path exceptions
|
|
2
|
+
from .not_found_exceptions import OrionisFileNotFoundException
|
|
3
|
+
from .path_value_exceptions import OrionisPathValueException
|
|
4
|
+
|
|
5
|
+
# Define the public API of this module
|
|
6
|
+
__all__ = [
|
|
7
|
+
"OrionisFileNotFoundException",
|
|
8
|
+
"OrionisPathValueException",
|
|
9
|
+
]
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Import main system classes
|
|
2
|
+
from .imports import Imports
|
|
3
|
+
from .workers import Workers
|
|
4
|
+
|
|
5
|
+
# Import system contracts
|
|
6
|
+
from .contracts import IImports, IWorkers
|
|
7
|
+
|
|
8
|
+
# Define the public API of this module
|
|
9
|
+
__all__ = [
|
|
10
|
+
# Main system classes
|
|
11
|
+
"Imports",
|
|
12
|
+
"Workers",
|
|
13
|
+
|
|
14
|
+
# Contracts
|
|
15
|
+
"IImports",
|
|
16
|
+
"IWorkers"
|
|
17
|
+
]
|
orionis/support/standard/std.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
from orionis.support.standard.contracts
|
|
2
|
-
from orionis.support.standard.exceptions
|
|
1
|
+
from orionis.support.standard.contracts import IStdClass
|
|
2
|
+
from orionis.support.standard.exceptions import OrionisStdValueException
|
|
3
3
|
|
|
4
4
|
class StdClass(IStdClass):
|
|
5
5
|
"""
|