tigrcorn-runtime 0.3.18.dev2__tar.gz → 0.3.19__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.dev2/src/tigrcorn_runtime.egg-info → tigrcorn_runtime-0.3.19}/PKG-INFO +10 -8
- {tigrcorn_runtime-0.3.18.dev2 → tigrcorn_runtime-0.3.19}/README.md +1 -1
- {tigrcorn_runtime-0.3.18.dev2 → tigrcorn_runtime-0.3.19}/pyproject.toml +19 -7
- {tigrcorn_runtime-0.3.18.dev2 → tigrcorn_runtime-0.3.19}/src/tigrcorn_runtime/api.py +12 -1
- tigrcorn_runtime-0.3.19/src/tigrcorn_runtime/cli.py +807 -0
- tigrcorn_runtime-0.3.19/src/tigrcorn_runtime/quic_cc.py +42 -0
- {tigrcorn_runtime-0.3.18.dev2 → tigrcorn_runtime-0.3.19}/src/tigrcorn_runtime/server/bootstrap.py +12 -1
- {tigrcorn_runtime-0.3.18.dev2 → tigrcorn_runtime-0.3.19}/src/tigrcorn_runtime/server/runner/base.py +53 -7
- {tigrcorn_runtime-0.3.18.dev2 → tigrcorn_runtime-0.3.19}/src/tigrcorn_runtime/server/runner/client_handlers.py +92 -20
- {tigrcorn_runtime-0.3.18.dev2 → tigrcorn_runtime-0.3.19}/src/tigrcorn_runtime/server/runner/diagnostics.py +82 -5
- tigrcorn_runtime-0.3.19/src/tigrcorn_runtime/server/runner/http11.py +303 -0
- {tigrcorn_runtime-0.3.18.dev2 → tigrcorn_runtime-0.3.19}/src/tigrcorn_runtime/server/runner/http11_serve.py +12 -0
- {tigrcorn_runtime-0.3.18.dev2 → tigrcorn_runtime-0.3.19}/src/tigrcorn_runtime/server/runner/imports.py +3 -1
- {tigrcorn_runtime-0.3.18.dev2 → tigrcorn_runtime-0.3.19}/src/tigrcorn_runtime/server/runner/lifecycle.py +32 -10
- tigrcorn_runtime-0.3.19/src/tigrcorn_runtime/server/supervisor.py +184 -0
- {tigrcorn_runtime-0.3.18.dev2 → tigrcorn_runtime-0.3.19}/src/tigrcorn_runtime/workers/process.py +23 -18
- {tigrcorn_runtime-0.3.18.dev2 → tigrcorn_runtime-0.3.19/src/tigrcorn_runtime.egg-info}/PKG-INFO +10 -8
- {tigrcorn_runtime-0.3.18.dev2 → tigrcorn_runtime-0.3.19}/src/tigrcorn_runtime.egg-info/SOURCES.txt +1 -0
- tigrcorn_runtime-0.3.19/src/tigrcorn_runtime.egg-info/requires.txt +16 -0
- tigrcorn_runtime-0.3.18.dev2/src/tigrcorn_runtime/cli.py +0 -191
- tigrcorn_runtime-0.3.18.dev2/src/tigrcorn_runtime/server/runner/http11.py +0 -179
- tigrcorn_runtime-0.3.18.dev2/src/tigrcorn_runtime/server/supervisor.py +0 -110
- tigrcorn_runtime-0.3.18.dev2/src/tigrcorn_runtime.egg-info/requires.txt +0 -14
- {tigrcorn_runtime-0.3.18.dev2 → tigrcorn_runtime-0.3.19}/LICENSE +0 -0
- {tigrcorn_runtime-0.3.18.dev2 → tigrcorn_runtime-0.3.19}/setup.cfg +0 -0
- {tigrcorn_runtime-0.3.18.dev2 → tigrcorn_runtime-0.3.19}/src/tigrcorn_runtime/__init__.py +0 -0
- {tigrcorn_runtime-0.3.18.dev2 → tigrcorn_runtime-0.3.19}/src/tigrcorn_runtime/app_interfaces.py +0 -0
- {tigrcorn_runtime-0.3.18.dev2 → tigrcorn_runtime-0.3.19}/src/tigrcorn_runtime/embedded.py +0 -0
- {tigrcorn_runtime-0.3.18.dev2 → tigrcorn_runtime-0.3.19}/src/tigrcorn_runtime/py.typed +0 -0
- {tigrcorn_runtime-0.3.18.dev2 → tigrcorn_runtime-0.3.19}/src/tigrcorn_runtime/server/__init__.py +0 -0
- {tigrcorn_runtime-0.3.18.dev2 → tigrcorn_runtime-0.3.19}/src/tigrcorn_runtime/server/app_loader.py +0 -0
- {tigrcorn_runtime-0.3.18.dev2 → tigrcorn_runtime-0.3.19}/src/tigrcorn_runtime/server/hooks.py +0 -0
- {tigrcorn_runtime-0.3.18.dev2 → tigrcorn_runtime-0.3.19}/src/tigrcorn_runtime/server/reloader.py +0 -0
- {tigrcorn_runtime-0.3.18.dev2 → tigrcorn_runtime-0.3.19}/src/tigrcorn_runtime/server/runner/__init__.py +0 -0
- {tigrcorn_runtime-0.3.18.dev2 → tigrcorn_runtime-0.3.19}/src/tigrcorn_runtime/server/runner/core.py +0 -0
- {tigrcorn_runtime-0.3.18.dev2 → tigrcorn_runtime-0.3.19}/src/tigrcorn_runtime/server/runner/http11_send.py +0 -0
- {tigrcorn_runtime-0.3.18.dev2 → tigrcorn_runtime-0.3.19}/src/tigrcorn_runtime/server/runner/listeners.py +0 -0
- {tigrcorn_runtime-0.3.18.dev2 → tigrcorn_runtime-0.3.19}/src/tigrcorn_runtime/server/runner/metrics.py +0 -0
- {tigrcorn_runtime-0.3.18.dev2 → tigrcorn_runtime-0.3.19}/src/tigrcorn_runtime/server/shutdown.py +0 -0
- {tigrcorn_runtime-0.3.18.dev2 → tigrcorn_runtime-0.3.19}/src/tigrcorn_runtime/server/signals.py +0 -0
- {tigrcorn_runtime-0.3.18.dev2 → tigrcorn_runtime-0.3.19}/src/tigrcorn_runtime/server/state.py +0 -0
- {tigrcorn_runtime-0.3.18.dev2 → tigrcorn_runtime-0.3.19}/src/tigrcorn_runtime/workers/__init__.py +0 -0
- {tigrcorn_runtime-0.3.18.dev2 → tigrcorn_runtime-0.3.19}/src/tigrcorn_runtime/workers/local.py +0 -0
- {tigrcorn_runtime-0.3.18.dev2 → tigrcorn_runtime-0.3.19}/src/tigrcorn_runtime/workers/model.py +0 -0
- {tigrcorn_runtime-0.3.18.dev2 → tigrcorn_runtime-0.3.19}/src/tigrcorn_runtime/workers/supervisor.py +0 -0
- {tigrcorn_runtime-0.3.18.dev2 → tigrcorn_runtime-0.3.19}/src/tigrcorn_runtime.egg-info/dependency_links.txt +0 -0
- {tigrcorn_runtime-0.3.18.dev2 → tigrcorn_runtime-0.3.19}/src/tigrcorn_runtime.egg-info/top_level.txt +0 -0
{tigrcorn_runtime-0.3.18.dev2/src/tigrcorn_runtime.egg-info → tigrcorn_runtime-0.3.19}/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.19
|
|
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,12 +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.
|
|
190
|
+
Requires-Dist: tigrcorn-core==0.3.19
|
|
191
|
+
Requires-Dist: tigrcorn-config==0.3.19
|
|
192
|
+
Requires-Dist: tigrcorn-asgi==0.3.19
|
|
193
|
+
Requires-Dist: tigrcorn-transports==0.3.19
|
|
194
|
+
Requires-Dist: tigrcorn-protocols==0.3.19
|
|
195
|
+
Requires-Dist: tigrcorn-security==0.3.19
|
|
196
|
+
Requires-Dist: tigrcorn-quic-cc==0.3.19
|
|
197
|
+
Requires-Dist: tigrcorn-quic-cc-reno==0.3.19
|
|
196
198
|
Provides-Extra: uvloop
|
|
197
199
|
Requires-Dist: uvloop>=0.19.0; platform_system != "Windows" and extra == "uvloop"
|
|
198
200
|
Provides-Extra: trio
|
|
@@ -293,7 +295,7 @@ The package exposes its supported public surface through the <code>tigrcorn_runt
|
|
|
293
295
|
|
|
294
296
|
## Package Graph
|
|
295
297
|
|
|
296
|
-
[tigrcorn-core](https://pypi.org/project/tigrcorn-core/) | [tigrcorn-config](https://pypi.org/project/tigrcorn-config/) | [tigrcorn-http](https://pypi.org/project/tigrcorn-http/) | [tigrcorn-asgi](https://pypi.org/project/tigrcorn-asgi/) | [tigrcorn-contract](https://pypi.org/project/tigrcorn-contract/) | [tigrcorn-transports](https://pypi.org/project/tigrcorn-transports/) | [tigrcorn-security](https://pypi.org/project/tigrcorn-security/) | [tigrcorn-protocols](https://pypi.org/project/tigrcorn-protocols/) | [tigrcorn-static](https://pypi.org/project/tigrcorn-static/) | [tigrcorn-observability](https://pypi.org/project/tigrcorn-observability/) | [tigrcorn-runtime](https://pypi.org/project/tigrcorn-runtime/) | [tigrcorn-compat](https://pypi.org/project/tigrcorn-compat/) | [tigrcorn-certification](https://pypi.org/project/tigrcorn-certification/)
|
|
298
|
+
[tigrcorn-core](https://pypi.org/project/tigrcorn-core/) | [tigrcorn-quic-cc](https://pypi.org/project/tigrcorn-quic-cc/) | [tigrcorn-quic-cc-reno](https://pypi.org/project/tigrcorn-quic-cc-reno/) | [tigrcorn-config](https://pypi.org/project/tigrcorn-config/) | [tigrcorn-http](https://pypi.org/project/tigrcorn-http/) | [tigrcorn-asgi](https://pypi.org/project/tigrcorn-asgi/) | [tigrcorn-contract](https://pypi.org/project/tigrcorn-contract/) | [tigrcorn-transports](https://pypi.org/project/tigrcorn-transports/) | [tigrcorn-security](https://pypi.org/project/tigrcorn-security/) | [tigrcorn-protocols](https://pypi.org/project/tigrcorn-protocols/) | [tigrcorn-static](https://pypi.org/project/tigrcorn-static/) | [tigrcorn-observability](https://pypi.org/project/tigrcorn-observability/) | [tigrcorn-runtime](https://pypi.org/project/tigrcorn-runtime/) | [tigrcorn-compat](https://pypi.org/project/tigrcorn-compat/) | [tigrcorn-certification](https://pypi.org/project/tigrcorn-certification/)
|
|
297
299
|
|
|
298
300
|
## Best Practices
|
|
299
301
|
|
|
@@ -92,7 +92,7 @@ The package exposes its supported public surface through the <code>tigrcorn_runt
|
|
|
92
92
|
|
|
93
93
|
## Package Graph
|
|
94
94
|
|
|
95
|
-
[tigrcorn-core](https://pypi.org/project/tigrcorn-core/) | [tigrcorn-config](https://pypi.org/project/tigrcorn-config/) | [tigrcorn-http](https://pypi.org/project/tigrcorn-http/) | [tigrcorn-asgi](https://pypi.org/project/tigrcorn-asgi/) | [tigrcorn-contract](https://pypi.org/project/tigrcorn-contract/) | [tigrcorn-transports](https://pypi.org/project/tigrcorn-transports/) | [tigrcorn-security](https://pypi.org/project/tigrcorn-security/) | [tigrcorn-protocols](https://pypi.org/project/tigrcorn-protocols/) | [tigrcorn-static](https://pypi.org/project/tigrcorn-static/) | [tigrcorn-observability](https://pypi.org/project/tigrcorn-observability/) | [tigrcorn-runtime](https://pypi.org/project/tigrcorn-runtime/) | [tigrcorn-compat](https://pypi.org/project/tigrcorn-compat/) | [tigrcorn-certification](https://pypi.org/project/tigrcorn-certification/)
|
|
95
|
+
[tigrcorn-core](https://pypi.org/project/tigrcorn-core/) | [tigrcorn-quic-cc](https://pypi.org/project/tigrcorn-quic-cc/) | [tigrcorn-quic-cc-reno](https://pypi.org/project/tigrcorn-quic-cc-reno/) | [tigrcorn-config](https://pypi.org/project/tigrcorn-config/) | [tigrcorn-http](https://pypi.org/project/tigrcorn-http/) | [tigrcorn-asgi](https://pypi.org/project/tigrcorn-asgi/) | [tigrcorn-contract](https://pypi.org/project/tigrcorn-contract/) | [tigrcorn-transports](https://pypi.org/project/tigrcorn-transports/) | [tigrcorn-security](https://pypi.org/project/tigrcorn-security/) | [tigrcorn-protocols](https://pypi.org/project/tigrcorn-protocols/) | [tigrcorn-static](https://pypi.org/project/tigrcorn-static/) | [tigrcorn-observability](https://pypi.org/project/tigrcorn-observability/) | [tigrcorn-runtime](https://pypi.org/project/tigrcorn-runtime/) | [tigrcorn-compat](https://pypi.org/project/tigrcorn-compat/) | [tigrcorn-certification](https://pypi.org/project/tigrcorn-certification/)
|
|
96
96
|
|
|
97
97
|
## Best Practices
|
|
98
98
|
|
|
@@ -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.19"
|
|
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,26 @@ 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.
|
|
33
|
+
"tigrcorn-core==0.3.19",
|
|
34
|
+
"tigrcorn-config==0.3.19",
|
|
35
|
+
"tigrcorn-asgi==0.3.19",
|
|
36
|
+
"tigrcorn-transports==0.3.19",
|
|
37
|
+
"tigrcorn-protocols==0.3.19",
|
|
38
|
+
"tigrcorn-security==0.3.19",
|
|
39
|
+
"tigrcorn-quic-cc==0.3.19",
|
|
40
|
+
"tigrcorn-quic-cc-reno==0.3.19",
|
|
39
41
|
]
|
|
40
42
|
|
|
43
|
+
[tool.uv.sources]
|
|
44
|
+
tigrcorn-core = { workspace = true }
|
|
45
|
+
tigrcorn-config = { workspace = true }
|
|
46
|
+
tigrcorn-asgi = { workspace = true }
|
|
47
|
+
tigrcorn-transports = { workspace = true }
|
|
48
|
+
tigrcorn-protocols = { workspace = true }
|
|
49
|
+
tigrcorn-security = { workspace = true }
|
|
50
|
+
tigrcorn-quic-cc = { workspace = true }
|
|
51
|
+
tigrcorn-quic-cc-reno = { workspace = true }
|
|
52
|
+
|
|
41
53
|
[project.optional-dependencies]
|
|
42
54
|
uvloop = ["uvloop>=0.19.0; platform_system != 'Windows'"]
|
|
43
55
|
trio = ["trio>=0.25.0"]
|
|
@@ -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(
|