orionis 0.506.0__py3-none-any.whl → 0.507.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/app.py +7 -5
- orionis/foundation/contracts/application.py +76 -81
- orionis/metadata/framework.py +1 -1
- {orionis-0.506.0.dist-info → orionis-0.507.0.dist-info}/METADATA +1 -1
- {orionis-0.506.0.dist-info → orionis-0.507.0.dist-info}/RECORD +9 -9
- {orionis-0.506.0.dist-info → orionis-0.507.0.dist-info}/WHEEL +0 -0
- {orionis-0.506.0.dist-info → orionis-0.507.0.dist-info}/licenses/LICENCE +0 -0
- {orionis-0.506.0.dist-info → orionis-0.507.0.dist-info}/top_level.txt +0 -0
- {orionis-0.506.0.dist-info → orionis-0.507.0.dist-info}/zip-safe +0 -0
orionis/app.py
CHANGED
|
@@ -2,16 +2,18 @@ from orionis.foundation.application import Application, IApplication
|
|
|
2
2
|
|
|
3
3
|
def Orionis() -> IApplication:
|
|
4
4
|
"""
|
|
5
|
-
|
|
5
|
+
Creates and returns the main Orionis application instance.
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
This function initializes the core application object that implements the `IApplication` interface.
|
|
8
|
+
It serves as the primary entry point for creating and accessing the main application instance,
|
|
9
|
+
ensuring that the application is properly set up before use.
|
|
9
10
|
|
|
10
11
|
Returns
|
|
11
12
|
-------
|
|
12
13
|
IApplication
|
|
13
|
-
|
|
14
|
+
An instance of `Application` that implements the `IApplication` interface, representing
|
|
15
|
+
the main Orionis application.
|
|
14
16
|
"""
|
|
15
17
|
|
|
16
|
-
# Instantiate
|
|
18
|
+
# Instantiate the main application object implementing IApplication
|
|
17
19
|
return Application()
|
|
@@ -567,11 +567,11 @@ class IApplication(IContainer):
|
|
|
567
567
|
def setPaths(
|
|
568
568
|
self,
|
|
569
569
|
*,
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
570
|
+
root: str | Path = Path.cwd().resolve(),
|
|
571
|
+
commands: str | Path = (Path.cwd() / 'app' / 'console' / 'commands').resolve(),
|
|
572
|
+
controllers: str | Path = (Path.cwd() / 'app' / 'http' / 'controllers').resolve(),
|
|
573
|
+
middleware: str | Path = (Path.cwd() / 'app' / 'http' / 'middleware').resolve(),
|
|
574
|
+
requests: str | Path = (Path.cwd() / 'app' / 'http' / 'requests').resolve(),
|
|
575
575
|
models: str | Path = (Path.cwd() / 'app' / 'models').resolve(),
|
|
576
576
|
providers: str | Path = (Path.cwd() / 'app' / 'providers').resolve(),
|
|
577
577
|
events: str | Path = (Path.cwd() / 'app' / 'events').resolve(),
|
|
@@ -584,95 +584,90 @@ class IApplication(IContainer):
|
|
|
584
584
|
views: str | Path = (Path.cwd() / 'resources' / 'views').resolve(),
|
|
585
585
|
lang: str | Path = (Path.cwd() / 'resources' / 'lang').resolve(),
|
|
586
586
|
assets: str | Path = (Path.cwd() / 'resources' / 'assets').resolve(),
|
|
587
|
-
|
|
588
|
-
routes_api: str | Path = (Path.cwd() / 'routes' / 'api.py').resolve(),
|
|
589
|
-
routes_console: str | Path = (Path.cwd() / 'routes' / 'console.py').resolve(),
|
|
590
|
-
routes_channels: str | Path = (Path.cwd() / 'routes' / 'channels.py').resolve(),
|
|
587
|
+
routes: str | Path = (Path.cwd() / 'routes').resolve(),
|
|
591
588
|
config: str | Path = (Path.cwd() / 'config').resolve(),
|
|
592
589
|
migrations: str | Path = (Path.cwd() / 'database' / 'migrations').resolve(),
|
|
593
590
|
seeders: str | Path = (Path.cwd() / 'database' / 'seeders').resolve(),
|
|
594
591
|
factories: str | Path = (Path.cwd() / 'database' / 'factories').resolve(),
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
592
|
+
logs: str | Path = (Path.cwd() / 'storage' / 'logs').resolve(),
|
|
593
|
+
sessions: str | Path = (Path.cwd() / 'storage' / 'framework' / 'sessions').resolve(),
|
|
594
|
+
cache: str | Path = (Path.cwd() / 'storage' / 'framework' / 'cache').resolve(),
|
|
595
|
+
testing: str | Path = (Path.cwd() / 'storage' / 'framework' / 'testing').resolve(),
|
|
596
|
+
storage: str | Path = (Path.cwd() / 'storage').resolve()
|
|
600
597
|
) -> 'IApplication':
|
|
601
598
|
"""
|
|
602
|
-
|
|
599
|
+
Set and resolve application directory paths using keyword arguments.
|
|
603
600
|
|
|
604
|
-
This method allows
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
601
|
+
This method allows customization of all major application directory paths, such as
|
|
602
|
+
console components, HTTP components, application layers, resources, routes,
|
|
603
|
+
database files, and storage locations. All provided paths are resolved to absolute
|
|
604
|
+
paths and stored as strings in the configuration dictionary.
|
|
608
605
|
|
|
609
606
|
Parameters
|
|
610
607
|
----------
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
Directory
|
|
615
|
-
|
|
616
|
-
Directory
|
|
617
|
-
|
|
618
|
-
Directory
|
|
619
|
-
|
|
620
|
-
Directory
|
|
621
|
-
models : str
|
|
622
|
-
Directory
|
|
623
|
-
providers : str
|
|
624
|
-
Directory
|
|
625
|
-
events : str
|
|
626
|
-
Directory
|
|
627
|
-
listeners : str
|
|
628
|
-
Directory
|
|
629
|
-
notifications : str
|
|
630
|
-
Directory
|
|
631
|
-
jobs : str
|
|
632
|
-
Directory
|
|
633
|
-
policies : str
|
|
634
|
-
Directory
|
|
635
|
-
exceptions : str
|
|
636
|
-
Directory
|
|
637
|
-
services : str
|
|
638
|
-
Directory
|
|
639
|
-
views : str
|
|
640
|
-
Directory
|
|
641
|
-
lang : str
|
|
642
|
-
Directory
|
|
643
|
-
assets : str
|
|
644
|
-
Directory
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
Directory
|
|
655
|
-
|
|
656
|
-
Directory
|
|
657
|
-
|
|
658
|
-
Directory
|
|
659
|
-
|
|
660
|
-
Directory
|
|
661
|
-
|
|
662
|
-
Directory
|
|
663
|
-
storage_framework : str | Path, optional
|
|
664
|
-
Directory path for framework storage files.
|
|
665
|
-
storage_sessions : str | Path, optional
|
|
666
|
-
Directory path for session storage files.
|
|
667
|
-
storage_cache : str | Path, optional
|
|
668
|
-
Directory path for cache storage files.
|
|
669
|
-
storage_views : str | Path, optional
|
|
670
|
-
Directory path for compiled view cache files.
|
|
608
|
+
root : str or Path, optional
|
|
609
|
+
Root directory of the application. Defaults to the current working directory.
|
|
610
|
+
commands : str or Path, optional
|
|
611
|
+
Directory for console command classes. Defaults to 'app/console/commands'.
|
|
612
|
+
controllers : str or Path, optional
|
|
613
|
+
Directory for HTTP controller classes. Defaults to 'app/http/controllers'.
|
|
614
|
+
middleware : str or Path, optional
|
|
615
|
+
Directory for HTTP middleware classes. Defaults to 'app/http/middleware'.
|
|
616
|
+
requests : str or Path, optional
|
|
617
|
+
Directory for HTTP request classes. Defaults to 'app/http/requests'.
|
|
618
|
+
models : str or Path, optional
|
|
619
|
+
Directory for data model classes. Defaults to 'app/models'.
|
|
620
|
+
providers : str or Path, optional
|
|
621
|
+
Directory for service provider classes. Defaults to 'app/providers'.
|
|
622
|
+
events : str or Path, optional
|
|
623
|
+
Directory for event classes. Defaults to 'app/events'.
|
|
624
|
+
listeners : str or Path, optional
|
|
625
|
+
Directory for event listener classes. Defaults to 'app/listeners'.
|
|
626
|
+
notifications : str or Path, optional
|
|
627
|
+
Directory for notification classes. Defaults to 'app/notifications'.
|
|
628
|
+
jobs : str or Path, optional
|
|
629
|
+
Directory for queue job classes. Defaults to 'app/jobs'.
|
|
630
|
+
policies : str or Path, optional
|
|
631
|
+
Directory for authorization policy classes. Defaults to 'app/policies'.
|
|
632
|
+
exceptions : str or Path, optional
|
|
633
|
+
Directory for custom exception classes. Defaults to 'app/exceptions'.
|
|
634
|
+
services : str or Path, optional
|
|
635
|
+
Directory for application service classes. Defaults to 'app/services'.
|
|
636
|
+
views : str or Path, optional
|
|
637
|
+
Directory for view templates. Defaults to 'resources/views'.
|
|
638
|
+
lang : str or Path, optional
|
|
639
|
+
Directory for language files. Defaults to 'resources/lang'.
|
|
640
|
+
assets : str or Path, optional
|
|
641
|
+
Directory for asset files. Defaults to 'resources/assets'.
|
|
642
|
+
routes : str or Path, optional
|
|
643
|
+
Directory for route definitions. Defaults to 'routes'.
|
|
644
|
+
config : str or Path, optional
|
|
645
|
+
Directory for configuration files. Defaults to 'config'.
|
|
646
|
+
migrations : str or Path, optional
|
|
647
|
+
Directory for database migration files. Defaults to 'database/migrations'.
|
|
648
|
+
seeders : str or Path, optional
|
|
649
|
+
Directory for database seeder files. Defaults to 'database/seeders'.
|
|
650
|
+
factories : str or Path, optional
|
|
651
|
+
Directory for model factory files. Defaults to 'database/factories'.
|
|
652
|
+
logs : str or Path, optional
|
|
653
|
+
Directory for log file storage. Defaults to 'storage/logs'.
|
|
654
|
+
sessions : str or Path, optional
|
|
655
|
+
Directory for session file storage. Defaults to 'storage/framework/sessions'.
|
|
656
|
+
cache : str or Path, optional
|
|
657
|
+
Directory for cache file storage. Defaults to 'storage/framework/cache'.
|
|
658
|
+
testing : str or Path, optional
|
|
659
|
+
Directory for testing file storage. Defaults to 'storage/framework/testing'.
|
|
671
660
|
|
|
672
661
|
Returns
|
|
673
662
|
-------
|
|
674
|
-
|
|
675
|
-
|
|
663
|
+
Application
|
|
664
|
+
Returns the current Application instance to enable method chaining.
|
|
665
|
+
|
|
666
|
+
Notes
|
|
667
|
+
-----
|
|
668
|
+
All path parameters accept either string or Path objects and are automatically
|
|
669
|
+
resolved to absolute paths relative to the current working directory. The
|
|
670
|
+
resolved paths are stored as strings in the internal configuration dictionary.
|
|
676
671
|
"""
|
|
677
672
|
pass
|
|
678
673
|
|
orionis/metadata/framework.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
orionis/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
-
orionis/app.py,sha256=
|
|
2
|
+
orionis/app.py,sha256=bRZo4WbTXf9UidNc09Pm-kn1pIO9Hj86xCEJ-rpz2wQ,742
|
|
3
3
|
orionis/console/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
4
|
orionis/console/kernel.py,sha256=m4RoulZB3nkl6-O250UDN4ZoXqfTF4F5gbAYt7TAnQo,3054
|
|
5
5
|
orionis/console/args/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -197,7 +197,7 @@ orionis/foundation/config/testing/enums/drivers.py,sha256=mwv47FcKDXEOxydQXAGtkd
|
|
|
197
197
|
orionis/foundation/config/testing/enums/mode.py,sha256=IbFpauu7J-iSAfmC8jDbmTEYl8eZr-AexL-lyOh8_74,337
|
|
198
198
|
orionis/foundation/config/testing/enums/verbosity.py,sha256=Z-FQ6C3rxbRwP8HoVibbgRMGcsen2SwTuEy3wnjdIhc,486
|
|
199
199
|
orionis/foundation/contracts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
200
|
-
orionis/foundation/contracts/application.py,sha256=
|
|
200
|
+
orionis/foundation/contracts/application.py,sha256=SyO8m9qw5P8E60zJ1WCitc9llvEaWkT2CLPrkDIBIq0,31610
|
|
201
201
|
orionis/foundation/contracts/config.py,sha256=mCyA43f0n_e-CEL0f-sWWgE-M7GicS_aEtC_TNbn_yc,802
|
|
202
202
|
orionis/foundation/exceptions/__init__.py,sha256=q6we1N8kcd6j6GjUJY30WQhhHnqF9RXA0c6-ksEztlc,294
|
|
203
203
|
orionis/foundation/exceptions/integrity.py,sha256=mc4pL1UMoYRHEmphnpW2oGk5URhu7DJRREyzHaV-cs8,472
|
|
@@ -219,7 +219,7 @@ orionis/foundation/providers/scheduler_provider.py,sha256=72SoixFog9IOE9Ve9Xcfw6
|
|
|
219
219
|
orionis/foundation/providers/testing_provider.py,sha256=SrJRpdvcblx9WvX7x9Y3zc7OQfiTf7la0HAJrm2ESlE,3725
|
|
220
220
|
orionis/foundation/providers/workers_provider.py,sha256=oa_2NIDH6UxZrtuGkkoo_zEoNIMGgJ46vg5CCgAm7wI,3926
|
|
221
221
|
orionis/metadata/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
222
|
-
orionis/metadata/framework.py,sha256=
|
|
222
|
+
orionis/metadata/framework.py,sha256=fFR8Cs3ZS8FjoV9AhPPcw-3A_6DGHTpumC7OCWp-mGo,4109
|
|
223
223
|
orionis/metadata/package.py,sha256=k7Yriyp5aUcR-iR8SK2ec_lf0_Cyc-C7JczgXa-I67w,16039
|
|
224
224
|
orionis/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
225
225
|
orionis/services/asynchrony/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -395,7 +395,7 @@ orionis/test/validators/web_report.py,sha256=n9BfzOZz6aEiNTypXcwuWbFRG0OdHNSmCNu
|
|
|
395
395
|
orionis/test/validators/workers.py,sha256=rWcdRexINNEmGaO7mnc1MKUxkHKxrTsVuHgbnIfJYgc,1206
|
|
396
396
|
orionis/test/view/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
397
397
|
orionis/test/view/render.py,sha256=f-zNhtKSg9R5Njqujbg2l2amAs2-mRVESneLIkWOZjU,4082
|
|
398
|
-
orionis-0.
|
|
398
|
+
orionis-0.507.0.dist-info/licenses/LICENCE,sha256=JhC-z_9mbpUrCfPjcl3DhDA8trNDMzb57cvRSam1avc,1463
|
|
399
399
|
tests/container/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
400
400
|
tests/container/context/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
401
401
|
tests/container/context/test_manager.py,sha256=wOwXpl9rHNfTTexa9GBKYMwK0_-KSQPbI-AEyGNkmAE,1356
|
|
@@ -541,8 +541,8 @@ tests/testing/validators/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZ
|
|
|
541
541
|
tests/testing/validators/test_testing_validators.py,sha256=WPo5GxTP6xE-Dw3X1vZoqOMpb6HhokjNSbgDsDRDvy4,16588
|
|
542
542
|
tests/testing/view/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
543
543
|
tests/testing/view/test_render.py,sha256=tnnMBwS0iKUIbogLvu-7Rii50G6Koddp3XT4wgdFEYM,1050
|
|
544
|
-
orionis-0.
|
|
545
|
-
orionis-0.
|
|
546
|
-
orionis-0.
|
|
547
|
-
orionis-0.
|
|
548
|
-
orionis-0.
|
|
544
|
+
orionis-0.507.0.dist-info/METADATA,sha256=jTF7G9c5k9OZectyJLiq480nITd4_ccGQwDRRet0dnQ,4801
|
|
545
|
+
orionis-0.507.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
546
|
+
orionis-0.507.0.dist-info/top_level.txt,sha256=2bdoHgyGZhOtLAXS6Om8OCTmL24dUMC_L1quMe_ETbk,14
|
|
547
|
+
orionis-0.507.0.dist-info/zip-safe,sha256=frcCV1k9oG9oKj3dpUqdJg1PxRT2RSN_XKdLCPjaYaY,2
|
|
548
|
+
orionis-0.507.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|