orionis 0.347.0__py3-none-any.whl → 0.362.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 +0 -70
- orionis/container/container.py +2 -2
- orionis/container/context/__init__.py +0 -9
- orionis/container/contracts/__init__.py +0 -9
- orionis/container/entities/__init__.py +0 -7
- orionis/container/entities/binding.py +1 -1
- orionis/container/enums/__init__.py +0 -2
- orionis/container/exceptions/__init__.py +0 -2
- orionis/container/facades/__init__.py +0 -7
- orionis/container/facades/facade.py +1 -2
- orionis/container/providers/__init__.py +0 -7
- orionis/container/resolver/__init__.py +0 -0
- orionis/container/{resolver.py → resolver/resolver.py} +1 -1
- orionis/container/validators/__init__.py +0 -23
- orionis/container/validators/implements.py +8 -1
- orionis/container/validators/is_abstract_class.py +1 -1
- orionis/container/validators/is_callable.py +1 -1
- orionis/container/validators/is_concrete_class.py +1 -1
- orionis/container/validators/is_instance.py +1 -1
- orionis/container/validators/is_not_subclass.py +1 -1
- orionis/container/validators/is_subclass.py +1 -1
- orionis/container/validators/is_valid_alias.py +1 -1
- orionis/container/validators/lifetime.py +1 -1
- orionis/foundation/__init__.py +0 -52
- orionis/foundation/config/__init__.py +0 -128
- orionis/foundation/config/app/__init__.py +0 -10
- orionis/foundation/config/app/entities/__init__.py +0 -7
- orionis/foundation/config/app/entities/app.py +2 -3
- orionis/foundation/config/app/enums/__init__.py +1 -3
- orionis/foundation/config/auth/__init__.py +0 -7
- orionis/foundation/config/auth/entities/__init__.py +0 -7
- orionis/foundation/config/cache/__init__.py +0 -11
- orionis/foundation/config/cache/entities/__init__.py +0 -11
- orionis/foundation/config/cache/entities/cache.py +2 -2
- orionis/foundation/config/cache/entities/file.py +1 -1
- orionis/foundation/config/cache/entities/stores.py +1 -1
- orionis/foundation/config/cache/enums/__init__.py +1 -3
- orionis/foundation/config/cors/__init__.py +0 -7
- orionis/foundation/config/cors/entities/__init__.py +0 -7
- orionis/foundation/config/cors/entities/cors.py +1 -1
- orionis/foundation/config/database/__init__.py +0 -61
- orionis/foundation/config/database/entities/__init__.py +0 -17
- orionis/foundation/config/database/entities/connections.py +1 -1
- orionis/foundation/config/database/entities/database.py +1 -1
- orionis/foundation/config/database/entities/mysql.py +6 -4
- orionis/foundation/config/database/entities/oracle.py +5 -3
- orionis/foundation/config/database/entities/pgsql.py +5 -3
- orionis/foundation/config/database/entities/sqlite.py +5 -3
- orionis/foundation/config/database/enums/__init__.py +8 -8
- orionis/foundation/config/filesystems/__init__.py +0 -17
- orionis/foundation/config/filesystems/entitites/__init__.py +0 -15
- orionis/foundation/config/filesystems/entitites/aws.py +1 -1
- orionis/foundation/config/filesystems/entitites/disks.py +1 -1
- orionis/foundation/config/filesystems/entitites/filesystems.py +1 -1
- orionis/foundation/config/filesystems/entitites/local.py +1 -1
- orionis/foundation/config/filesystems/entitites/public.py +1 -1
- orionis/foundation/config/logging/__init__.py +0 -30
- orionis/foundation/config/logging/entities/__init__.py +0 -21
- orionis/foundation/config/logging/entities/channels.py +1 -1
- orionis/foundation/config/logging/entities/chunked.py +2 -2
- orionis/foundation/config/logging/entities/daily.py +2 -2
- orionis/foundation/config/logging/entities/hourly.py +2 -2
- orionis/foundation/config/logging/entities/logging.py +1 -1
- orionis/foundation/config/logging/entities/monthly.py +2 -2
- orionis/foundation/config/logging/entities/stack.py +2 -2
- orionis/foundation/config/logging/entities/weekly.py +2 -2
- orionis/foundation/config/logging/enums/__init__.py +0 -2
- orionis/foundation/config/mail/__init__.py +0 -15
- orionis/foundation/config/mail/entities/__init__.py +0 -13
- orionis/foundation/config/mail/entities/file.py +1 -1
- orionis/foundation/config/mail/entities/mail.py +1 -1
- orionis/foundation/config/mail/entities/mailers.py +1 -1
- orionis/foundation/config/mail/entities/smtp.py +1 -1
- orionis/foundation/config/queue/__init__.py +0 -20
- orionis/foundation/config/queue/entities/__init__.py +0 -11
- orionis/foundation/config/queue/entities/brokers.py +1 -1
- orionis/foundation/config/queue/entities/database.py +2 -2
- orionis/foundation/config/queue/entities/queue.py +1 -1
- orionis/foundation/config/queue/enums/__init__.py +1 -3
- orionis/foundation/config/roots/__init__.py +0 -7
- orionis/foundation/config/roots/paths.py +1 -1
- orionis/foundation/config/session/__init__.py +0 -20
- orionis/foundation/config/session/entities/__init__.py +0 -7
- orionis/foundation/config/session/entities/session.py +2 -2
- orionis/foundation/config/session/enums/__init__.py +1 -3
- orionis/foundation/config/session/helpers/__init__.py +0 -7
- orionis/foundation/config/startup.py +1 -1
- orionis/foundation/config/testing/__init__.py +0 -14
- orionis/foundation/config/testing/entities/__init__.py +0 -7
- orionis/foundation/config/testing/entities/testing.py +1 -1
- orionis/foundation/config/testing/enums/__init__.py +1 -3
- orionis/foundation/contracts/__init__.py +0 -7
- orionis/foundation/exceptions/__init__.py +2 -4
- orionis/foundation/providers/__init__.py +0 -0
- orionis/metadata/__init__.py +0 -46
- orionis/metadata/framework.py +1 -1
- orionis/patterns/singleton/__init__.py +0 -7
- orionis/services/asynchrony/__init__.py +0 -7
- orionis/services/asynchrony/contracts/__init__.py +0 -7
- orionis/services/asynchrony/coroutines.py +2 -2
- orionis/services/asynchrony/exceptions/__init__.py +1 -3
- orionis/services/environment/__init__.py +0 -7
- orionis/services/environment/contracts/__init__.py +0 -9
- orionis/services/environment/{core/dot_env.py → dot_env.py} +3 -2
- orionis/services/environment/env.py +2 -2
- orionis/services/environment/exceptions/__init__.py +0 -9
- orionis/services/environment/{types/env_types.py → types.py} +2 -1
- orionis/services/introspection/__init__.py +0 -68
- orionis/services/introspection/abstract/__init__.py +0 -7
- orionis/services/introspection/callables/__init__.py +0 -7
- orionis/services/introspection/concretes/__init__.py +0 -7
- orionis/services/introspection/contracts/__init__.py +0 -15
- orionis/services/introspection/dependencies/__init__.py +0 -22
- orionis/services/introspection/dependencies/entities/__init__.py +0 -13
- orionis/services/introspection/exceptions/__init__.py +0 -11
- orionis/services/introspection/instances/__init__.py +0 -7
- orionis/services/introspection/modules/__init__.py +0 -7
- orionis/services/log/__init__.py +0 -7
- orionis/services/parsers/__init__.py +0 -20
- orionis/services/parsers/contracts/__init__.py +0 -7
- orionis/services/parsers/exceptions/__init__.py +0 -7
- orionis/services/paths/__init__.py +0 -24
- orionis/services/paths/contracts/__init__.py +0 -7
- orionis/services/paths/exceptions/__init__.py +0 -9
- orionis/services/system/__init__.py +0 -17
- orionis/services/system/contracts/__init__.py +0 -9
- orionis/support/standard/__init__.py +0 -9
- orionis/support/standard/contracts/__init__.py +0 -5
- orionis/support/standard/exceptions/__init__.py +0 -5
- orionis/support/standard/std.py +2 -2
- orionis/support/wrapper/__init__.py +0 -5
- orionis/support/wrapper/dicts/__init__.py +0 -5
- orionis/test/__init__.py +0 -63
- orionis/test/cases/__init__.py +0 -9
- orionis/test/cases/test_async.py +1 -1
- orionis/test/cases/test_case.py +1 -1
- orionis/test/cases/test_sync.py +1 -1
- orionis/test/contracts/__init__.py +0 -11
- orionis/test/contracts/{unit_test.py → test_unit.py} +2 -2
- orionis/test/entities/__init__.py +0 -5
- orionis/test/entities/test_result.py +1 -1
- orionis/test/enums/__init__.py +0 -7
- orionis/test/exceptions/__init__.py +0 -13
- orionis/test/logs/__init__.py +0 -5
- orionis/test/logs/history.py +4 -3
- orionis/test/output/__init__.py +0 -7
- orionis/test/output/dumper.py +2 -2
- orionis/test/output/printer.py +3 -3
- orionis/test/suite/__init__.py +0 -5
- orionis/test/suite/{unit_test.py → test_unit.py} +10 -7
- orionis/test/test_suite.py +1 -1
- orionis/test/view/__init__.py +0 -5
- orionis/test/view/render.py +2 -2
- orionis/unittesting.py +64 -0
- {orionis-0.347.0.dist-info → orionis-0.362.0.dist-info}/METADATA +1 -1
- {orionis-0.347.0.dist-info → orionis-0.362.0.dist-info}/RECORD +221 -222
- tests/example/test_example.py +1 -1
- tests/foundation/config/app/test_foundation_config_app.py +1 -1
- tests/foundation/config/auth/test_foundation_config_auth.py +1 -1
- tests/foundation/config/cache/test_foundation_config_cache.py +1 -1
- tests/foundation/config/cache/test_foundation_config_cache_file.py +1 -1
- tests/foundation/config/cache/test_foundation_config_cache_stores.py +1 -1
- tests/foundation/config/cors/test_foundation_config_cors.py +1 -1
- tests/foundation/config/database/test_foundation_config_database.py +1 -1
- tests/foundation/config/database/test_foundation_config_database_connections.py +1 -1
- tests/foundation/config/database/test_foundation_config_database_mysql.py +1 -1
- tests/foundation/config/database/test_foundation_config_database_oracle.py +1 -1
- tests/foundation/config/database/test_foundation_config_database_pgsql.py +1 -1
- tests/foundation/config/database/test_foundation_config_database_sqlite.py +1 -1
- tests/foundation/config/filesystems/test_foundation_config_filesystems.py +1 -1
- tests/foundation/config/filesystems/test_foundation_config_filesystems_aws.py +1 -1
- tests/foundation/config/filesystems/test_foundation_config_filesystems_disks.py +1 -1
- tests/foundation/config/filesystems/test_foundation_config_filesystems_local.py +1 -1
- tests/foundation/config/filesystems/test_foundation_config_filesystems_public.py +1 -1
- tests/foundation/config/logging/test_foundation_config_logging.py +1 -1
- tests/foundation/config/logging/test_foundation_config_logging_channels.py +1 -1
- tests/foundation/config/logging/test_foundation_config_logging_chunked.py +1 -1
- tests/foundation/config/logging/test_foundation_config_logging_daily.py +1 -1
- tests/foundation/config/logging/test_foundation_config_logging_hourly.py +1 -1
- tests/foundation/config/logging/test_foundation_config_logging_monthly.py +1 -1
- tests/foundation/config/logging/test_foundation_config_logging_stack.py +1 -1
- tests/foundation/config/logging/test_foundation_config_logging_weekly.py +1 -1
- tests/foundation/config/mail/test_foundation_config_mail.py +1 -1
- tests/foundation/config/mail/test_foundation_config_mail_file.py +1 -1
- tests/foundation/config/mail/test_foundation_config_mail_mailers.py +1 -1
- tests/foundation/config/mail/test_foundation_config_mail_smtp.py +1 -1
- tests/foundation/config/queue/test_foundation_config_queue.py +1 -1
- tests/foundation/config/queue/test_foundation_config_queue_brokers.py +1 -1
- tests/foundation/config/queue/test_foundation_config_queue_database.py +1 -1
- tests/foundation/config/root/test_foundation_config_root_paths.py +1 -1
- tests/foundation/config/session/test_foundation_config_session.py +1 -1
- tests/foundation/config/startup/test_foundation_config_startup.py +1 -1
- tests/foundation/config/testing/test_foundation_config_testing.py +1 -1
- tests/foundation/exceptions/test_foundation_config_exceptions.py +1 -1
- tests/metadata/test_metadata_framework.py +2 -2
- tests/metadata/test_metadata_package.py +1 -1
- tests/patterns/singleton/test_patterns_singleton.py +2 -2
- tests/services/asynchrony/test_services_asynchrony_coroutine.py +3 -3
- tests/services/environment/test_services_environment.py +3 -3
- tests/services/inspection/dependencies/test_reflect_dependencies.py +1 -1
- tests/services/inspection/reflection/test_reflection_abstract.py +1 -1
- tests/services/inspection/reflection/test_reflection_callable.py +1 -1
- tests/services/inspection/reflection/test_reflection_concrete.py +1 -1
- tests/services/inspection/reflection/test_reflection_instance.py +1 -1
- tests/services/inspection/reflection/test_reflection_module.py +1 -1
- tests/services/inspection/test_reflection.py +1 -1
- tests/services/parsers/test_services_parser_exceptions.py +1 -1
- tests/services/path/test_services_resolver.py +1 -1
- tests/services/system/test_services_system_imports.py +1 -1
- tests/services/system/test_services_system_workers.py +1 -1
- tests/support/standard/test_services_std.py +2 -2
- tests/support/wrapper/test_services_wrapper_docdict.py +2 -2
- tests/testing/test_testing_result.py +1 -1
- tests/testing/test_testing_unit.py +2 -1
- orionis/services/environment/core/__init__.py +0 -7
- orionis/services/environment/helpers/__init__.py +0 -7
- orionis/services/environment/helpers/functions.py +0 -21
- orionis/services/environment/types/__init__.py +0 -7
- /orionis/foundation/exceptions/{value_error.py → value.py} +0 -0
- /orionis/patterns/singleton/{meta_class.py → meta.py} +0 -0
- /orionis/services/asynchrony/exceptions/{coroutine_exception.py → exception.py} +0 -0
- {orionis-0.347.0.dist-info → orionis-0.362.0.dist-info}/WHEEL +0 -0
- {orionis-0.347.0.dist-info → orionis-0.362.0.dist-info}/licenses/LICENCE +0 -0
- {orionis-0.347.0.dist-info → orionis-0.362.0.dist-info}/top_level.txt +0 -0
- {orionis-0.347.0.dist-info → orionis-0.362.0.dist-info}/zip-safe +0 -0
|
@@ -1,14 +0,0 @@
|
|
|
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
|
-
]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
from dataclasses import asdict, dataclass, field, fields
|
|
2
2
|
from typing import List
|
|
3
|
-
from orionis.foundation.exceptions
|
|
3
|
+
from orionis.foundation.exceptions import OrionisIntegrityException
|
|
4
4
|
from orionis.services.system.workers import Workers
|
|
5
5
|
from orionis.test.enums.test_mode import ExecutionMode
|
|
6
6
|
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
# Import foundation exceptions
|
|
2
1
|
from .integrity import OrionisIntegrityException
|
|
3
|
-
from .
|
|
2
|
+
from .value import OrionisValueError
|
|
4
3
|
|
|
5
|
-
# Define the public API of this module
|
|
6
4
|
__all__ = [
|
|
7
5
|
"OrionisIntegrityException",
|
|
8
|
-
"OrionisValueError"
|
|
6
|
+
"OrionisValueError"
|
|
9
7
|
]
|
|
File without changes
|
orionis/metadata/__init__.py
CHANGED
|
@@ -1,46 +0,0 @@
|
|
|
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
|
-
CLASSIFIERS,
|
|
14
|
-
KEYWORDS,
|
|
15
|
-
REQUIRES,
|
|
16
|
-
get_classifiers,
|
|
17
|
-
get_requires,
|
|
18
|
-
get_svg_assets
|
|
19
|
-
)
|
|
20
|
-
|
|
21
|
-
# Import package utilities
|
|
22
|
-
from .package import PypiPackageApi
|
|
23
|
-
|
|
24
|
-
# Define the public API of this module
|
|
25
|
-
__all__ = [
|
|
26
|
-
# Framework metadata constants
|
|
27
|
-
"NAME",
|
|
28
|
-
"VERSION",
|
|
29
|
-
"AUTHOR",
|
|
30
|
-
"AUTHOR_EMAIL",
|
|
31
|
-
"DESCRIPTION",
|
|
32
|
-
"SKELETON",
|
|
33
|
-
"FRAMEWORK",
|
|
34
|
-
"DOCS",
|
|
35
|
-
"API",
|
|
36
|
-
"PYTHON_REQUIRES",
|
|
37
|
-
"CLASSIFIERS",
|
|
38
|
-
"KEYWORDS",
|
|
39
|
-
"REQUIRES",
|
|
40
|
-
"get_classifiers",
|
|
41
|
-
"get_requires",
|
|
42
|
-
"get_svg_assets",
|
|
43
|
-
|
|
44
|
-
# Package utilities
|
|
45
|
-
"PypiPackageApi",
|
|
46
|
-
]
|
orionis/metadata/framework.py
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import asyncio
|
|
2
2
|
from typing import Any, Coroutine as TypingCoroutine, TypeVar, Union
|
|
3
|
-
from orionis.services.asynchrony.contracts import ICoroutine
|
|
3
|
+
from orionis.services.asynchrony.contracts.coroutines import ICoroutine
|
|
4
4
|
from orionis.services.asynchrony.exceptions import OrionisCoroutineException
|
|
5
|
-
from orionis.services.introspection import Inspection
|
|
5
|
+
from orionis.services.introspection.inspection import Inspection
|
|
6
6
|
|
|
7
7
|
T = TypeVar("T")
|
|
8
8
|
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
from .coroutine_exception import OrionisCoroutineException
|
|
1
|
+
from .exception import OrionisCoroutineException
|
|
3
2
|
|
|
4
|
-
# Define the public API of this module
|
|
5
3
|
__all__ = [
|
|
6
4
|
"OrionisCoroutineException"
|
|
7
5
|
]
|
|
@@ -5,8 +5,9 @@ import threading
|
|
|
5
5
|
from pathlib import Path
|
|
6
6
|
from typing import Any, Optional, Union
|
|
7
7
|
from dotenv import dotenv_values, load_dotenv, set_key, unset_key
|
|
8
|
-
from orionis.patterns.singleton import Singleton
|
|
9
|
-
from orionis.services.environment.exceptions import OrionisEnvironmentValueException
|
|
8
|
+
from orionis.patterns.singleton.meta import Singleton
|
|
9
|
+
from orionis.services.environment.exceptions.environment_value_exception import OrionisEnvironmentValueException
|
|
10
|
+
from orionis.services.environment.exceptions.environment_value_error import OrionisEnvironmentValueError
|
|
10
11
|
from orionis.services.environment.types import EnvTypes
|
|
11
12
|
|
|
12
13
|
class DotEnv(metaclass=Singleton):
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
from orionis.services.environment.contracts import IEnv
|
|
2
|
-
from orionis.services.environment.
|
|
1
|
+
from orionis.services.environment.contracts.env import IEnv
|
|
2
|
+
from orionis.services.environment.dot_env import DotEnv
|
|
3
3
|
from typing import Any, Dict
|
|
4
4
|
|
|
5
5
|
def env(key: str, default: Any = None) -> Any:
|
|
@@ -1,9 +0,0 @@
|
|
|
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
|
-
]
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
from orionis.services.environment.contracts.types import IEnvTypes
|
|
2
|
-
from orionis.services.environment.exceptions import OrionisEnvironmentValueError
|
|
2
|
+
from orionis.services.environment.exceptions.environment_value_error import OrionisEnvironmentValueError
|
|
3
|
+
from orionis.services.environment.exceptions.environment_value_exception import OrionisEnvironmentValueException
|
|
3
4
|
|
|
4
5
|
class EnvTypes(IEnvTypes):
|
|
5
6
|
|
|
@@ -1,68 +0,0 @@
|
|
|
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
|
-
]
|
|
@@ -1,15 +0,0 @@
|
|
|
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
|
-
]
|
|
@@ -1,22 +0,0 @@
|
|
|
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
|
-
]
|
|
@@ -1,13 +0,0 @@
|
|
|
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
|
-
]
|
|
@@ -1,11 +0,0 @@
|
|
|
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
|
@@ -1,20 +0,0 @@
|
|
|
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
|
-
]
|
|
@@ -1,24 +0,0 @@
|
|
|
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
|
-
]
|
|
@@ -1,9 +0,0 @@
|
|
|
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
|
-
]
|
|
@@ -1,17 +0,0 @@
|
|
|
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 import IStdClass
|
|
2
|
-
from orionis.support.standard.exceptions import OrionisStdValueException
|
|
1
|
+
from orionis.support.standard.contracts.std import IStdClass
|
|
2
|
+
from orionis.support.standard.exceptions.std_value_exception import OrionisStdValueException
|
|
3
3
|
|
|
4
4
|
class StdClass(IStdClass):
|
|
5
5
|
"""
|
orionis/test/__init__.py
CHANGED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
# Import custom test case classes from the cases module
|
|
2
|
-
from .cases import TestCase, SyncTestCase, AsyncTestCase
|
|
3
|
-
|
|
4
|
-
# Import the custom TestHistory class for logging test results
|
|
5
|
-
from .logs import TestHistory
|
|
6
|
-
|
|
7
|
-
# Import the custom TestResult entity
|
|
8
|
-
from .entities import TestResult
|
|
9
|
-
|
|
10
|
-
# Import enums for execution mode and test status
|
|
11
|
-
from .enums import ExecutionMode, TestStatus
|
|
12
|
-
|
|
13
|
-
# Import custom exceptions for test failures
|
|
14
|
-
from .exceptions import (
|
|
15
|
-
OrionisTestFailureException,
|
|
16
|
-
OrionisTestConfigException,
|
|
17
|
-
OrionisTestPersistenceError,
|
|
18
|
-
OrionisTestRuntimeError,
|
|
19
|
-
OrionisTestValueError
|
|
20
|
-
)
|
|
21
|
-
|
|
22
|
-
# Import configuration and suite classes for organizing tests
|
|
23
|
-
from .test_suite import Configuration, TestSuite
|
|
24
|
-
from .suite import UnitTest
|
|
25
|
-
|
|
26
|
-
# Import standard unittest components for compatibility
|
|
27
|
-
from unittest import (
|
|
28
|
-
TestLoader,
|
|
29
|
-
TestSuite as StandardTestSuite,
|
|
30
|
-
TestResult as StandardTestResult
|
|
31
|
-
)
|
|
32
|
-
|
|
33
|
-
# Import mock classes for creating test doubles
|
|
34
|
-
from unittest.mock import (
|
|
35
|
-
Mock,
|
|
36
|
-
MagicMock,
|
|
37
|
-
patch
|
|
38
|
-
)
|
|
39
|
-
|
|
40
|
-
# Define the public API of this module
|
|
41
|
-
__all__ = [
|
|
42
|
-
"TestCase",
|
|
43
|
-
"SyncTestCase",
|
|
44
|
-
"AsyncTestCase",
|
|
45
|
-
"TestResult",
|
|
46
|
-
"ExecutionMode",
|
|
47
|
-
"TestStatus",
|
|
48
|
-
"OrionisTestFailureException",
|
|
49
|
-
"OrionisTestConfigException",
|
|
50
|
-
"OrionisTestPersistenceError",
|
|
51
|
-
"OrionisTestRuntimeError",
|
|
52
|
-
"OrionisTestValueError",
|
|
53
|
-
"Configuration",
|
|
54
|
-
"TestSuite",
|
|
55
|
-
"UnitTest",
|
|
56
|
-
"TestLoader",
|
|
57
|
-
"StandardTestSuite",
|
|
58
|
-
"StandardTestResult",
|
|
59
|
-
"Mock",
|
|
60
|
-
"MagicMock",
|
|
61
|
-
"TestHistory",
|
|
62
|
-
"patch",
|
|
63
|
-
]
|