tigrcorn-runtime 0.3.18.dev3__tar.gz → 0.3.20__tar.gz
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.
- {tigrcorn_runtime-0.3.18.dev3/src/tigrcorn_runtime.egg-info → tigrcorn_runtime-0.3.20}/PKG-INFO +9 -9
- {tigrcorn_runtime-0.3.18.dev3 → tigrcorn_runtime-0.3.20}/pyproject.toml +9 -9
- {tigrcorn_runtime-0.3.18.dev3 → tigrcorn_runtime-0.3.20}/src/tigrcorn_runtime/api.py +12 -1
- tigrcorn_runtime-0.3.20/src/tigrcorn_runtime/cli.py +820 -0
- {tigrcorn_runtime-0.3.18.dev3 → tigrcorn_runtime-0.3.20}/src/tigrcorn_runtime/server/bootstrap.py +12 -1
- {tigrcorn_runtime-0.3.18.dev3 → tigrcorn_runtime-0.3.20}/src/tigrcorn_runtime/server/runner/base.py +38 -9
- {tigrcorn_runtime-0.3.18.dev3 → tigrcorn_runtime-0.3.20}/src/tigrcorn_runtime/server/runner/client_handlers.py +65 -25
- {tigrcorn_runtime-0.3.18.dev3 → tigrcorn_runtime-0.3.20}/src/tigrcorn_runtime/server/runner/diagnostics.py +34 -11
- tigrcorn_runtime-0.3.20/src/tigrcorn_runtime/server/runner/http11.py +309 -0
- {tigrcorn_runtime-0.3.18.dev3 → tigrcorn_runtime-0.3.20}/src/tigrcorn_runtime/server/runner/http11_serve.py +12 -1
- {tigrcorn_runtime-0.3.18.dev3 → tigrcorn_runtime-0.3.20}/src/tigrcorn_runtime/server/runner/imports.py +1 -1
- {tigrcorn_runtime-0.3.18.dev3 → tigrcorn_runtime-0.3.20}/src/tigrcorn_runtime/server/runner/lifecycle.py +32 -10
- tigrcorn_runtime-0.3.20/src/tigrcorn_runtime/server/supervisor.py +184 -0
- {tigrcorn_runtime-0.3.18.dev3 → tigrcorn_runtime-0.3.20}/src/tigrcorn_runtime/workers/process.py +23 -18
- {tigrcorn_runtime-0.3.18.dev3 → tigrcorn_runtime-0.3.20/src/tigrcorn_runtime.egg-info}/PKG-INFO +9 -9
- tigrcorn_runtime-0.3.20/src/tigrcorn_runtime.egg-info/requires.txt +16 -0
- tigrcorn_runtime-0.3.18.dev3/src/tigrcorn_runtime/cli.py +0 -208
- tigrcorn_runtime-0.3.18.dev3/src/tigrcorn_runtime/server/runner/http11.py +0 -214
- tigrcorn_runtime-0.3.18.dev3/src/tigrcorn_runtime/server/supervisor.py +0 -110
- tigrcorn_runtime-0.3.18.dev3/src/tigrcorn_runtime.egg-info/requires.txt +0 -16
- {tigrcorn_runtime-0.3.18.dev3 → tigrcorn_runtime-0.3.20}/LICENSE +0 -0
- {tigrcorn_runtime-0.3.18.dev3 → tigrcorn_runtime-0.3.20}/README.md +0 -0
- {tigrcorn_runtime-0.3.18.dev3 → tigrcorn_runtime-0.3.20}/setup.cfg +0 -0
- {tigrcorn_runtime-0.3.18.dev3 → tigrcorn_runtime-0.3.20}/src/tigrcorn_runtime/__init__.py +0 -0
- {tigrcorn_runtime-0.3.18.dev3 → tigrcorn_runtime-0.3.20}/src/tigrcorn_runtime/app_interfaces.py +0 -0
- {tigrcorn_runtime-0.3.18.dev3 → tigrcorn_runtime-0.3.20}/src/tigrcorn_runtime/embedded.py +0 -0
- {tigrcorn_runtime-0.3.18.dev3 → tigrcorn_runtime-0.3.20}/src/tigrcorn_runtime/py.typed +0 -0
- {tigrcorn_runtime-0.3.18.dev3 → tigrcorn_runtime-0.3.20}/src/tigrcorn_runtime/quic_cc.py +0 -0
- {tigrcorn_runtime-0.3.18.dev3 → tigrcorn_runtime-0.3.20}/src/tigrcorn_runtime/server/__init__.py +0 -0
- {tigrcorn_runtime-0.3.18.dev3 → tigrcorn_runtime-0.3.20}/src/tigrcorn_runtime/server/app_loader.py +0 -0
- {tigrcorn_runtime-0.3.18.dev3 → tigrcorn_runtime-0.3.20}/src/tigrcorn_runtime/server/hooks.py +0 -0
- {tigrcorn_runtime-0.3.18.dev3 → tigrcorn_runtime-0.3.20}/src/tigrcorn_runtime/server/reloader.py +0 -0
- {tigrcorn_runtime-0.3.18.dev3 → tigrcorn_runtime-0.3.20}/src/tigrcorn_runtime/server/runner/__init__.py +0 -0
- {tigrcorn_runtime-0.3.18.dev3 → tigrcorn_runtime-0.3.20}/src/tigrcorn_runtime/server/runner/core.py +0 -0
- {tigrcorn_runtime-0.3.18.dev3 → tigrcorn_runtime-0.3.20}/src/tigrcorn_runtime/server/runner/http11_send.py +0 -0
- {tigrcorn_runtime-0.3.18.dev3 → tigrcorn_runtime-0.3.20}/src/tigrcorn_runtime/server/runner/listeners.py +0 -0
- {tigrcorn_runtime-0.3.18.dev3 → tigrcorn_runtime-0.3.20}/src/tigrcorn_runtime/server/runner/metrics.py +0 -0
- {tigrcorn_runtime-0.3.18.dev3 → tigrcorn_runtime-0.3.20}/src/tigrcorn_runtime/server/shutdown.py +0 -0
- {tigrcorn_runtime-0.3.18.dev3 → tigrcorn_runtime-0.3.20}/src/tigrcorn_runtime/server/signals.py +0 -0
- {tigrcorn_runtime-0.3.18.dev3 → tigrcorn_runtime-0.3.20}/src/tigrcorn_runtime/server/state.py +0 -0
- {tigrcorn_runtime-0.3.18.dev3 → tigrcorn_runtime-0.3.20}/src/tigrcorn_runtime/workers/__init__.py +0 -0
- {tigrcorn_runtime-0.3.18.dev3 → tigrcorn_runtime-0.3.20}/src/tigrcorn_runtime/workers/local.py +0 -0
- {tigrcorn_runtime-0.3.18.dev3 → tigrcorn_runtime-0.3.20}/src/tigrcorn_runtime/workers/model.py +0 -0
- {tigrcorn_runtime-0.3.18.dev3 → tigrcorn_runtime-0.3.20}/src/tigrcorn_runtime/workers/supervisor.py +0 -0
- {tigrcorn_runtime-0.3.18.dev3 → tigrcorn_runtime-0.3.20}/src/tigrcorn_runtime.egg-info/SOURCES.txt +0 -0
- {tigrcorn_runtime-0.3.18.dev3 → tigrcorn_runtime-0.3.20}/src/tigrcorn_runtime.egg-info/dependency_links.txt +0 -0
- {tigrcorn_runtime-0.3.18.dev3 → tigrcorn_runtime-0.3.20}/src/tigrcorn_runtime.egg-info/top_level.txt +0 -0
{tigrcorn_runtime-0.3.18.dev3/src/tigrcorn_runtime.egg-info → tigrcorn_runtime-0.3.20}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: tigrcorn-runtime
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.20
|
|
4
4
|
Summary: Server runner, app loading, lifecycle hooks, workers, reload, and embedded runtime for the Tigrcorn ASGI3 web server.
|
|
5
5
|
Author-email: Jacob Stewart <jacob@swarmauri.com>
|
|
6
6
|
License: Apache License
|
|
@@ -187,14 +187,14 @@ Classifier: Typing :: Typed
|
|
|
187
187
|
Requires-Python: <3.15,>=3.10
|
|
188
188
|
Description-Content-Type: text/markdown
|
|
189
189
|
License-File: LICENSE
|
|
190
|
-
Requires-Dist: tigrcorn-core==0.3.
|
|
191
|
-
Requires-Dist: tigrcorn-config==0.3.
|
|
192
|
-
Requires-Dist: tigrcorn-asgi==0.3.
|
|
193
|
-
Requires-Dist: tigrcorn-transports==0.3.
|
|
194
|
-
Requires-Dist: tigrcorn-protocols==0.3.
|
|
195
|
-
Requires-Dist: tigrcorn-security==0.3.
|
|
196
|
-
Requires-Dist: tigrcorn-quic-cc==0.3.
|
|
197
|
-
Requires-Dist: tigrcorn-quic-cc-reno==0.3.
|
|
190
|
+
Requires-Dist: tigrcorn-core==0.3.20
|
|
191
|
+
Requires-Dist: tigrcorn-config==0.3.20
|
|
192
|
+
Requires-Dist: tigrcorn-asgi==0.3.20
|
|
193
|
+
Requires-Dist: tigrcorn-transports==0.3.20
|
|
194
|
+
Requires-Dist: tigrcorn-protocols==0.3.20
|
|
195
|
+
Requires-Dist: tigrcorn-security==0.3.20
|
|
196
|
+
Requires-Dist: tigrcorn-quic-cc==0.3.20
|
|
197
|
+
Requires-Dist: tigrcorn-quic-cc-reno==0.3.20
|
|
198
198
|
Provides-Extra: uvloop
|
|
199
199
|
Requires-Dist: uvloop>=0.19.0; platform_system != "Windows" and extra == "uvloop"
|
|
200
200
|
Provides-Extra: trio
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "tigrcorn-runtime"
|
|
7
|
-
version = "0.3.
|
|
7
|
+
version = "0.3.20"
|
|
8
8
|
description = "Server runner, app loading, lifecycle hooks, workers, reload, and embedded runtime for the Tigrcorn ASGI3 web server."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.10,<3.15"
|
|
@@ -30,14 +30,14 @@ classifiers = [
|
|
|
30
30
|
"Typing :: Typed",
|
|
31
31
|
]
|
|
32
32
|
dependencies = [
|
|
33
|
-
"tigrcorn-core==0.3.
|
|
34
|
-
"tigrcorn-config==0.3.
|
|
35
|
-
"tigrcorn-asgi==0.3.
|
|
36
|
-
"tigrcorn-transports==0.3.
|
|
37
|
-
"tigrcorn-protocols==0.3.
|
|
38
|
-
"tigrcorn-security==0.3.
|
|
39
|
-
"tigrcorn-quic-cc==0.3.
|
|
40
|
-
"tigrcorn-quic-cc-reno==0.3.
|
|
33
|
+
"tigrcorn-core==0.3.20",
|
|
34
|
+
"tigrcorn-config==0.3.20",
|
|
35
|
+
"tigrcorn-asgi==0.3.20",
|
|
36
|
+
"tigrcorn-transports==0.3.20",
|
|
37
|
+
"tigrcorn-protocols==0.3.20",
|
|
38
|
+
"tigrcorn-security==0.3.20",
|
|
39
|
+
"tigrcorn-quic-cc==0.3.20",
|
|
40
|
+
"tigrcorn-quic-cc-reno==0.3.20",
|
|
41
41
|
]
|
|
42
42
|
|
|
43
43
|
[tool.uv.sources]
|
|
@@ -283,7 +283,18 @@ def run(
|
|
|
283
283
|
None.
|
|
284
284
|
"""
|
|
285
285
|
|
|
286
|
-
|
|
286
|
+
if config is not None and config.process.workers > 1:
|
|
287
|
+
if not isinstance(app, str):
|
|
288
|
+
raise ValueError(
|
|
289
|
+
"multiple workers require an importable application target"
|
|
290
|
+
)
|
|
291
|
+
from tigrcorn_runtime.server.supervisor import ServerSupervisor
|
|
292
|
+
|
|
293
|
+
config.app.target = app
|
|
294
|
+
config.app.factory = config.app.factory or factory
|
|
295
|
+
ServerSupervisor(app_target=app, config=config).run()
|
|
296
|
+
return
|
|
297
|
+
runtime = config.process.runtime if config is not None else "auto"
|
|
287
298
|
if isinstance(app, str):
|
|
288
299
|
run_coro_with_runtime(
|
|
289
300
|
lambda: serve_import_string(
|