orionis 0.733.0__py3-none-any.whl → 0.735.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/console/commands/server.py +17 -0
- orionis/foundation/config/filesystems/entitites/public.py +2 -2
- orionis/http/kernel.py +1 -2
- orionis/metadata/framework.py +2 -1
- {orionis-0.733.0.dist-info → orionis-0.735.0.dist-info}/METADATA +2 -1
- {orionis-0.733.0.dist-info → orionis-0.735.0.dist-info}/RECORD +9 -9
- {orionis-0.733.0.dist-info → orionis-0.735.0.dist-info}/WHEEL +0 -0
- {orionis-0.733.0.dist-info → orionis-0.735.0.dist-info}/licenses/LICENCE +0 -0
- {orionis-0.733.0.dist-info → orionis-0.735.0.dist-info}/top_level.txt +0 -0
|
@@ -52,7 +52,22 @@ class ServerCommand(BaseCommand):
|
|
|
52
52
|
interface: str = app_config.get("interface", "asgi")
|
|
53
53
|
app_path: str = "bootstrap.app:app"
|
|
54
54
|
|
|
55
|
+
# Retrieve filesystem configuration for static file serving
|
|
56
|
+
filesystems_config: dict = Application.config("filesystems")
|
|
57
|
+
public_disk: dict = filesystems_config.get("disks", {}).get("public", {})
|
|
58
|
+
path: str = public_disk.get("path", "storage/app/public")
|
|
59
|
+
url: str = public_disk.get("url", "static")
|
|
60
|
+
|
|
61
|
+
# Ensure the static file path is absolute
|
|
62
|
+
if not os.path.isabs(path):
|
|
63
|
+
path = os.path.abspath(os.path.join(os.getcwd(), path))
|
|
64
|
+
|
|
65
|
+
# Ensure the static file directory exists
|
|
66
|
+
if not os.path.exists(path):
|
|
67
|
+
os.makedirs(path, exist_ok=True)
|
|
68
|
+
|
|
55
69
|
# Build the command to launch the Granian server
|
|
70
|
+
# Do NOT wrap the path in quotes; Granian expects a raw path
|
|
56
71
|
cmd = [
|
|
57
72
|
sys.executable, "-B", "-m", "granian",
|
|
58
73
|
"--interface", interface,
|
|
@@ -60,6 +75,8 @@ class ServerCommand(BaseCommand):
|
|
|
60
75
|
"--port", str(port),
|
|
61
76
|
"--workers", "1" if os.name == "nt" else str(workers),
|
|
62
77
|
"--no-log",
|
|
78
|
+
"--static-path-route", url,
|
|
79
|
+
"--static-path-mount", path,
|
|
63
80
|
app_path
|
|
64
81
|
]
|
|
65
82
|
if reload:
|
orionis/http/kernel.py
CHANGED
|
@@ -2,7 +2,6 @@ from orionis.console.exceptions import CLIOrionisValueError
|
|
|
2
2
|
from orionis.failure.contracts.catch import ICatch
|
|
3
3
|
from orionis.foundation.contracts.application import IApplication
|
|
4
4
|
from orionis.http.contracts.kernel import IKernelHTTP
|
|
5
|
-
from granian._granian import RSGIHTTPScope
|
|
6
5
|
from orionis.http.core.asgi import ASGIGateway
|
|
7
6
|
from orionis.http.core.rsgi import RSGIGateway
|
|
8
7
|
|
|
@@ -47,7 +46,7 @@ class KernelHTTP(IKernelHTTP):
|
|
|
47
46
|
path = scope.get("path")
|
|
48
47
|
print(f"[{method}] - {path}")
|
|
49
48
|
await ASGIGateway(*args)
|
|
50
|
-
|
|
49
|
+
else:
|
|
51
50
|
method = args[0].method
|
|
52
51
|
path = args[0].path
|
|
53
52
|
print(f"[{method}] - {path}")
|
orionis/metadata/framework.py
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
NAME = "orionis"
|
|
7
7
|
|
|
8
8
|
# Current version of the framework
|
|
9
|
-
VERSION = "0.
|
|
9
|
+
VERSION = "0.735.0"
|
|
10
10
|
|
|
11
11
|
# Full name of the author or maintainer of the project
|
|
12
12
|
AUTHOR = "Raul Mauricio Uñate Castro"
|
|
@@ -97,6 +97,7 @@ REQUIRES = [
|
|
|
97
97
|
'pyclean>=3.1.0',
|
|
98
98
|
'dotty-dict>=1.3.1',
|
|
99
99
|
'granian>=2.5.5',
|
|
100
|
+
'granian[reload]>=2.5.5',
|
|
100
101
|
]
|
|
101
102
|
|
|
102
103
|
#---------------------------------------------------------------------------
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: orionis
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.735.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
|
|
@@ -38,6 +38,7 @@ Requires-Dist: twine>=5.0.0
|
|
|
38
38
|
Requires-Dist: pyclean>=3.1.0
|
|
39
39
|
Requires-Dist: dotty-dict>=1.3.1
|
|
40
40
|
Requires-Dist: granian>=2.5.5
|
|
41
|
+
Requires-Dist: granian[reload]>=2.5.5
|
|
41
42
|
Dynamic: author
|
|
42
43
|
Dynamic: author-email
|
|
43
44
|
Dynamic: classifier
|
|
@@ -16,7 +16,7 @@ orionis/console/commands/make_command.py,sha256=eL33zKDRmKaTsuqdYjyMzKsDb1D-R4iW
|
|
|
16
16
|
orionis/console/commands/make_scheduler_listener.py,sha256=LT4pbUsCqrrYDfuantW65GAjlWZrJlqY0frJtHiH42M,5239
|
|
17
17
|
orionis/console/commands/scheduler_list.py,sha256=7E0C926e7YVU3YxqQ8Ot2as7Yco0jviFaxM8WrOYfsg,5316
|
|
18
18
|
orionis/console/commands/scheduler_work.py,sha256=dDW9XTjGb-5ABuhPYjfd1rfO7xLDhgYu5nd6nToiYFE,5597
|
|
19
|
-
orionis/console/commands/server.py,sha256=
|
|
19
|
+
orionis/console/commands/server.py,sha256=fyzfnulkepbLNIahm_mahf23VqAYEiRheOJXGYEkHto,6213
|
|
20
20
|
orionis/console/commands/test.py,sha256=G3pveONRbeWTcVwaHat3wTAhxMm4g_BwhJhIejq6V0Y,3518
|
|
21
21
|
orionis/console/commands/version.py,sha256=Av_9oVkhtisf-oDljKbXK5TmCFaeYagLJmOwEVYJPZw,4835
|
|
22
22
|
orionis/console/contracts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -143,7 +143,7 @@ orionis/foundation/config/filesystems/entitites/aws.py,sha256=Tzg7FIO2EpIBh51C0C
|
|
|
143
143
|
orionis/foundation/config/filesystems/entitites/disks.py,sha256=MhdM2ucIDdqkSbbevHwLg6BVw9do5pAJAEA-SSdUkG4,2899
|
|
144
144
|
orionis/foundation/config/filesystems/entitites/filesystems.py,sha256=tYtNmDpMlm662de7sSPuAuOfo6lcG3jVcL15fa3TEHs,1836
|
|
145
145
|
orionis/foundation/config/filesystems/entitites/local.py,sha256=PNgcJ7qxhVWSi5LxXuv7Kg48x6Tt34HBQsgux_fxtfk,1212
|
|
146
|
-
orionis/foundation/config/filesystems/entitites/public.py,sha256=
|
|
146
|
+
orionis/foundation/config/filesystems/entitites/public.py,sha256=tVAyRgt_A4mnZJIIa_qM2TX8_oaQxehGRGjbmgFkOhY,1683
|
|
147
147
|
orionis/foundation/config/logging/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
148
148
|
orionis/foundation/config/logging/entities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
149
149
|
orionis/foundation/config/logging/entities/channels.py,sha256=-bguMcxirxwJl1qLtDbFkRcJ594MaH9bo8jYk-RC3Ec,4928
|
|
@@ -208,14 +208,14 @@ orionis/foundation/providers/scheduler_provider.py,sha256=IrPQJwvQVLRm5Qnz0Cxon4
|
|
|
208
208
|
orionis/foundation/providers/testing_provider.py,sha256=eI1p2lUlxl25b5Z487O4nmqLE31CTDb4c3Q21xFadkE,1615
|
|
209
209
|
orionis/foundation/providers/workers_provider.py,sha256=GdHENYV_yGyqmHJHn0DCyWmWId5xWjD48e6Zq2PGCWY,1674
|
|
210
210
|
orionis/http/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
211
|
-
orionis/http/kernel.py,sha256=
|
|
211
|
+
orionis/http/kernel.py,sha256=OqzqRllhZhG8GFWQsRXc2OkNj99uPzsOMHXYhxJbRg4,1920
|
|
212
212
|
orionis/http/contracts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
213
213
|
orionis/http/contracts/kernel.py,sha256=-OvNfV-081Ju5sDaksjSb63QMJ9dZafDcc9Q_9RO0ww,1364
|
|
214
214
|
orionis/http/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
215
215
|
orionis/http/core/asgi.py,sha256=L0UBzVEFHkclgCrhr68HyirxMhoPbyHdehNxzcj2Rw8,465
|
|
216
216
|
orionis/http/core/rsgi.py,sha256=kevwDn5BgJTveA1AMooBi-N7wE305ZuqySPomdi9XDk,365
|
|
217
217
|
orionis/metadata/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
218
|
-
orionis/metadata/framework.py,sha256=
|
|
218
|
+
orionis/metadata/framework.py,sha256=av6JZYc1EPk8ElY8kS9-f_H0jIsFePivyUTw1NFhuWM,4751
|
|
219
219
|
orionis/metadata/package.py,sha256=s1JeGJPwdVh4jO3IOfmpwMuJ_oX6Vf9NL7jgPEQNf5Y,16050
|
|
220
220
|
orionis/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
221
221
|
orionis/services/asynchrony/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -410,8 +410,8 @@ orionis/test/validators/workers.py,sha256=HcZ3cnrk6u7cvM1xZpn_lsglHAq69_jx9RcTSv
|
|
|
410
410
|
orionis/test/view/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
411
411
|
orionis/test/view/render.py,sha256=arysoswhkV2vUd2aVMZRPpmH317jaWbgjDpQ_AWQ5AE,5663
|
|
412
412
|
orionis/test/view/report.stub,sha256=QLqqCdRoENr3ECiritRB3DO_MOjRQvgBh5jxZ3Hs1r0,28189
|
|
413
|
-
orionis-0.
|
|
414
|
-
orionis-0.
|
|
415
|
-
orionis-0.
|
|
416
|
-
orionis-0.
|
|
417
|
-
orionis-0.
|
|
413
|
+
orionis-0.735.0.dist-info/licenses/LICENCE,sha256=JhC-z_9mbpUrCfPjcl3DhDA8trNDMzb57cvRSam1avc,1463
|
|
414
|
+
orionis-0.735.0.dist-info/METADATA,sha256=JvFVVZbhO-w89LBEjmBneGvCMBHHcdyyKLZNsmGiybw,5001
|
|
415
|
+
orionis-0.735.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
416
|
+
orionis-0.735.0.dist-info/top_level.txt,sha256=lyXi6jArpqJ-0zzNqd_uwsH-z9TCEBVBL-pC3Ekv7hU,8
|
|
417
|
+
orionis-0.735.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|