orionis 0.253.0__py3-none-any.whl → 0.266.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/application.py +6 -0
- orionis/framework.py +1 -1
- orionis/luminate/{application.py → _application.py} +21 -19
- orionis/luminate/{container → _container}/container.py +4 -4
- orionis/luminate/{container → _container}/container_integrity.py +2 -2
- orionis/luminate/{container → _container}/resolve.py +2 -2
- orionis/luminate/{contracts → _contracts}/application.py +2 -2
- orionis/luminate/{contracts → _contracts}/console/task_manager.py +1 -1
- orionis/luminate/{contracts → _contracts}/facades/commands/scheduler_facade.py +1 -1
- orionis/luminate/{contracts → _contracts}/facades/facade.py +4 -3
- orionis/luminate/{contracts → _contracts}/foundation/providers/service_providers_bootstrapper.py +2 -2
- orionis/luminate/{contracts → _contracts}/providers/service_provider.py +1 -1
- orionis/luminate/{facades → _facades}/app_facade.py +2 -2
- orionis/luminate/{facades → _facades}/commands/commands_facade.py +3 -3
- orionis/luminate/{facades → _facades}/commands/scheduler_facade.py +3 -3
- orionis/luminate/{facades → _facades}/config/config_facade.py +3 -3
- orionis/luminate/{facades → _facades}/environment/environment_facade.py +3 -3
- orionis/luminate/{facades → _facades}/files/path_facade.py +4 -4
- orionis/luminate/{facades → _facades}/log/log_facade.py +2 -2
- orionis/luminate/{foundation → _foundation}/console/command_bootstrapper.py +2 -2
- orionis/luminate/{foundation → _foundation}/environment/environment_bootstrapper.py +3 -3
- orionis/luminate/{foundation → _foundation/foundation}/config/config_bootstrapper.py +3 -3
- orionis/luminate/{foundation → _foundation}/providers/service_providers_bootstrapper.py +4 -4
- orionis/luminate/{providers → _providers}/commands/reactor_commands_service_provider.py +7 -7
- orionis/luminate/{providers → _providers}/commands/scheduler_provider.py +3 -3
- orionis/luminate/{providers → _providers}/config/config_service_provider.py +3 -3
- orionis/luminate/{providers → _providers}/environment/environment__service_provider.py +4 -4
- orionis/luminate/_providers/files/paths_provider.py +21 -0
- orionis/luminate/{providers → _providers}/log/log_service_provider.py +5 -5
- orionis/luminate/{providers → _providers}/service_provider.py +2 -2
- orionis/luminate/{services_ → _services}/commands/reactor_commands_service.py +3 -3
- orionis/luminate/{services_ → _services}/commands/scheduler_service.py +1 -1
- orionis/luminate/{services_ → _services}/config/config_service.py +1 -1
- orionis/luminate/{services_ → _services}/log/log_service.py +1 -1
- orionis/luminate/app.py +19 -0
- orionis/luminate/console/base/command.py +1 -1
- orionis/luminate/console/command_filter.py +1 -1
- orionis/luminate/console/commands/help.py +1 -1
- orionis/luminate/console/commands/schedule_work.py +2 -2
- orionis/luminate/console/dumper/dump_die.py +1 -1
- orionis/luminate/console/kernel.py +1 -1
- orionis/luminate/console/output/console.py +3 -3
- 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/{config → foundation/config}/app/entities/app.py +44 -43
- orionis/luminate/{config → foundation/config}/auth/entities/auth.py +9 -1
- orionis/luminate/foundation/config/cache/entities/cache.py +74 -0
- orionis/luminate/foundation/config/cache/entities/file.py +46 -0
- orionis/luminate/foundation/config/cache/entities/stores.py +46 -0
- orionis/luminate/{contracts/config → foundation/config/contracts}/config.py +8 -12
- orionis/luminate/foundation/config/cors/entities/cors.py +129 -0
- orionis/luminate/foundation/config/database/entities/connections.py +89 -0
- orionis/luminate/foundation/config/database/entities/database.py +62 -0
- orionis/luminate/foundation/config/database/entities/mysql.py +270 -0
- orionis/luminate/foundation/config/database/entities/oracle.py +227 -0
- orionis/luminate/foundation/config/database/entities/pgsql.py +189 -0
- orionis/luminate/foundation/config/database/entities/sqlite.py +178 -0
- orionis/luminate/foundation/config/database/enums/mysql_charsets.py +92 -0
- orionis/luminate/foundation/config/database/enums/mysql_collations.py +53 -0
- orionis/luminate/foundation/config/database/enums/mysql_engine.py +18 -0
- orionis/luminate/foundation/config/database/enums/oracle_encoding.py +44 -0
- orionis/luminate/foundation/config/database/enums/oracle_nencoding.py +31 -0
- orionis/luminate/foundation/config/database/enums/pgsql_charsets.py +90 -0
- orionis/luminate/foundation/config/database/enums/pgsql_collations.py +26 -0
- orionis/luminate/foundation/config/database/enums/pgsql_mode.py +24 -0
- orionis/luminate/foundation/config/database/enums/sqlite_foreign_key.py +12 -0
- orionis/luminate/foundation/config/database/enums/sqlite_journal.py +22 -0
- orionis/luminate/foundation/config/database/enums/sqlite_synchronous.py +16 -0
- orionis/luminate/foundation/config/filesystems/entitites/aws.py +134 -0
- orionis/luminate/foundation/config/filesystems/entitites/disks.py +68 -0
- orionis/luminate/foundation/config/filesystems/entitites/filesystems.py +53 -0
- orionis/luminate/foundation/config/filesystems/entitites/local.py +39 -0
- orionis/luminate/foundation/config/filesystems/entitites/public.py +52 -0
- orionis/luminate/foundation/config/logging/entities/channels.py +115 -0
- orionis/luminate/foundation/config/logging/entities/chunked.py +128 -0
- orionis/luminate/foundation/config/logging/entities/daily.py +113 -0
- orionis/luminate/foundation/config/logging/entities/hourly.py +100 -0
- orionis/luminate/foundation/config/logging/entities/logging.py +51 -0
- orionis/luminate/foundation/config/logging/entities/monthly.py +100 -0
- orionis/luminate/foundation/config/logging/entities/stack.py +74 -0
- orionis/luminate/foundation/config/logging/entities/weekly.py +102 -0
- orionis/luminate/foundation/config/logging/enums/levels.py +21 -0
- orionis/luminate/foundation/config/mail/entities/file.py +41 -0
- orionis/luminate/foundation/config/mail/entities/mail.py +56 -0
- orionis/luminate/foundation/config/mail/entities/mailers.py +54 -0
- orionis/luminate/foundation/config/mail/entities/smtp.py +104 -0
- orionis/luminate/foundation/config/queue/entities/brokers.py +55 -0
- orionis/luminate/foundation/config/queue/entities/database.py +107 -0
- orionis/luminate/foundation/config/queue/entities/queue.py +47 -0
- orionis/luminate/foundation/config/queue/enums/strategy.py +15 -0
- orionis/luminate/foundation/config/roots/paths.py +446 -0
- orionis/luminate/foundation/config/session/entities/session.py +147 -0
- orionis/luminate/foundation/config/session/enums/same_site_policy.py +14 -0
- orionis/luminate/foundation/config/session/helpers/secret_key.py +16 -0
- orionis/luminate/foundation/config/startup.py +203 -0
- orionis/luminate/foundation/config/testing/entities/__init__.py +0 -0
- orionis/luminate/{config → foundation/config/testing}/entities/testing.py +36 -20
- orionis/luminate/foundation/config/testing/enums/__init__.py +0 -0
- orionis/luminate/foundation/config/testing/enums/test_mode.py +12 -0
- orionis/luminate/patterns/__init__.py +0 -4
- orionis/luminate/patterns/singleton/__init__.py +0 -10
- orionis/luminate/services/asynchrony/__init__.py +0 -0
- orionis/luminate/services/asynchrony/async_io.py +31 -0
- orionis/luminate/services/environment/__init__.py +0 -10
- orionis/luminate/services/environment/contracts/__init__.py +0 -5
- orionis/luminate/services/environment/contracts/env.py +0 -11
- orionis/luminate/services/environment/dot_env.py +87 -163
- orionis/luminate/services/environment/env.py +0 -11
- orionis/luminate/services/introspection/__init__.py +0 -0
- orionis/luminate/services/introspection/abstracts/__init__.py +0 -0
- orionis/luminate/services/introspection/abstracts/entities/__init__.py +0 -0
- orionis/luminate/services/introspection/abstracts/entities/abstract_class_attributes.py +37 -0
- orionis/luminate/{support → services}/introspection/abstracts/reflect_abstract.py +1 -1
- orionis/luminate/services/introspection/dependencies/__init__.py +0 -0
- orionis/luminate/services/introspection/dependencies/contracts/__init__.py +0 -0
- orionis/luminate/{support → services}/introspection/dependencies/contracts/reflect_dependencies.py +2 -2
- orionis/luminate/services/introspection/dependencies/entities/__init__.py +0 -0
- orionis/luminate/services/introspection/dependencies/entities/class_dependencies.py +41 -0
- orionis/luminate/services/introspection/dependencies/entities/method_dependencies.py +42 -0
- orionis/luminate/services/introspection/dependencies/entities/resolved_dependencies.py +49 -0
- orionis/luminate/{support → services}/introspection/dependencies/reflect_dependencies.py +4 -4
- orionis/luminate/services/parsers/__init__.py +0 -0
- orionis/luminate/services/parsers/contracts/__init__.py +0 -0
- orionis/luminate/{support/parsers/exception_parser.py → services/parsers/exception.py} +1 -1
- orionis/luminate/services/parsers/serializer.py +15 -0
- orionis/luminate/services/paths/__init__.py +0 -9
- orionis/luminate/services/paths/resolver.py +1 -1
- orionis/luminate/services/standard/__init__.py +0 -0
- orionis/luminate/services/standard/contracts/__init__.py +0 -0
- orionis/luminate/{support → services}/standard/std.py +1 -1
- orionis/luminate/services/system/__init__.py +0 -0
- orionis/luminate/services/system/contracts/__init__.py +0 -0
- orionis/luminate/services/system/contracts/imports.py +31 -0
- orionis/luminate/services/system/contracts/workers.py +18 -0
- orionis/luminate/services/system/imports.py +124 -0
- orionis/luminate/services/system/runtime_imports.py +70 -0
- orionis/luminate/services/{workers/maximum_workers.py → system/workers.py} +2 -1
- orionis/luminate/services/wrapper/__init__.py +0 -0
- orionis/luminate/services/wrapper/dicts/__init__.py +0 -0
- orionis/luminate/services/wrapper/dicts/dot_dict.py +115 -0
- orionis/luminate/support/introspection/__init__.py +0 -5
- orionis/luminate/support/introspection/container_integrity.py +2 -2
- orionis/luminate/support/introspection/instances/__init__.py +0 -5
- orionis/luminate/support/introspection/reflection.py +1 -1
- orionis/luminate/test/__init__.py +0 -23
- orionis/luminate/test/cases/test_async.py +41 -9
- orionis/luminate/test/cases/test_case.py +27 -13
- orionis/luminate/test/cases/test_sync.py +28 -6
- orionis/luminate/test/output/contracts/{test_std_out.py → dumper.py} +2 -1
- orionis/luminate/test/output/{test_std_out.py → dumper.py} +7 -4
- orionis/luminate/test/suites/__init__.py +0 -0
- orionis/luminate/test/suites/contracts/__init__.py +0 -0
- orionis/luminate/test/suites/contracts/test_suite.py +23 -0
- orionis/luminate/test/suites/test_suite.py +101 -0
- orionis/luminate/test/{core → suites}/test_unit.py +16 -8
- orionis/unittesting.py +43 -0
- {orionis-0.253.0.dist-info → orionis-0.266.0.dist-info}/METADATA +19 -3
- orionis-0.266.0.dist-info/RECORD +440 -0
- {orionis-0.253.0.dist-info → orionis-0.266.0.dist-info}/WHEEL +1 -1
- orionis-0.266.0.dist-info/entry_points.txt +2 -0
- orionis-0.266.0.dist-info/zip-safe +1 -0
- tests/example/test_example.py +1 -1
- tests/foundation/__init__.py +0 -0
- tests/foundation/config/__init__.py +0 -0
- tests/foundation/config/app/__init__.py +0 -0
- tests/foundation/config/app/test_app.py +140 -0
- tests/foundation/config/auth/__init__.py +0 -0
- tests/{config → foundation/config/auth}/test_auth.py +6 -3
- tests/foundation/config/cache/__init__.py +0 -0
- tests/foundation/config/cache/test_cache.py +98 -0
- tests/foundation/config/cache/test_cache_file.py +78 -0
- tests/foundation/config/cache/test_cache_stores.py +88 -0
- tests/foundation/config/cors/__init__.py +0 -0
- tests/foundation/config/cors/test_cors.py +121 -0
- tests/foundation/config/database/__init__.py +0 -0
- tests/foundation/config/database/test_database.py +108 -0
- tests/foundation/config/database/test_database_connections.py +129 -0
- tests/foundation/config/database/test_database_mysql.py +231 -0
- tests/foundation/config/database/test_database_oracle.py +204 -0
- tests/foundation/config/database/test_database_pgsql.py +187 -0
- tests/foundation/config/database/test_database_sqlite.py +153 -0
- tests/foundation/config/exceptions/__init__.py +0 -0
- tests/foundation/config/exceptions/test_exceptions_integrity.py +83 -0
- tests/foundation/config/filesystems/__init__.py +0 -0
- tests/foundation/config/filesystems/test_filesystems.py +110 -0
- tests/foundation/config/filesystems/test_filesystems_aws.py +133 -0
- tests/foundation/config/filesystems/test_filesystems_disks.py +114 -0
- tests/foundation/config/filesystems/test_filesystems_local.py +95 -0
- tests/foundation/config/filesystems/test_filesystems_public.py +120 -0
- tests/foundation/config/logging/__init__.py +0 -0
- tests/foundation/config/logging/test_logging.py +48 -0
- tests/foundation/config/logging/test_logging_channels.py +157 -0
- tests/foundation/config/logging/test_logging_chunked.py +166 -0
- tests/foundation/config/logging/test_logging_daily.py +153 -0
- tests/foundation/config/logging/test_logging_hourly.py +131 -0
- tests/foundation/config/logging/test_logging_monthly.py +133 -0
- tests/foundation/config/logging/test_logging_stack.py +124 -0
- tests/foundation/config/logging/test_logging_weekly.py +133 -0
- tests/foundation/config/mail/__init__.py +0 -0
- tests/foundation/config/mail/test_mail.py +73 -0
- tests/foundation/config/mail/test_mail_file.py +61 -0
- tests/foundation/config/mail/test_mail_mailers.py +58 -0
- tests/foundation/config/mail/test_mail_smtp.py +102 -0
- tests/foundation/config/queue/__init__.py +0 -0
- tests/foundation/config/queue/test_queue.py +58 -0
- tests/foundation/config/queue/test_queue_brokers.py +67 -0
- tests/foundation/config/queue/test_queue_database.py +95 -0
- tests/foundation/config/root/__init__.py +0 -0
- tests/foundation/config/root/test_root_paths.py +134 -0
- tests/foundation/config/session/__init__.py +0 -0
- tests/foundation/config/session/test_session.py +138 -0
- tests/foundation/config/startup/__init__.py +0 -0
- tests/foundation/config/startup/test_config_startup.py +134 -0
- tests/foundation/config/testing/__init__.py +0 -0
- tests/foundation/config/testing/test_testing.py +167 -0
- tests/patterns/singleton/test_singleton.py +2 -2
- tests/services/asynchrony/__init__.py +0 -0
- tests/{support/async_io/test_async_coroutine.py → services/asynchrony/test_async_io.py} +6 -5
- tests/services/environment/test_env.py +155 -33
- tests/services/inspection/__init__.py +0 -0
- tests/services/inspection/dependencies/__init__.py +0 -0
- tests/services/inspection/dependencies/mocks/__init__.py +0 -0
- tests/services/inspection/dependencies/mocks/mock_user.py +30 -0
- tests/services/inspection/dependencies/mocks/mock_user_controller.py +27 -0
- tests/services/inspection/dependencies/mocks/mock_users_permissions.py +41 -0
- tests/services/inspection/dependencies/test_reflect_dependencies.py +94 -0
- tests/services/parsers/__init__.py +0 -0
- tests/services/parsers/mocks/__init__.py +0 -0
- tests/services/parsers/mocks/mock_custom_error.py +15 -0
- tests/{support → services}/parsers/test_exception_parser.py +8 -8
- tests/services/path/__init__.py +0 -0
- tests/services/path/test_resolver.py +73 -0
- tests/services/standard/__init__.py +0 -0
- tests/services/standard/test_std.py +127 -0
- tests/services/wrapper/__init__.py +0 -0
- tests/services/wrapper/test_wrapper_doc_dict.py +129 -0
- tests/testing/__init__.py +0 -0
- tests/testing/test_testing_result.py +92 -0
- tests/testing/test_testing_unit.py +138 -0
- orionis/luminate/config/app/__init__.py +0 -10
- orionis/luminate/config/auth/__init__.py +0 -7
- orionis/luminate/config/cache/__init__.py +0 -9
- orionis/luminate/config/cache/entities/cache.py +0 -58
- orionis/luminate/config/cache/entities/file.py +0 -29
- orionis/luminate/config/cache/entities/stores.py +0 -35
- orionis/luminate/config/entities/cors.py +0 -58
- orionis/luminate/config/entities/database.py +0 -204
- orionis/luminate/config/entities/filesystems.py +0 -98
- orionis/luminate/config/entities/logging.py +0 -157
- orionis/luminate/config/entities/mail.py +0 -76
- orionis/luminate/config/entities/queue.py +0 -62
- orionis/luminate/config/entities/session.py +0 -58
- orionis/luminate/providers/files/paths_provider.py +0 -20
- orionis/luminate/services/workers/__init__.py +0 -10
- orionis/luminate/support/adapters/dot_dict.py +0 -29
- orionis/luminate/support/asynchrony/async_io.py +0 -40
- orionis/luminate/support/asynchrony/contracts/async_coroutine.py +0 -26
- orionis/luminate/support/introspection/abstracts/entities/abstract_class_attributes.py +0 -11
- orionis/luminate/support/introspection/dependencies/__init__.py +0 -5
- orionis/luminate/support/introspection/dependencies/entities/class_dependencies.py +0 -11
- orionis/luminate/support/introspection/dependencies/entities/method_dependencies.py +0 -11
- orionis/luminate/support/introspection/dependencies/entities/resolved_dependencies.py +0 -12
- orionis/luminate/support/paths/contracts/resolver.py +0 -67
- orionis/luminate/support/paths/resolver.py +0 -83
- orionis/luminate/test/core/contracts/test_suite.py +0 -30
- orionis/luminate/test/core/test_suite.py +0 -93
- orionis-0.253.0.dist-info/RECORD +0 -318
- orionis-0.253.0.dist-info/entry_points.txt +0 -2
- tests/config/test_app.py +0 -122
- tests/config/test_cache.py +0 -20
- tests/support/adapters/fakes/fake_dict.py +0 -15
- tests/support/adapters/test_doct_dict.py +0 -21
- tests/support/inspection/fakes/fake_reflect_dependencies.py +0 -25
- tests/support/inspection/test_reflect_dependencies.py +0 -67
- tests/support/parsers/fakes/fake_custom_error.py +0 -27
- tests/support/path/test_resolver.py +0 -33
- tests/support/standard/test_std.py +0 -62
- /orionis/{console.py → clinstall.py} +0 -0
- /orionis/luminate/{config → _container}/__init__.py +0 -0
- /orionis/luminate/{container → _container}/exception.py +0 -0
- /orionis/luminate/{container → _container}/lifetimes.py +0 -0
- /orionis/luminate/{config/app/entities → _contracts}/__init__.py +0 -0
- /orionis/luminate/{config/app/enums → _contracts/config}/__init__.py +0 -0
- /orionis/luminate/{config/contracts → _contracts/config}/config.py +0 -0
- /orionis/luminate/{config/auth/entities → _contracts/console}/__init__.py +0 -0
- /orionis/luminate/{config/cache/entities → _contracts/console/base}/__init__.py +0 -0
- /orionis/luminate/{contracts → _contracts}/console/base/command.py +0 -0
- /orionis/luminate/{contracts → _contracts}/console/command_filter.py +0 -0
- /orionis/luminate/{contracts → _contracts}/console/kernel.py +0 -0
- /orionis/luminate/{config/cache/enums → _contracts/console/output}/__init__.py +0 -0
- /orionis/luminate/{contracts → _contracts}/console/output/console.py +0 -0
- /orionis/luminate/{contracts → _contracts}/console/output/executor.py +0 -0
- /orionis/luminate/{contracts → _contracts}/console/output/progress_bar.py +0 -0
- /orionis/luminate/{contracts → _contracts}/console/parser.py +0 -0
- /orionis/luminate/{contracts → _contracts}/container/container.py +0 -0
- /orionis/luminate/{contracts → _contracts}/container/container_integrity.py +0 -0
- /orionis/luminate/{config/contracts → _contracts/facades}/__init__.py +0 -0
- /orionis/luminate/{config/exceptions → _contracts/facades/commands}/__init__.py +0 -0
- /orionis/luminate/{contracts → _contracts}/facades/commands/commands_facade.py +0 -0
- /orionis/luminate/{container → _contracts/facades/config}/__init__.py +0 -0
- /orionis/luminate/{contracts → _contracts}/facades/config/config_facade.py +0 -0
- /orionis/luminate/{contracts → _contracts/facades/environment}/__init__.py +0 -0
- /orionis/luminate/{contracts → _contracts}/facades/environment/environment_facade.py +0 -0
- /orionis/luminate/{contracts/config → _contracts/facades/files}/__init__.py +0 -0
- /orionis/luminate/{contracts → _contracts}/facades/files/path_facade.py +0 -0
- /orionis/luminate/{contracts/console → _contracts/facades/log}/__init__.py +0 -0
- /orionis/luminate/{contracts → _contracts}/facades/log/log_facade.py +0 -0
- /orionis/luminate/{contracts/console/base → _contracts/facades/tests}/__init__.py +0 -0
- /orionis/luminate/{contracts → _contracts}/facades/tests/tests_facade.py +0 -0
- /orionis/luminate/{contracts/console/output → _contracts/foundation}/__init__.py +0 -0
- /orionis/luminate/{contracts → _contracts}/foundation/bootstraper.py +0 -0
- /orionis/luminate/{contracts/facades → _contracts/foundation/config}/__init__.py +0 -0
- /orionis/luminate/{contracts → _contracts}/foundation/config/config_bootstrapper.py +0 -0
- /orionis/luminate/{contracts/facades/commands → _contracts/foundation/console}/__init__.py +0 -0
- /orionis/luminate/{contracts → _contracts}/foundation/console/command_bootstrapper.py +0 -0
- /orionis/luminate/{contracts/facades/config → _contracts/foundation/environment}/__init__.py +0 -0
- /orionis/luminate/{contracts → _contracts}/foundation/environment/environment_bootstrapper.py +0 -0
- /orionis/luminate/{contracts/facades/environment → _contracts/foundation/providers}/__init__.py +0 -0
- /orionis/luminate/{contracts/facades/files → _contracts/providers}/__init__.py +0 -0
- /orionis/luminate/{contracts/facades/log → _contracts/services}/__init__.py +0 -0
- /orionis/luminate/{contracts/facades/tests → _contracts/services/commands}/__init__.py +0 -0
- /orionis/luminate/{contracts → _contracts}/services/commands/reactor_commands_service.py +0 -0
- /orionis/luminate/{contracts → _contracts}/services/commands/schedule_service.py +0 -0
- /orionis/luminate/{contracts/foundation → _contracts/services/config}/__init__.py +0 -0
- /orionis/luminate/{contracts → _contracts}/services/config/config_service.py +0 -0
- /orionis/luminate/{contracts/foundation/config → _contracts/services/environment}/__init__.py +0 -0
- /orionis/luminate/{contracts → _contracts}/services/environment/environment_service.py +0 -0
- /orionis/luminate/{contracts/foundation/console → _contracts/services/files}/__init__.py +0 -0
- /orionis/luminate/{contracts → _contracts}/services/files/path_resolver_service.py +0 -0
- /orionis/luminate/{contracts/foundation/environment → _contracts/services/log}/__init__.py +0 -0
- /orionis/luminate/{contracts → _contracts}/services/log/log_service.py +0 -0
- /orionis/luminate/{contracts → _contracts}/support/exception_parse.py +0 -0
- /orionis/luminate/{contracts → _contracts}/support/reflection.py +0 -0
- /orionis/luminate/{contracts/foundation/providers → _facades}/__init__.py +0 -0
- /orionis/luminate/{contracts/providers → _facades/commands}/__init__.py +0 -0
- /orionis/luminate/{contracts/services → _facades/config}/__init__.py +0 -0
- /orionis/luminate/{contracts/services/commands → _facades/environment}/__init__.py +0 -0
- /orionis/luminate/{contracts/services/config → _facades/files}/__init__.py +0 -0
- /orionis/luminate/{contracts/services/environment → _facades/log}/__init__.py +0 -0
- /orionis/luminate/{contracts/services/files → _foundation}/__init__.py +0 -0
- /orionis/luminate/{contracts/services/log → _foundation/console}/__init__.py +0 -0
- /orionis/luminate/{facades → _foundation/environment}/__init__.py +0 -0
- /orionis/luminate/{facades/commands → _foundation/exceptions}/__init__.py +0 -0
- /orionis/luminate/{foundation → _foundation}/exceptions/exception_bootstrapper.py +0 -0
- /orionis/luminate/{foundation → _foundation}/exceptions/exception_providers.py +0 -0
- /orionis/luminate/{facades → _foundation/foundation}/config/__init__.py +0 -0
- /orionis/luminate/{facades/environment → _foundation/providers}/__init__.py +0 -0
- /orionis/luminate/{facades/files → _providers}/__init__.py +0 -0
- /orionis/luminate/{facades/log → _providers/commands}/__init__.py +0 -0
- /orionis/luminate/{foundation/console → _providers/config}/__init__.py +0 -0
- /orionis/luminate/{foundation → _providers}/environment/__init__.py +0 -0
- /orionis/luminate/{foundation/exceptions → _providers/files}/__init__.py +0 -0
- /orionis/luminate/{foundation/providers → _providers/log}/__init__.py +0 -0
- /orionis/luminate/{providers → _services}/__init__.py +0 -0
- /orionis/luminate/{providers → _services}/commands/__init__.py +0 -0
- /orionis/luminate/{providers → _services}/config/__init__.py +0 -0
- /orionis/luminate/{providers/environment → _services/log}/__init__.py +0 -0
- /orionis/luminate/{providers/files → foundation/config/app}/__init__.py +0 -0
- /orionis/luminate/{providers/log → foundation/config/app/entities}/__init__.py +0 -0
- /orionis/luminate/{services_ → foundation/config/app/enums}/__init__.py +0 -0
- /orionis/luminate/{config → foundation/config}/app/enums/ciphers.py +0 -0
- /orionis/luminate/{config → foundation/config}/app/enums/environments.py +0 -0
- /orionis/luminate/{services_/commands → foundation/config/auth}/__init__.py +0 -0
- /orionis/luminate/{services_/config → foundation/config/auth/entities}/__init__.py +0 -0
- /orionis/luminate/{services_/log → foundation/config/cache}/__init__.py +0 -0
- /orionis/luminate/{support/adapters → foundation/config/cache/entities}/__init__.py +0 -0
- /orionis/luminate/{support/asynchrony → foundation/config/cache/enums}/__init__.py +0 -0
- /orionis/luminate/{config → foundation/config}/cache/enums/drivers.py +0 -0
- /orionis/luminate/{support/asynchrony → foundation/config}/contracts/__init__.py +0 -0
- /orionis/luminate/{support/introspection/abstracts → foundation/config/cors}/__init__.py +0 -0
- /orionis/luminate/{support/introspection/abstracts → foundation/config/cors}/entities/__init__.py +0 -0
- /orionis/luminate/{support/introspection/dependencies/contracts → foundation/config/database}/__init__.py +0 -0
- /orionis/luminate/{support/introspection/dependencies → foundation/config/database}/entities/__init__.py +0 -0
- /orionis/luminate/{support/parsers → foundation/config/database/enums}/__init__.py +0 -0
- /orionis/luminate/{support/parsers/contracts → foundation/config/exceptions}/__init__.py +0 -0
- /orionis/luminate/{config/exceptions/integrity_exception.py → foundation/config/exceptions/integrity.py} +0 -0
- /orionis/luminate/{support/paths → foundation/config/filesystems}/__init__.py +0 -0
- /orionis/luminate/{support/paths/contracts → foundation/config/filesystems/entitites}/__init__.py +0 -0
- /orionis/luminate/{support/standard → foundation/config/logging}/__init__.py +0 -0
- /orionis/luminate/{support/standard/contracts → foundation/config/logging/entities}/__init__.py +0 -0
- /orionis/luminate/{test/core → foundation/config/logging/enums}/__init__.py +0 -0
- /orionis/luminate/{test/core/contracts → foundation/config/mail}/__init__.py +0 -0
- {tests/config → orionis/luminate/foundation/config/mail/entities}/__init__.py +0 -0
- {tests/support/adapters → orionis/luminate/foundation/config/queue}/__init__.py +0 -0
- {tests/support/adapters/fakes → orionis/luminate/foundation/config/queue/entities}/__init__.py +0 -0
- {tests/support/async_io → orionis/luminate/foundation/config/roots}/__init__.py +0 -0
- {tests/support/parsers → orionis/luminate/foundation/config/session}/__init__.py +0 -0
- {tests/support/parsers/fakes → orionis/luminate/foundation/config/session/entities}/__init__.py +0 -0
- {tests/support/path → orionis/luminate/foundation/config/session/enums}/__init__.py +0 -0
- {tests/support/standard → orionis/luminate/foundation/config/testing}/__init__.py +0 -0
- /orionis/luminate/{support → services}/parsers/contracts/exception_parser.py +0 -0
- /orionis/luminate/{support → services}/standard/contracts/std.py +0 -0
- /orionis/luminate/test/exceptions/{test_exception.py → test_failure_exception.py} +0 -0
- /orionis/luminate/test/{core → suites}/contracts/test_unit.py +0 -0
- {orionis-0.253.0.dist-info → orionis-0.266.0.dist-info/licenses}/LICENCE +0 -0
- {orionis-0.253.0.dist-info → orionis-0.266.0.dist-info}/top_level.txt +0 -0
@@ -1,58 +0,0 @@
|
|
1
|
-
from dataclasses import dataclass, field
|
2
|
-
from typing import List, Optional, Union, Dict
|
3
|
-
|
4
|
-
@dataclass
|
5
|
-
class Cors:
|
6
|
-
"""
|
7
|
-
Interface that defines the structure for configuring Cross-Origin Resource Sharing (CORS)
|
8
|
-
for Starlette's CORSMiddleware.
|
9
|
-
|
10
|
-
Attributes
|
11
|
-
----------
|
12
|
-
allowed_methods : List[str]
|
13
|
-
A list of HTTP methods (e.g., "GET", "POST", "PUT", etc.) that are allowed for cross-origin requests.
|
14
|
-
|
15
|
-
allowed_origins : Union[str, List[str]]
|
16
|
-
A single origin or a list of origins that are allowed to access the resources.
|
17
|
-
Example: "https://example.com" or ["https://example.com", "https://another-origin.com"].
|
18
|
-
|
19
|
-
allowed_headers : List[str]
|
20
|
-
A list of headers that can be included in the requests from the allowed origins.
|
21
|
-
Example: ["Content-Type", "X-Custom-Header"].
|
22
|
-
|
23
|
-
exposed_headers : List[str]
|
24
|
-
A list of headers that the browser can access from the response.
|
25
|
-
Example: ["X-Exposed-Header"].
|
26
|
-
|
27
|
-
max_age : Optional[int]
|
28
|
-
The maximum amount of time (in seconds) that the results of a preflight request can be cached by the browser.
|
29
|
-
|
30
|
-
custom : Dict[str, any]
|
31
|
-
A dictionary for any custom properties or additional configurations related to CORS.
|
32
|
-
This field is initialized with an empty dictionary by default.
|
33
|
-
|
34
|
-
Notes
|
35
|
-
-----
|
36
|
-
- `allowed_methods`, `allowed_headers`, and `exposed_headers` should always be lists of strings.
|
37
|
-
- `allowed_origins` can either be a single string or a list of strings.
|
38
|
-
- `max_age` should be an integer representing the duration in seconds.
|
39
|
-
- The `custom` attribute is for additional configurations or custom properties.
|
40
|
-
"""
|
41
|
-
|
42
|
-
# List of allowed HTTP methods
|
43
|
-
allowed_methods: List[str]
|
44
|
-
|
45
|
-
# Single origin or list of origins allowed
|
46
|
-
allowed_origins: Union[str, List[str]]
|
47
|
-
|
48
|
-
# List of allowed headers
|
49
|
-
allowed_headers: List[str]
|
50
|
-
|
51
|
-
# List of headers that are accessible by the browser
|
52
|
-
exposed_headers: List[str]
|
53
|
-
|
54
|
-
# Time in seconds that the results of preflight requests can be cached
|
55
|
-
max_age: Optional[int]
|
56
|
-
|
57
|
-
# Custom properties or configurations for additional flexibility
|
58
|
-
custom: Dict[str, any] = field(default_factory=dict)
|
@@ -1,204 +0,0 @@
|
|
1
|
-
from typing import Dict, Optional
|
2
|
-
from dataclasses import dataclass, field
|
3
|
-
|
4
|
-
@dataclass
|
5
|
-
class Sqlite:
|
6
|
-
"""
|
7
|
-
Data class to represent the SQLite database configuration.
|
8
|
-
|
9
|
-
Attributes
|
10
|
-
----------
|
11
|
-
driver : str
|
12
|
-
The database driver being used, e.g., 'sqlite'.
|
13
|
-
url : str
|
14
|
-
The URL for connecting to the database.
|
15
|
-
database : str
|
16
|
-
The path to the SQLite database file.
|
17
|
-
prefix : str
|
18
|
-
Prefix for table names.
|
19
|
-
foreign_key_constraints : bool
|
20
|
-
Whether foreign key constraints are enabled.
|
21
|
-
busy_timeout : Optional[int]
|
22
|
-
The timeout period (in milliseconds) before retrying a locked database.
|
23
|
-
journal_mode : Optional[str]
|
24
|
-
The journal mode used for transactions.
|
25
|
-
synchronous : Optional[str]
|
26
|
-
The synchronization level for the database.
|
27
|
-
"""
|
28
|
-
driver: str
|
29
|
-
url: str
|
30
|
-
database: str
|
31
|
-
prefix: str
|
32
|
-
foreign_key_constraints: bool
|
33
|
-
busy_timeout: Optional[int]
|
34
|
-
journal_mode: Optional[str]
|
35
|
-
synchronous: Optional[str]
|
36
|
-
|
37
|
-
@dataclass
|
38
|
-
class Mysql:
|
39
|
-
"""
|
40
|
-
Data class to represent the MySQL database configuration.
|
41
|
-
|
42
|
-
Attributes
|
43
|
-
----------
|
44
|
-
driver : str
|
45
|
-
The database driver being used, e.g., 'mysql'.
|
46
|
-
url : str
|
47
|
-
The URL for connecting to the database.
|
48
|
-
host : str
|
49
|
-
The host address for the MySQL server.
|
50
|
-
port : str
|
51
|
-
The port for connecting to the MySQL server.
|
52
|
-
database : str
|
53
|
-
The name of the MySQL database.
|
54
|
-
username : str
|
55
|
-
The username for connecting to the MySQL database.
|
56
|
-
password : str
|
57
|
-
The password for the MySQL database.
|
58
|
-
unix_socket : str
|
59
|
-
The path to the Unix socket for MySQL connections (optional).
|
60
|
-
charset : str
|
61
|
-
The charset used for the connection.
|
62
|
-
collation : str
|
63
|
-
The collation for the database.
|
64
|
-
prefix : str
|
65
|
-
Prefix for table names.
|
66
|
-
prefix_indexes : bool
|
67
|
-
Whether to prefix index names.
|
68
|
-
strict : bool
|
69
|
-
Whether to enforce strict SQL mode.
|
70
|
-
engine : Optional[str]
|
71
|
-
The storage engine for the MySQL database (optional).
|
72
|
-
"""
|
73
|
-
driver: str
|
74
|
-
url: str
|
75
|
-
host: str
|
76
|
-
port: str
|
77
|
-
database: str
|
78
|
-
username: str
|
79
|
-
password: str
|
80
|
-
unix_socket: str
|
81
|
-
charset: str
|
82
|
-
collation: str
|
83
|
-
prefix: str
|
84
|
-
prefix_indexes: bool
|
85
|
-
strict: bool
|
86
|
-
engine: Optional[str]
|
87
|
-
|
88
|
-
@dataclass
|
89
|
-
class Pgsql:
|
90
|
-
"""
|
91
|
-
Data class to represent the PostgreSQL database configuration.
|
92
|
-
|
93
|
-
Attributes
|
94
|
-
----------
|
95
|
-
driver : str
|
96
|
-
The database driver being used, e.g., 'pgsql'.
|
97
|
-
url : str
|
98
|
-
The URL for connecting to the database.
|
99
|
-
host : str
|
100
|
-
The host address for the PostgreSQL server.
|
101
|
-
port : str
|
102
|
-
The port for connecting to the PostgreSQL server.
|
103
|
-
database : str
|
104
|
-
The name of the PostgreSQL database.
|
105
|
-
username : str
|
106
|
-
The username for connecting to the PostgreSQL database.
|
107
|
-
password : str
|
108
|
-
The password for the PostgreSQL database.
|
109
|
-
charset : str
|
110
|
-
The charset used for the connection.
|
111
|
-
prefix : str
|
112
|
-
Prefix for table names.
|
113
|
-
prefix_indexes : bool
|
114
|
-
Whether to prefix index names.
|
115
|
-
search_path : str
|
116
|
-
The schema search path for PostgreSQL.
|
117
|
-
sslmode : str
|
118
|
-
The SSL mode for the connection.
|
119
|
-
"""
|
120
|
-
driver: str
|
121
|
-
url: str
|
122
|
-
host: str
|
123
|
-
port: str
|
124
|
-
database: str
|
125
|
-
username: str
|
126
|
-
password: str
|
127
|
-
charset: str
|
128
|
-
prefix: str
|
129
|
-
prefix_indexes: bool
|
130
|
-
search_path: str
|
131
|
-
sslmode: str
|
132
|
-
|
133
|
-
@dataclass
|
134
|
-
class Oracle:
|
135
|
-
"""
|
136
|
-
Data class to represent the Oracle database configuration.
|
137
|
-
|
138
|
-
Attributes
|
139
|
-
----------
|
140
|
-
driver : str
|
141
|
-
The database driver being used, e.g., 'oracle'.
|
142
|
-
dsn : str
|
143
|
-
The Data Source Name (DSN) for connecting to the Oracle database.
|
144
|
-
host : str
|
145
|
-
The host address for the Oracle server.
|
146
|
-
port : str
|
147
|
-
The port for connecting to the Oracle server.
|
148
|
-
username : str
|
149
|
-
The username for connecting to the Oracle database.
|
150
|
-
password : str
|
151
|
-
The password for the Oracle database.
|
152
|
-
charset : str
|
153
|
-
The charset used for the connection.
|
154
|
-
service : str
|
155
|
-
The Oracle service name.
|
156
|
-
sid : str
|
157
|
-
The Oracle System Identifier (SID).
|
158
|
-
"""
|
159
|
-
driver: str
|
160
|
-
dsn: str
|
161
|
-
host: str
|
162
|
-
port: str
|
163
|
-
username: str
|
164
|
-
password: str
|
165
|
-
charset: str
|
166
|
-
service: str
|
167
|
-
sid: str
|
168
|
-
|
169
|
-
@dataclass
|
170
|
-
class Connections:
|
171
|
-
"""
|
172
|
-
Data class to represent all database connections used by the application.
|
173
|
-
|
174
|
-
Attributes
|
175
|
-
----------
|
176
|
-
sqlite : Sqlite
|
177
|
-
Configuration for the SQLite database connection.
|
178
|
-
mysql : Mysql
|
179
|
-
Configuration for the MySQL database connection.
|
180
|
-
pgsql : Pgsql
|
181
|
-
Configuration for the PostgreSQL database connection.
|
182
|
-
oracle : Oracle
|
183
|
-
Configuration for the Oracle database connection.
|
184
|
-
"""
|
185
|
-
sqlite: Sqlite
|
186
|
-
mysql: Mysql
|
187
|
-
pgsql: Pgsql
|
188
|
-
oracle: Oracle
|
189
|
-
|
190
|
-
@dataclass
|
191
|
-
class Database:
|
192
|
-
"""
|
193
|
-
Data class to represent the general database configuration.
|
194
|
-
|
195
|
-
Attributes
|
196
|
-
----------
|
197
|
-
default : str
|
198
|
-
The name of the default database connection to use.
|
199
|
-
connections : Connections
|
200
|
-
The different database connections available to the application.
|
201
|
-
"""
|
202
|
-
default: str
|
203
|
-
connections: Connections
|
204
|
-
custom: Dict[str, any] = field(default_factory=dict)
|
@@ -1,98 +0,0 @@
|
|
1
|
-
from dataclasses import dataclass, field
|
2
|
-
from typing import Dict, Optional
|
3
|
-
|
4
|
-
@dataclass
|
5
|
-
class Local:
|
6
|
-
"""
|
7
|
-
Represents a local filesystem configuration.
|
8
|
-
|
9
|
-
Attributes
|
10
|
-
----------
|
11
|
-
path : str
|
12
|
-
The absolute or relative path where local files are stored.
|
13
|
-
"""
|
14
|
-
path: str
|
15
|
-
|
16
|
-
@dataclass
|
17
|
-
class Public:
|
18
|
-
"""
|
19
|
-
Represents a public filesystem configuration.
|
20
|
-
|
21
|
-
Attributes
|
22
|
-
----------
|
23
|
-
path : str
|
24
|
-
The public-facing path where files are stored.
|
25
|
-
slug : str
|
26
|
-
A unique identifier for the public storage location.
|
27
|
-
"""
|
28
|
-
path: str
|
29
|
-
slug: str
|
30
|
-
|
31
|
-
@dataclass
|
32
|
-
class AWSS3:
|
33
|
-
"""
|
34
|
-
Represents an AWS S3 storage configuration.
|
35
|
-
|
36
|
-
Attributes
|
37
|
-
----------
|
38
|
-
driver : str
|
39
|
-
The storage driver (default: 's3').
|
40
|
-
key : str
|
41
|
-
AWS access key ID.
|
42
|
-
secret : str
|
43
|
-
AWS secret access key.
|
44
|
-
region : str
|
45
|
-
AWS region where the bucket is located.
|
46
|
-
bucket : str
|
47
|
-
The S3 bucket name.
|
48
|
-
url : Optional[str], default=None
|
49
|
-
The URL endpoint for accessing the S3 bucket.
|
50
|
-
endpoint : Optional[str], default=None
|
51
|
-
The AWS S3 endpoint URL.
|
52
|
-
use_path_style_endpoint : bool, default=False
|
53
|
-
Whether to use a path-style endpoint.
|
54
|
-
throw : bool, default=False
|
55
|
-
Whether to raise an exception on errors.
|
56
|
-
"""
|
57
|
-
key: str = ""
|
58
|
-
secret: str = ""
|
59
|
-
region: str = "us-east-1"
|
60
|
-
bucket: str = ""
|
61
|
-
url: Optional[str] = None
|
62
|
-
endpoint: Optional[str] = None
|
63
|
-
use_path_style_endpoint: bool = False
|
64
|
-
throw: bool = False
|
65
|
-
|
66
|
-
@dataclass
|
67
|
-
class Disks:
|
68
|
-
"""
|
69
|
-
Represents the available storage disks.
|
70
|
-
|
71
|
-
Attributes
|
72
|
-
----------
|
73
|
-
local : Local
|
74
|
-
Configuration for local storage.
|
75
|
-
public : Public
|
76
|
-
Configuration for public storage.
|
77
|
-
s3 : AWSS3
|
78
|
-
Configuration for AWS S3 storage.
|
79
|
-
"""
|
80
|
-
local: Local
|
81
|
-
public: Public
|
82
|
-
s3: AWSS3
|
83
|
-
|
84
|
-
@dataclass
|
85
|
-
class Filesystems:
|
86
|
-
"""
|
87
|
-
Represents the filesystem configuration, supporting multiple storage disks.
|
88
|
-
|
89
|
-
Attributes
|
90
|
-
----------
|
91
|
-
default : str
|
92
|
-
The default storage disk to use.
|
93
|
-
disks : Disks
|
94
|
-
A collection of configured storage disks.
|
95
|
-
"""
|
96
|
-
default: str
|
97
|
-
disks: Disks
|
98
|
-
custom: Dict[str, any] = field(default_factory=dict)
|
@@ -1,157 +0,0 @@
|
|
1
|
-
from dataclasses import dataclass, field
|
2
|
-
from datetime import time
|
3
|
-
from typing import Dict, Union
|
4
|
-
|
5
|
-
@dataclass
|
6
|
-
class Stack:
|
7
|
-
"""
|
8
|
-
Represents a single log file configuration.
|
9
|
-
|
10
|
-
Attributes
|
11
|
-
----------
|
12
|
-
path : str
|
13
|
-
The file path where the log is stored.
|
14
|
-
level : str
|
15
|
-
The logging level (e.g., 'info', 'error', 'debug').
|
16
|
-
stream : bool
|
17
|
-
Whether to output logs to the console.
|
18
|
-
"""
|
19
|
-
path: str
|
20
|
-
level: str
|
21
|
-
|
22
|
-
@dataclass
|
23
|
-
class Hourly:
|
24
|
-
"""
|
25
|
-
Represents an hourly log file rotation configuration.
|
26
|
-
|
27
|
-
Attributes
|
28
|
-
----------
|
29
|
-
path : str
|
30
|
-
The file path where hourly logs are stored.
|
31
|
-
level : str
|
32
|
-
The logging level (e.g., 'info', 'error', 'debug').
|
33
|
-
retention_hours : int
|
34
|
-
The number of hours to retain log files before deletion.
|
35
|
-
"""
|
36
|
-
path: str
|
37
|
-
level: str
|
38
|
-
retention_hours: int
|
39
|
-
|
40
|
-
@dataclass
|
41
|
-
class Daily:
|
42
|
-
"""
|
43
|
-
Represents a daily log file rotation configuration.
|
44
|
-
|
45
|
-
Attributes
|
46
|
-
----------
|
47
|
-
path : str
|
48
|
-
The file path where daily logs are stored.
|
49
|
-
level : str
|
50
|
-
The logging level (e.g., 'info', 'error', 'debug').
|
51
|
-
retention_days : int
|
52
|
-
The number of days to retain log files before deletion.
|
53
|
-
at_time : time
|
54
|
-
The time of day when the log rotation should occur.
|
55
|
-
"""
|
56
|
-
path: str
|
57
|
-
level: str
|
58
|
-
retention_days: int
|
59
|
-
at: time
|
60
|
-
|
61
|
-
@dataclass
|
62
|
-
class Weekly:
|
63
|
-
"""
|
64
|
-
Represents a weekly log file rotation configuration.
|
65
|
-
|
66
|
-
Attributes
|
67
|
-
----------
|
68
|
-
path : str
|
69
|
-
The file path where weekly logs are stored.
|
70
|
-
level : str
|
71
|
-
The logging level (e.g., 'info', 'error', 'debug').
|
72
|
-
retention_weeks : int
|
73
|
-
The number of weeks to retain log files before deletion.
|
74
|
-
"""
|
75
|
-
path: str
|
76
|
-
level: str
|
77
|
-
retention_weeks: int
|
78
|
-
|
79
|
-
@dataclass
|
80
|
-
class Monthly:
|
81
|
-
"""
|
82
|
-
Represents a monthly log file rotation configuration.
|
83
|
-
|
84
|
-
Attributes
|
85
|
-
----------
|
86
|
-
path : str
|
87
|
-
The file path where monthly logs are stored.
|
88
|
-
level : str
|
89
|
-
The logging level (e.g., 'info', 'error', 'debug').
|
90
|
-
retention_months : int
|
91
|
-
The number of months to retain log files before deletion.
|
92
|
-
"""
|
93
|
-
path: str
|
94
|
-
level: str
|
95
|
-
retention_months: int
|
96
|
-
|
97
|
-
@dataclass
|
98
|
-
class Chunked:
|
99
|
-
"""
|
100
|
-
Represents a chunked log file configuration.
|
101
|
-
|
102
|
-
This configuration ensures that log files are split into manageable chunks
|
103
|
-
based on size or number of files to prevent excessive file growth.
|
104
|
-
|
105
|
-
Attributes
|
106
|
-
----------
|
107
|
-
path : str
|
108
|
-
The file path where chunked logs are stored.
|
109
|
-
level : str
|
110
|
-
The logging level (e.g., 'info', 'error', 'debug').
|
111
|
-
max_mb_size : Union[int, str]
|
112
|
-
The maximum file size before creating a new chunk.
|
113
|
-
Can be an integer (bytes) or a string (e.g., '10MB', '500KB').
|
114
|
-
max_files : int
|
115
|
-
The maximum number of log files to retain before older files are deleted.
|
116
|
-
"""
|
117
|
-
path: str
|
118
|
-
level: str
|
119
|
-
mb_size: Union[int, str]
|
120
|
-
files: int
|
121
|
-
|
122
|
-
@dataclass
|
123
|
-
class Channels:
|
124
|
-
"""
|
125
|
-
Represents the different logging channels available.
|
126
|
-
|
127
|
-
Attributes
|
128
|
-
----------
|
129
|
-
single : Single
|
130
|
-
Configuration for single log file storage.
|
131
|
-
daily : Daily
|
132
|
-
Configuration for daily log file rotation.
|
133
|
-
chunked : Chunked
|
134
|
-
Configuration for chunked log file storage.
|
135
|
-
"""
|
136
|
-
stack : Stack
|
137
|
-
hourly : Hourly
|
138
|
-
daily : Daily
|
139
|
-
weekly : Weekly
|
140
|
-
monthly : Monthly
|
141
|
-
chunked : Chunked
|
142
|
-
|
143
|
-
@dataclass
|
144
|
-
class Logging:
|
145
|
-
"""
|
146
|
-
Represents the logging system configuration.
|
147
|
-
|
148
|
-
Attributes
|
149
|
-
----------
|
150
|
-
default : str
|
151
|
-
The default logging channel to use.
|
152
|
-
channels : Channels
|
153
|
-
A collection of available logging channels.
|
154
|
-
"""
|
155
|
-
default: str
|
156
|
-
channels: Channels
|
157
|
-
custom: Dict[str, any] = field(default_factory=dict)
|
@@ -1,76 +0,0 @@
|
|
1
|
-
from dataclasses import dataclass, field
|
2
|
-
from typing import Dict, Optional
|
3
|
-
|
4
|
-
@dataclass
|
5
|
-
class Smtp:
|
6
|
-
"""
|
7
|
-
Represents SMTP (Simple Mail Transfer Protocol) configuration settings.
|
8
|
-
|
9
|
-
Attributes
|
10
|
-
----------
|
11
|
-
url : str
|
12
|
-
The full URL for the SMTP service.
|
13
|
-
host : str
|
14
|
-
The hostname of the SMTP server (e.g., 'smtp.example.com').
|
15
|
-
port : int
|
16
|
-
The port number used for SMTP communication (e.g., 465, 587).
|
17
|
-
encryption : str
|
18
|
-
The encryption type used for secure communication (e.g., 'SSL', 'TLS', 'None').
|
19
|
-
username : str
|
20
|
-
The username for authentication with the SMTP server.
|
21
|
-
password : str
|
22
|
-
The password for authentication with the SMTP server.
|
23
|
-
timeout : Optional[int], default=None
|
24
|
-
The connection timeout duration in seconds. If None, defaults to the system setting.
|
25
|
-
"""
|
26
|
-
url: str
|
27
|
-
host: str
|
28
|
-
port: int
|
29
|
-
encryption: str
|
30
|
-
username: str
|
31
|
-
password: str
|
32
|
-
timeout: Optional[int] = None
|
33
|
-
|
34
|
-
@dataclass
|
35
|
-
class File:
|
36
|
-
"""
|
37
|
-
Represents email file-based storage configuration.
|
38
|
-
|
39
|
-
Attributes
|
40
|
-
----------
|
41
|
-
path : str
|
42
|
-
The file path where outgoing emails are stored instead of being sent.
|
43
|
-
"""
|
44
|
-
path: str
|
45
|
-
|
46
|
-
|
47
|
-
@dataclass
|
48
|
-
class Mailers:
|
49
|
-
"""
|
50
|
-
Represents the available mail transport configurations.
|
51
|
-
|
52
|
-
Attributes
|
53
|
-
----------
|
54
|
-
smtp : Smtp
|
55
|
-
The SMTP configuration used for sending emails.
|
56
|
-
file : File
|
57
|
-
The file-based mail transport configuration (used for local development/testing).
|
58
|
-
"""
|
59
|
-
smtp: Smtp
|
60
|
-
file: File
|
61
|
-
|
62
|
-
@dataclass
|
63
|
-
class Mail:
|
64
|
-
"""
|
65
|
-
Represents the overall mail configuration.
|
66
|
-
|
67
|
-
Attributes
|
68
|
-
----------
|
69
|
-
default : str
|
70
|
-
The default mailer transport to use (e.g., 'smtp', 'file').
|
71
|
-
mailers : Mailers
|
72
|
-
The available mail transport configurations.
|
73
|
-
"""
|
74
|
-
default: str
|
75
|
-
mailers: Mailers
|
76
|
-
custom: Dict[str, any] = field(default_factory=dict)
|
@@ -1,62 +0,0 @@
|
|
1
|
-
from dataclasses import dataclass, field
|
2
|
-
from typing import Dict
|
3
|
-
|
4
|
-
@dataclass
|
5
|
-
class Database:
|
6
|
-
"""
|
7
|
-
Represents the configuration for a database-backed queue connection.
|
8
|
-
|
9
|
-
Attributes
|
10
|
-
----------
|
11
|
-
driver : str
|
12
|
-
The queue driver type (default: 'database').
|
13
|
-
connection : Optional[str]
|
14
|
-
The database connection name used for storing queued jobs.
|
15
|
-
table : str
|
16
|
-
The table where queued jobs are stored.
|
17
|
-
batching : str
|
18
|
-
The table for storing batch job information.
|
19
|
-
failed : str
|
20
|
-
The table for storing failed jobs.
|
21
|
-
queue : str
|
22
|
-
The queue name used for processing jobs.
|
23
|
-
retry_after : int
|
24
|
-
The number of seconds before a job should be retried.
|
25
|
-
after_commit : bool
|
26
|
-
Whether to process jobs only after a successful database transaction commit.
|
27
|
-
"""
|
28
|
-
connection: str
|
29
|
-
table: str
|
30
|
-
batching: str
|
31
|
-
failed: str
|
32
|
-
queue: str
|
33
|
-
retry_after: int
|
34
|
-
after_commit: bool
|
35
|
-
|
36
|
-
@dataclass
|
37
|
-
class Connections:
|
38
|
-
"""
|
39
|
-
Represents available queue connection configurations.
|
40
|
-
|
41
|
-
Attributes
|
42
|
-
----------
|
43
|
-
database : DatabaseQueue
|
44
|
-
The configuration for the database-backed queue.
|
45
|
-
"""
|
46
|
-
database: Database
|
47
|
-
|
48
|
-
@dataclass
|
49
|
-
class Queue:
|
50
|
-
"""
|
51
|
-
Represents the overall queue system configuration.
|
52
|
-
|
53
|
-
Attributes
|
54
|
-
----------
|
55
|
-
default : str
|
56
|
-
The default queue connection to use.
|
57
|
-
connections : QueueConnections
|
58
|
-
The available queue connection configurations.
|
59
|
-
"""
|
60
|
-
default: str
|
61
|
-
connections: Connections
|
62
|
-
custom: Dict[str, any] = field(default_factory=dict)
|
@@ -1,58 +0,0 @@
|
|
1
|
-
from dataclasses import dataclass, field
|
2
|
-
from typing import Dict, Optional
|
3
|
-
from orionis.framework import NAME
|
4
|
-
|
5
|
-
@dataclass
|
6
|
-
class Cookie:
|
7
|
-
"""
|
8
|
-
Represents the session cookie configuration.
|
9
|
-
|
10
|
-
Attributes
|
11
|
-
----------
|
12
|
-
name : str
|
13
|
-
The name of the session cookie.
|
14
|
-
path : str
|
15
|
-
The path for which the session cookie is available.
|
16
|
-
domain : Optional[str]
|
17
|
-
The domain where the session cookie is accessible.
|
18
|
-
secure : Optional[bool]
|
19
|
-
Whether the session cookie should only be sent over HTTPS.
|
20
|
-
http_only : bool
|
21
|
-
Whether the session cookie is only accessible through HTTP (not JavaScript).
|
22
|
-
same_site : str
|
23
|
-
The SameSite policy for the session cookie ('lax', 'strict', or 'none').
|
24
|
-
"""
|
25
|
-
name: str = f"{NAME}_session"
|
26
|
-
path: str = "/"
|
27
|
-
domain: Optional[str] = None
|
28
|
-
secure: Optional[bool] = None
|
29
|
-
http_only: bool = True
|
30
|
-
same_site: str = "lax"
|
31
|
-
|
32
|
-
@dataclass
|
33
|
-
class Session:
|
34
|
-
"""
|
35
|
-
Represents the session management configuration.
|
36
|
-
|
37
|
-
Attributes
|
38
|
-
----------
|
39
|
-
driver : str
|
40
|
-
The session driver type (e.g., 'file', 'database', 'redis').
|
41
|
-
lifetime : int
|
42
|
-
The session lifetime in minutes before expiration.
|
43
|
-
expire_on_close : bool
|
44
|
-
Whether the session expires when the browser is closed.
|
45
|
-
encrypt : bool
|
46
|
-
Whether session data should be encrypted for additional security.
|
47
|
-
files : str
|
48
|
-
The file path where session data is stored when using the 'file' driver.
|
49
|
-
cookie : SessionCookie
|
50
|
-
The configuration settings for the session cookie.
|
51
|
-
"""
|
52
|
-
driver: str
|
53
|
-
lifetime: int
|
54
|
-
expire_on_close: bool
|
55
|
-
encrypt: bool
|
56
|
-
files: str
|
57
|
-
cookie: Cookie
|
58
|
-
custom: Dict[str, any] = field(default_factory=dict)
|