orionis 0.392.0__py3-none-any.whl → 0.393.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,7 @@
1
- from typing import Any, Type, List
1
+ from typing import Any, List, Type
2
2
  from orionis.container.container import Container
3
3
  from orionis.container.contracts.service_provider import IServiceProvider
4
4
  from orionis.foundation.config.app.entities.app import App
5
- from orionis.foundation.config.app.enums.ciphers import Cipher
6
- from orionis.foundation.config.app.enums.environments import Environments
7
5
  from orionis.foundation.config.auth.entities.auth import Auth
8
6
  from orionis.foundation.config.cache.entities.cache import Cache
9
7
  from orionis.foundation.config.cors.entities.cors import Cors
@@ -160,9 +158,12 @@ class Application(Container, IApplication):
160
158
  Application
161
159
  The application instance for method chaining
162
160
  """
161
+
163
162
  # Add each provider class
164
163
  for provider_cls in providers:
165
164
  self.addProvider(provider_cls)
165
+
166
+ # Return self instance for method chaining
166
167
  return self
167
168
 
168
169
  def addProvider(
@@ -187,6 +188,7 @@ class Application(Container, IApplication):
187
188
  TypeError
188
189
  If provider is not a subclass of IServiceProvider
189
190
  """
191
+
190
192
  # Validate provider type
191
193
  if not isinstance(provider, type) or not issubclass(provider, IServiceProvider):
192
194
  raise TypeError(f"Expected IServiceProvider class, got {type(provider).__name__}")
@@ -212,7 +214,42 @@ class Application(Container, IApplication):
212
214
  session : Session = None,
213
215
  testing : Testing = None,
214
216
  ) -> 'Application':
217
+ """
218
+ Configure the application with various service configurators.
219
+ This method allows you to set up different aspects of the application by providing
220
+ configurator instances for various services like authentication, caching, database,
221
+ etc. If no configurator is provided for a service, a default instance will be created.
222
+ Parameters
223
+ ----------
224
+ app : App, optional
225
+ Application configurator instance. If None, creates a default App() instance.
226
+ auth : Auth, optional
227
+ Authentication configurator instance. If None, creates a default Auth() instance.
228
+ cache : Cache, optional
229
+ Cache configurator instance. If None, creates a default Cache() instance.
230
+ cors : Cors, optional
231
+ CORS configurator instance. If None, creates a default Cors() instance.
232
+ database : Database, optional
233
+ Database configurator instance. If None, creates a default Database() instance.
234
+ filesystems : Filesystems, optional
235
+ Filesystems configurator instance. If None, creates a default Filesystems() instance.
236
+ logging : Logging, optional
237
+ Logging configurator instance. If None, creates a default Logging() instance.
238
+ mail : Mail, optional
239
+ Mail configurator instance. If None, creates a default Mail() instance.
240
+ queue : Queue, optional
241
+ Queue configurator instance. If None, creates a default Queue() instance.
242
+ session : Session, optional
243
+ Session configurator instance. If None, creates a default Session() instance.
244
+ testing : Testing, optional
245
+ Testing configurator instance. If None, creates a default Testing() instance.
246
+ Returns
247
+ -------
248
+ Application
249
+ Returns self to allow method chaining.
250
+ """
215
251
 
252
+ # Load each configurator with default or provided instances
216
253
  self.loadConfigApp(app or App())
217
254
  self.loadConfigAuth(auth or Auth())
218
255
  self.loadConfigCache(cache or Cache())
@@ -225,77 +262,29 @@ class Application(Container, IApplication):
225
262
  self.loadConfigSession(session or Session())
226
263
  self.loadConfigTesting(testing or Testing())
227
264
 
265
+ # Return self instance for method chaining
228
266
  return self
229
267
 
230
- def configApp(
231
- self,
232
- *,
233
- name: str = None,
234
- env: str | Environments = None,
235
- debug: bool = None,
236
- url: str = None,
237
- port: int = None,
238
- workers: int = None,
239
- reload: bool = None,
240
- timezone: str = None,
241
- locale: str = None,
242
- fallback_locale: str = None,
243
- cipher: str | Cipher = None,
244
- key: str = None,
245
- maintenance: str = None
246
- ) -> 'Application':
268
+ def configApp(self, **app_config) -> 'Application':
247
269
  """
248
270
  Configure the application with various settings.
249
271
 
250
272
  Parameters
251
273
  ----------
252
- name : str, optional
253
- The name of the application
254
- env : str | Environments, optional
255
- The environment of the application (e.g., 'development', 'production')
256
- debug : bool, optional
257
- Whether to enable debug mode
258
- url : str, optional
259
- The base URL of the application
260
- port : int, optional
261
- The port on which the application runs
262
- workers : int, optional
263
- Number of worker processes for handling requests
264
- reload : bool, optional
265
- Whether to enable auto-reloading of the application
266
- timezone : str, optional
267
- The timezone for the application
268
- locale : str, optional
269
- The default locale for the application
270
- fallback_locale : str, optional
271
- The fallback locale if the default is not available
272
- cipher : str | Cipher, optional
273
- The encryption cipher used by the application
274
- key : str, optional
275
- The encryption key used by the application
276
- maintenance : str, optional
277
- The maintenance route for the application
274
+ **app_config : dict
275
+ Configuration parameters for the application. Must match the fields
276
+ expected by the App dataclass (orionis.foundation.config.app.entities.app.App).
278
277
 
279
278
  Returns
280
279
  -------
281
280
  Application
282
281
  The application instance for method chaining
283
-
284
- Raises
285
- ------
286
- TypeError
287
- If any parameter is of an incorrect type or value.
288
282
  """
289
- # Create App instance with provided parameters and validate it.
290
- params = {}
291
- for _key, _value in locals().items():
292
- if _key != 'self' and _value is not None:
293
- params[_key] = _value
294
283
 
295
- # Create App instance with validated parameters
296
- app = App(**params)
284
+ # Create App instance with provided parameters
285
+ app = App(**app_config)
297
286
 
298
- # Load configuration using App instance.
287
+ # Load configuration using App instance
299
288
  self.loadConfigApp(app)
300
289
 
301
290
  # Return the application instance for method chaining
@@ -318,6 +307,7 @@ class Application(Container, IApplication):
318
307
  Application
319
308
  The application instance for method chaining
320
309
  """
310
+
321
311
  # Validate config type
322
312
  if not isinstance(app, App):
323
313
  raise TypeError(f"Expected App instance, got {type(app).__name__}")
@@ -328,6 +318,31 @@ class Application(Container, IApplication):
328
318
  # Return the application instance for method chaining
329
319
  return self
330
320
 
321
+ def configAuth(self, **auth_config) -> 'Application':
322
+ """
323
+ Configure the authentication with various settings.
324
+
325
+ Parameters
326
+ ----------
327
+ **auth_config : dict
328
+ Configuration parameters for authentication. Must match the fields
329
+ expected by the Auth dataclass (orionis.foundation.config.auth.entities.auth.Auth).
330
+
331
+ Returns
332
+ -------
333
+ Application
334
+ The application instance for method chaining
335
+ """
336
+
337
+ # Create Auth instance with provided parameters
338
+ auth = Auth(**auth_config)
339
+
340
+ # Load configuration using Auth instance
341
+ self.loadConfigAuth(auth)
342
+
343
+ # Return the application instance for method chaining
344
+ return self
345
+
331
346
  def loadConfigAuth(
332
347
  self,
333
348
  auth: Auth
@@ -345,6 +360,7 @@ class Application(Container, IApplication):
345
360
  Application
346
361
  The application instance for method chaining
347
362
  """
363
+
348
364
  # Validate auth type
349
365
  if not isinstance(auth, Auth):
350
366
  raise TypeError(f"Expected Auth instance, got {type(auth).__name__}")
@@ -355,6 +371,31 @@ class Application(Container, IApplication):
355
371
  # Return the application instance for method chaining
356
372
  return self
357
373
 
374
+ def configCache(self, **cache_config) -> 'Application':
375
+ """
376
+ Configure the cache with various settings.
377
+
378
+ Parameters
379
+ ----------
380
+ **cache_config : dict
381
+ Configuration parameters for cache. Must match the fields
382
+ expected by the Cache dataclass (orionis.foundation.config.cache.entities.cache.Cache).
383
+
384
+ Returns
385
+ -------
386
+ Application
387
+ The application instance for method chaining
388
+ """
389
+
390
+ # Create Cache instance with provided parameters
391
+ cache = Cache(**cache_config)
392
+
393
+ # Load configuration using Cache instance
394
+ self.loadConfigCache(cache)
395
+
396
+ # Return the application instance for method chaining
397
+ return self
398
+
358
399
  def loadConfigCache(
359
400
  self,
360
401
  cache: Cache
@@ -372,6 +413,7 @@ class Application(Container, IApplication):
372
413
  Application
373
414
  The application instance for method chaining
374
415
  """
416
+
375
417
  # Validate cache type
376
418
  if not isinstance(cache, Cache):
377
419
  raise TypeError(f"Expected Cache instance, got {type(cache).__name__}")
@@ -382,6 +424,31 @@ class Application(Container, IApplication):
382
424
  # Return the application instance for method chaining
383
425
  return self
384
426
 
427
+ def configCors(self, **cors_config) -> 'Application':
428
+ """
429
+ Configure the CORS with various settings.
430
+
431
+ Parameters
432
+ ----------
433
+ **cors_config : dict
434
+ Configuration parameters for CORS. Must match the fields
435
+ expected by the Cors dataclass (orionis.foundation.config.cors.entities.cors.Cors).
436
+
437
+ Returns
438
+ -------
439
+ Application
440
+ The application instance for method chaining
441
+ """
442
+
443
+ # Create Cors instance with provided parameters
444
+ cors = Cors(**cors_config)
445
+
446
+ # Load configuration using Cors instance
447
+ self.loadConfigCors(cors)
448
+
449
+ # Return the application instance for method chaining
450
+ return self
451
+
385
452
  def loadConfigCors(
386
453
  self,
387
454
  cors: Cors
@@ -399,6 +466,7 @@ class Application(Container, IApplication):
399
466
  Application
400
467
  The application instance for method chaining
401
468
  """
469
+
402
470
  # Validate cors type
403
471
  if not isinstance(cors, Cors):
404
472
  raise TypeError(f"Expected Cors instance, got {type(cors).__name__}")
@@ -409,6 +477,34 @@ class Application(Container, IApplication):
409
477
  # Return the application instance for method chaining
410
478
  return self
411
479
 
480
+ def configDatabase(
481
+ self,
482
+ **database_config
483
+ ) -> 'Application':
484
+ """
485
+ Configure the database with various settings.
486
+
487
+ Parameters
488
+ ----------
489
+ **database_config : dict
490
+ Configuration parameters for database. Must match the fields
491
+ expected by the Database dataclass (orionis.foundation.config.database.entities.database.Database).
492
+
493
+ Returns
494
+ -------
495
+ Application
496
+ The application instance for method chaining
497
+ """
498
+
499
+ # Create Database instance with provided parameters
500
+ database = Database(**database_config)
501
+
502
+ # Load configuration using Database instance
503
+ self.loadConfigDatabase(database)
504
+
505
+ # Return the application instance for method chaining
506
+ return self
507
+
412
508
  def loadConfigDatabase(
413
509
  self,
414
510
  database: Database
@@ -426,6 +522,7 @@ class Application(Container, IApplication):
426
522
  Application
427
523
  The application instance for method chaining
428
524
  """
525
+
429
526
  # Validate database type
430
527
  if not isinstance(database, Database):
431
528
  raise TypeError(f"Expected Database instance, got {type(database).__name__}")
@@ -436,6 +533,34 @@ class Application(Container, IApplication):
436
533
  # Return the application instance for method chaining
437
534
  return self
438
535
 
536
+ def configFilesystems(
537
+ self,
538
+ **filesystems_config
539
+ ) -> 'Application':
540
+ """
541
+ Configure the filesystems with various settings.
542
+
543
+ Parameters
544
+ ----------
545
+ **filesystems_config : dict
546
+ Configuration parameters for filesystems. Must match the fields
547
+ expected by the Filesystems dataclass (orionis.foundation.config.filesystems.entitites.filesystems.Filesystems).
548
+
549
+ Returns
550
+ -------
551
+ Application
552
+ The application instance for method chaining
553
+ """
554
+
555
+ # Create Filesystems instance with provided parameters
556
+ filesystems = Filesystems(**filesystems_config)
557
+
558
+ # Load configuration using Filesystems instance
559
+ self.loadConfigFilesystems(filesystems)
560
+
561
+ # Return the application instance for method chaining
562
+ return self
563
+
439
564
  def loadConfigFilesystems(
440
565
  self,
441
566
  filesystems: Filesystems
@@ -453,6 +578,7 @@ class Application(Container, IApplication):
453
578
  Application
454
579
  The application instance for method chaining
455
580
  """
581
+
456
582
  # Validate filesystems type
457
583
  if not isinstance(filesystems, Filesystems):
458
584
  raise TypeError(f"Expected Filesystems instance, got {type(filesystems).__name__}")
@@ -463,6 +589,34 @@ class Application(Container, IApplication):
463
589
  # Return the application instance for method chaining
464
590
  return self
465
591
 
592
+ def configLogging(
593
+ self,
594
+ **logging_config
595
+ ) -> 'Application':
596
+ """
597
+ Configure the logging system with various channel settings.
598
+
599
+ Parameters
600
+ ----------
601
+ **logging_config : dict
602
+ Configuration parameters for logging. Must match the fields
603
+ expected by the Logging dataclass (orionis.foundation.config.logging.entities.logging.Logging).
604
+
605
+ Returns
606
+ -------
607
+ Application
608
+ The application instance for method chaining
609
+ """
610
+
611
+ # Create Logging instance with provided parameters
612
+ logging = Logging(**logging_config)
613
+
614
+ # Load configuration using Logging instance
615
+ self.loadConfigLogging(logging)
616
+
617
+ # Return the application instance for method chaining
618
+ return self
619
+
466
620
  def loadConfigLogging(
467
621
  self,
468
622
  logging: Logging
@@ -480,6 +634,7 @@ class Application(Container, IApplication):
480
634
  Application
481
635
  The application instance for method chaining
482
636
  """
637
+
483
638
  # Validate logging type
484
639
  if not isinstance(logging, Logging):
485
640
  raise TypeError(f"Expected Logging instance, got {type(logging).__name__}")
@@ -490,6 +645,34 @@ class Application(Container, IApplication):
490
645
  # Return the application instance for method chaining
491
646
  return self
492
647
 
648
+ def configMail(
649
+ self,
650
+ **mail_config
651
+ ) -> 'Application':
652
+ """
653
+ Configure the mail system with various settings.
654
+
655
+ Parameters
656
+ ----------
657
+ **mail_config : dict
658
+ Configuration parameters for mail. Must match the fields
659
+ expected by the Mail dataclass (orionis.foundation.config.mail.entities.mail.Mail).
660
+
661
+ Returns
662
+ -------
663
+ Application
664
+ The application instance for method chaining
665
+ """
666
+
667
+ # Create Mail instance with provided parameters
668
+ mail = Mail(**mail_config)
669
+
670
+ # Load configuration using Mail instance
671
+ self.loadConfigMail(mail)
672
+
673
+ # Return the application instance for method chaining
674
+ return self
675
+
493
676
  def loadConfigMail(
494
677
  self,
495
678
  mail: Mail
@@ -507,14 +690,41 @@ class Application(Container, IApplication):
507
690
  Application
508
691
  The application instance for method chaining
509
692
  """
693
+
510
694
  # Validate mail type
511
695
  if not isinstance(mail, Mail):
512
696
  raise TypeError(f"Expected Mail instance, got {type(mail).__name__}")
513
697
 
514
698
  # Store the configuration
515
- self.__configurators.append({
516
- 'mail' : mail
517
- })
699
+ self.__configurators['mail'] = mail
700
+
701
+ # Return the application instance for method chaining
702
+ return self
703
+
704
+ def configQueue(
705
+ self,
706
+ **queue_config
707
+ ) -> 'Application':
708
+ """
709
+ Configure the queue system with various settings.
710
+
711
+ Parameters
712
+ ----------
713
+ **queue_config : dict
714
+ Configuration parameters for queue. Must match the fields
715
+ expected by the Queue dataclass (orionis.foundation.config.queue.entities.queue.Queue).
716
+
717
+ Returns
718
+ -------
719
+ Application
720
+ The application instance for method chaining
721
+ """
722
+
723
+ # Create Queue instance with provided parameters
724
+ queue = Queue(**queue_config)
725
+
726
+ # Load configuration using Queue instance
727
+ self.loadConfigQueue(queue)
518
728
 
519
729
  # Return the application instance for method chaining
520
730
  return self
@@ -536,14 +746,41 @@ class Application(Container, IApplication):
536
746
  Application
537
747
  The application instance for method chaining
538
748
  """
749
+
539
750
  # Validate queue type
540
751
  if not isinstance(queue, Queue):
541
752
  raise TypeError(f"Expected Queue instance, got {type(queue).__name__}")
542
753
 
543
754
  # Store the configuration
544
- self.__configurators.append({
545
- 'queue' : queue
546
- })
755
+ self.__configurators['queue'] = queue
756
+
757
+ # Return the application instance for method chaining
758
+ return self
759
+
760
+ def configSession(
761
+ self,
762
+ **session_config
763
+ ) -> 'Application':
764
+ """
765
+ Configure the session with various settings.
766
+
767
+ Parameters
768
+ ----------
769
+ **session_config : dict
770
+ Configuration parameters for session. Must match the fields
771
+ expected by the Session dataclass (orionis.foundation.config.session.entities.session.Session).
772
+
773
+ Returns
774
+ -------
775
+ Application
776
+ The application instance for method chaining
777
+ """
778
+
779
+ # Create Session instance with provided parameters
780
+ session = Session(**session_config)
781
+
782
+ # Load configuration using Session instance
783
+ self.loadConfigSession(session)
547
784
 
548
785
  # Return the application instance for method chaining
549
786
  return self
@@ -565,75 +802,71 @@ class Application(Container, IApplication):
565
802
  Application
566
803
  The application instance for method chaining
567
804
  """
805
+
568
806
  # Validate session type
569
807
  if not isinstance(session, Session):
570
808
  raise TypeError(f"Expected Session instance, got {type(session).__name__}")
571
809
 
572
810
  # Store the configuration
573
- self.__configurators.append({
574
- 'session' : session
575
- })
811
+ self.__configurators['session'] = session
576
812
 
577
813
  # Return the application instance for method chaining
578
814
  return self
579
815
 
580
- def loadConfigTesting(
816
+ def configTesting(
581
817
  self,
582
- testing: Testing
818
+ **testing_config
583
819
  ) -> 'Application':
584
820
  """
585
- Load the application testing configuration from a Testing instance.
821
+ Configure the testing with various settings.
586
822
 
587
823
  Parameters
588
824
  ----------
589
- testing : Testing
590
- The Testing instance containing testing configuration
825
+ **testing_config : dict
826
+ Configuration parameters for testing. Must match the fields
827
+ expected by the Testing dataclass (orionis.foundation.config.testing.entities.testing.Testing).
591
828
 
592
829
  Returns
593
830
  -------
594
831
  Application
595
832
  The application instance for method chaining
596
833
  """
597
- # Validate testing type
598
- if not isinstance(testing, Testing):
599
- raise TypeError(f"Expected Testing instance, got {type(testing).__name__}")
600
834
 
601
- # Store the configuration
602
- self.__configurators.append({
603
- 'testing' : testing
604
- })
835
+ # Create Testing instance with provided parameters
836
+ testing = Testing(**testing_config)
837
+
838
+ # Load configuration using Testing instance
839
+ self.loadConfigTesting(testing)
605
840
 
606
841
  # Return the application instance for method chaining
607
842
  return self
608
843
 
609
- def create(
610
- self
844
+ def loadConfigTesting(
845
+ self,
846
+ testing: Testing
611
847
  ) -> 'Application':
612
848
  """
613
- Bootstrap the application by loading providers and kernels.
849
+ Load the application testing configuration from a Testing instance.
850
+
851
+ Parameters
852
+ ----------
853
+ testing : Testing
854
+ The Testing instance containing testing configuration
614
855
 
615
856
  Returns
616
857
  -------
617
858
  Application
618
859
  The application instance for method chaining
619
860
  """
620
- # Check if already booted
621
- if not self.__booted:
622
-
623
- # Load core framework components
624
- self.__loadFrameworkProviders()
625
- self.__loadFrameworksKernel()
626
-
627
- # Register and boot all providers
628
- self.__registerProviders()
629
- self.__bootProviders()
630
861
 
631
- # Load configuration if not already set
632
- self.__loadConfig()
862
+ # Validate testing type
863
+ if not isinstance(testing, Testing):
864
+ raise TypeError(f"Expected Testing instance, got {type(testing).__name__}")
633
865
 
634
- # Mark as booted
635
- self.__booted = True
866
+ # Store the configuration
867
+ self.__configurators['testing'] = testing
636
868
 
869
+ # Return the application instance for method chaining
637
870
  return self
638
871
 
639
872
  def __loadConfig(
@@ -657,6 +890,8 @@ class Application(Container, IApplication):
657
890
  # Initialize with default configuration
658
891
  if not self.__configurators:
659
892
  self.__config = Configuration().toDict()
893
+
894
+ # If configurators are provided, use them to create the configuration
660
895
  else:
661
896
  self.__config = Configuration(**self.__configurators).toDict()
662
897
 
@@ -665,6 +900,36 @@ class Application(Container, IApplication):
665
900
  # Handle any exceptions during configuration loading
666
901
  raise RuntimeError(f"Failed to load application configuration: {str(e)}")
667
902
 
903
+ def create(
904
+ self
905
+ ) -> 'Application':
906
+ """
907
+ Bootstrap the application by loading providers and kernels.
908
+
909
+ Returns
910
+ -------
911
+ Application
912
+ The application instance for method chaining
913
+ """
914
+ # Check if already booted
915
+ if not self.__booted:
916
+
917
+ # Load core framework components
918
+ self.__loadFrameworkProviders()
919
+ self.__loadFrameworksKernel()
920
+
921
+ # Register and boot all providers
922
+ self.__registerProviders()
923
+ self.__bootProviders()
924
+
925
+ # Load configuration if not already set
926
+ self.__loadConfig()
927
+
928
+ # Mark as booted
929
+ self.__booted = True
930
+
931
+ return self
932
+
668
933
  def config(
669
934
  self,
670
935
  key: str,
@@ -685,6 +950,7 @@ class Application(Container, IApplication):
685
950
  Any
686
951
  The configuration value or the entire configuration if key is None
687
952
  """
953
+
688
954
  # If key is None, raise an error to prevent ambiguity
689
955
  if key is None:
690
956
  raise ValueError("Key cannot be None. Use config() without arguments to get the entire configuration.")
@@ -697,8 +963,12 @@ class Application(Container, IApplication):
697
963
 
698
964
  # Traverse the config dictionary based on the key parts
699
965
  for part in parts:
966
+
967
+ # If part is not in config_value, return default
700
968
  if isinstance(config_value, dict) and part in config_value:
701
969
  config_value = config_value[part]
970
+
971
+ # If part is not found, return default value
702
972
  else:
703
973
  return default
704
974
 
@@ -2,7 +2,6 @@ from abc import abstractmethod
2
2
  from typing import Any, List, Type
3
3
  from orionis.container.contracts.service_provider import IServiceProvider
4
4
  from orionis.container.contracts.container import IContainer
5
- from orionis.foundation.config.startup import Configuration
6
5
  from orionis.foundation.config.app.entities.app import App
7
6
  from orionis.foundation.config.auth.entities.auth import Auth
8
7
  from orionis.foundation.config.cache.entities.cache import Cache
@@ -14,7 +13,6 @@ from orionis.foundation.config.mail.entities.mail import Mail
14
13
  from orionis.foundation.config.queue.entities.queue import Queue
15
14
  from orionis.foundation.config.session.entities.session import Session
16
15
  from orionis.foundation.config.testing.entities.testing import Testing
17
- from orionis.support.wrapper.dot_dict import DotDict
18
16
 
19
17
  class IApplication(IContainer):
20
18
  """
@@ -344,4 +342,202 @@ class IApplication(IContainer):
344
342
  Any
345
343
  The configuration value or the entire configuration if key is None
346
344
  """
345
+ pass
346
+
347
+ @abstractmethod
348
+ def configApp(self, **app_config) -> 'IApplication':
349
+ """
350
+ Configure the application with various settings.
351
+
352
+ Parameters
353
+ ----------
354
+ **app_config : dict
355
+ Configuration parameters for the application. Must match the fields
356
+ expected by the App dataclass (orionis.foundation.config.app.entities.app.App).
357
+
358
+ Returns
359
+ -------
360
+ IApplication
361
+ The application instance for method chaining
362
+ """
363
+ pass
364
+
365
+ @abstractmethod
366
+ def configAuth(self, **auth_config) -> 'IApplication':
367
+ """
368
+ Configure the authentication with various settings.
369
+
370
+ Parameters
371
+ ----------
372
+ **auth_config : dict
373
+ Configuration parameters for authentication. Must match the fields
374
+ expected by the Auth dataclass (orionis.foundation.config.auth.entities.auth.Auth).
375
+
376
+ Returns
377
+ -------
378
+ IApplication
379
+ The application instance for method chaining
380
+ """
381
+ pass
382
+
383
+ @abstractmethod
384
+ def configCache(self, **cache_config) -> 'IApplication':
385
+ """
386
+ Configure the cache with various settings.
387
+
388
+ Parameters
389
+ ----------
390
+ **cache_config : dict
391
+ Configuration parameters for cache. Must match the fields
392
+ expected by the Cache dataclass (orionis.foundation.config.cache.entities.cache.Cache).
393
+
394
+ Returns
395
+ -------
396
+ IApplication
397
+ The application instance for method chaining
398
+ """
399
+ pass
400
+
401
+ @abstractmethod
402
+ def configCors(self, **cors_config) -> 'IApplication':
403
+ """
404
+ Configure the CORS with various settings.
405
+
406
+ Parameters
407
+ ----------
408
+ **cors_config : dict
409
+ Configuration parameters for CORS. Must match the fields
410
+ expected by the Cors dataclass (orionis.foundation.config.cors.entities.cors.Cors).
411
+
412
+ Returns
413
+ -------
414
+ IApplication
415
+ The application instance for method chaining
416
+ """
417
+ pass
418
+
419
+ @abstractmethod
420
+ def configDatabase(self, **database_config) -> 'IApplication':
421
+ """
422
+ Configure the database with various settings.
423
+
424
+ Parameters
425
+ ----------
426
+ **database_config : dict
427
+ Configuration parameters for database. Must match the fields
428
+ expected by the Database dataclass (orionis.foundation.config.database.entities.database.Database).
429
+
430
+ Returns
431
+ -------
432
+ IApplication
433
+ The application instance for method chaining
434
+ """
435
+ pass
436
+
437
+ @abstractmethod
438
+ def configFilesystems(self, **filesystems_config) -> 'IApplication':
439
+ """
440
+ Configure the filesystems with various settings.
441
+
442
+ Parameters
443
+ ----------
444
+ **filesystems_config : dict
445
+ Configuration parameters for filesystems. Must match the fields
446
+ expected by the Filesystems dataclass (orionis.foundation.config.filesystems.entitites.filesystems.Filesystems).
447
+
448
+ Returns
449
+ -------
450
+ IApplication
451
+ The application instance for method chaining
452
+ """
453
+ pass
454
+
455
+ @abstractmethod
456
+ def configLogging(self, **logging_config) -> 'IApplication':
457
+ """
458
+ Configure the logging system with various channel settings.
459
+
460
+ Parameters
461
+ ----------
462
+ **logging_config : dict
463
+ Configuration parameters for logging. Must match the fields
464
+ expected by the Logging dataclass (orionis.foundation.config.logging.entities.logging.Logging).
465
+
466
+ Returns
467
+ -------
468
+ IApplication
469
+ The application instance for method chaining
470
+ """
471
+ pass
472
+
473
+ @abstractmethod
474
+ def configMail(self, **mail_config) -> 'IApplication':
475
+ """
476
+ Configure the mail system with various settings.
477
+
478
+ Parameters
479
+ ----------
480
+ **mail_config : dict
481
+ Configuration parameters for mail. Must match the fields
482
+ expected by the Mail dataclass (orionis.foundation.config.mail.entities.mail.Mail).
483
+
484
+ Returns
485
+ -------
486
+ IApplication
487
+ The application instance for method chaining
488
+ """
489
+ pass
490
+
491
+ @abstractmethod
492
+ def configQueue(self, **queue_config) -> 'IApplication':
493
+ """
494
+ Configure the queue system with various settings.
495
+
496
+ Parameters
497
+ ----------
498
+ **queue_config : dict
499
+ Configuration parameters for queue. Must match the fields
500
+ expected by the Queue dataclass (orionis.foundation.config.queue.entities.queue.Queue).
501
+
502
+ Returns
503
+ -------
504
+ IApplication
505
+ The application instance for method chaining
506
+ """
507
+ pass
508
+
509
+ @abstractmethod
510
+ def configSession(self, **session_config) -> 'IApplication':
511
+ """
512
+ Configure the session with various settings.
513
+
514
+ Parameters
515
+ ----------
516
+ **session_config : dict
517
+ Configuration parameters for session. Must match the fields
518
+ expected by the Session dataclass (orionis.foundation.config.session.entities.session.Session).
519
+
520
+ Returns
521
+ -------
522
+ IApplication
523
+ The application instance for method chaining
524
+ """
525
+ pass
526
+
527
+ @abstractmethod
528
+ def configTesting(self, **testing_config) -> 'IApplication':
529
+ """
530
+ Configure the testing with various settings.
531
+
532
+ Parameters
533
+ ----------
534
+ **testing_config : dict
535
+ Configuration parameters for testing. Must match the fields
536
+ expected by the Testing dataclass (orionis.foundation.config.testing.entities.testing.Testing).
537
+
538
+ Returns
539
+ -------
540
+ IApplication
541
+ The application instance for method chaining
542
+ """
347
543
  pass
@@ -5,7 +5,7 @@
5
5
  NAME = "orionis"
6
6
 
7
7
  # Current version of the framework
8
- VERSION = "0.392.0"
8
+ VERSION = "0.393.0"
9
9
 
10
10
  # Full name of the author or maintainer of the project
11
11
  AUTHOR = "Raul Mauricio Uñate Castro"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: orionis
3
- Version: 0.392.0
3
+ Version: 0.393.0
4
4
  Summary: Orionis Framework – Elegant, Fast, and Powerful.
5
5
  Home-page: https://github.com/orionis-framework/framework
6
6
  Author: Raul Mauricio Uñate Castro
@@ -148,7 +148,7 @@ orionis/container/validators/is_subclass.py,sha256=4sBaGLoRs8nUhuWjlP0VJqyTwVHYq
148
148
  orionis/container/validators/is_valid_alias.py,sha256=4uAYcq8xov7jZbXnpKpjNkxcZtlTNnL5RRctVPMwJes,1424
149
149
  orionis/container/validators/lifetime.py,sha256=IQ43fDNrxYHMlZH2zlYDJnlkLO_eS4U7Fs3UJgQBidI,1844
150
150
  orionis/foundation/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
151
- orionis/foundation/application.py,sha256=KzwTNRNKTyFk60zM2YzX908OWpX2tZV49LWG-Ll73vQ,21962
151
+ orionis/foundation/application.py,sha256=fypQKKry0ACF1SlN4ml6FpMQGguRcpOkYzARBjCix7w,30451
152
152
  orionis/foundation/config/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
153
153
  orionis/foundation/config/startup.py,sha256=zutF-34DkW68bpiTxH9xrmIe1iJdXCF9Y6wueXS6qys,8265
154
154
  orionis/foundation/config/app/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -237,7 +237,7 @@ orionis/foundation/config/testing/entities/testing.py,sha256=keU7dSuRv0rgaG-T4Vo
237
237
  orionis/foundation/config/testing/enums/__init__.py,sha256=tCHed6wBzqHx8o3kWBGm8tZYkYOKdSAx8TvgC-Eauv0,75
238
238
  orionis/foundation/config/testing/enums/test_mode.py,sha256=IbFpauu7J-iSAfmC8jDbmTEYl8eZr-AexL-lyOh8_74,337
239
239
  orionis/foundation/contracts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
240
- orionis/foundation/contracts/application.py,sha256=rbR6sHgjcooIZGNYXtUGO5RLvG0c4iJxdhJ9PGfvycA,10011
240
+ orionis/foundation/contracts/application.py,sha256=1LSLjGnMfFQ5-hM9a-4FGD5ltP_ghlFKItX05judDAY,15974
241
241
  orionis/foundation/contracts/config.py,sha256=Rpz6U6t8OXHO9JJKSTnCimytXE-tfCB-1ithP2nG8MQ,628
242
242
  orionis/foundation/exceptions/__init__.py,sha256=XtG3MJ_MFNY_dU5mmTyz_N_4QG1jYrcv5RegBso7wuY,163
243
243
  orionis/foundation/exceptions/integrity.py,sha256=mc4pL1UMoYRHEmphnpW2oGk5URhu7DJRREyzHaV-cs8,472
@@ -249,7 +249,7 @@ orionis/foundation/providers/path_resolver_provider.py,sha256=rXvaVc5sSqmDgRzWJo
249
249
  orionis/foundation/providers/progress_bar_provider.py,sha256=75Jr4iEgUOUGl8Di1DioeP5_HRQlR-1lVzPmS96sWjA,737
250
250
  orionis/foundation/providers/workers_provider.py,sha256=WWlji3C69_-Y0c42aZDbR_bmcE_qZEh2SaA_cNkCivI,702
251
251
  orionis/metadata/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
252
- orionis/metadata/framework.py,sha256=NisdW45j_SD6TAcLF8gMsFcBApFsBQUUIv-dK8eH5yc,4960
252
+ orionis/metadata/framework.py,sha256=oMJGx_QLNfhPfNONg9EIH78BcGlZQkATZn3v8w3wH8o,4960
253
253
  orionis/metadata/package.py,sha256=tqLfBRo-w1j_GN4xvzUNFyweWYFS-qhSgAEc-AmCH1M,5452
254
254
  orionis/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
255
255
  orionis/services/asynchrony/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -386,7 +386,7 @@ orionis/test/records/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hS
386
386
  orionis/test/records/logs.py,sha256=EOQcloMVdhlNl2lU9igQz8H4b-OtKtiwh2pgr_QZWOI,13186
387
387
  orionis/test/view/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
388
388
  orionis/test/view/render.py,sha256=zd7xDvVfmQ2HxZamDTzL2-z2PpyL99EaolbbM7wTah4,5014
389
- orionis-0.392.0.dist-info/licenses/LICENCE,sha256=-_4cF2EBKuYVS_SQpy1uapq0oJPUU1vl_RUWSy2jJTo,1111
389
+ orionis-0.393.0.dist-info/licenses/LICENCE,sha256=-_4cF2EBKuYVS_SQpy1uapq0oJPUU1vl_RUWSy2jJTo,1111
390
390
  tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
391
391
  tests/example/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
392
392
  tests/example/test_example.py,sha256=8G7kp74PZZ0Tdnw8WkheZ7lvZVFpdx_9ShOZBN9GEF0,25582
@@ -487,8 +487,8 @@ tests/support/wrapper/test_services_wrapper_docdict.py,sha256=nTNrvJkMSPx_aopEQ9
487
487
  tests/testing/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
488
488
  tests/testing/test_testing_result.py,sha256=fnH7hjumNSErAFGITJgq2LHxSzvPF2tdtmHL9kyAv-Y,4409
489
489
  tests/testing/test_testing_unit.py,sha256=d3CRGo6608fMzYcZKIKapjx_af2aigqWiKSiuK9euIY,7600
490
- orionis-0.392.0.dist-info/METADATA,sha256=L0ZAamDSA8QCzLav3v6ap9XqDINAFWIC0Y0TTS7HLQk,4772
491
- orionis-0.392.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
492
- orionis-0.392.0.dist-info/top_level.txt,sha256=udNmZ4TdfoC-7CBFJO7HLpWggpCM71okNNgNVzgpjt4,21
493
- orionis-0.392.0.dist-info/zip-safe,sha256=frcCV1k9oG9oKj3dpUqdJg1PxRT2RSN_XKdLCPjaYaY,2
494
- orionis-0.392.0.dist-info/RECORD,,
490
+ orionis-0.393.0.dist-info/METADATA,sha256=R7BQV5c2mY6G8r391hjzqDdBLPmsmiHcdigk-9yj3Rc,4772
491
+ orionis-0.393.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
492
+ orionis-0.393.0.dist-info/top_level.txt,sha256=udNmZ4TdfoC-7CBFJO7HLpWggpCM71okNNgNVzgpjt4,21
493
+ orionis-0.393.0.dist-info/zip-safe,sha256=frcCV1k9oG9oKj3dpUqdJg1PxRT2RSN_XKdLCPjaYaY,2
494
+ orionis-0.393.0.dist-info/RECORD,,