fal 1.5.0__py3-none-any.whl → 1.5.1__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.
Potentially problematic release.
This version of fal might be problematic. Click here for more details.
- fal/_fal_version.py +2 -2
- fal/api.py +7 -0
- fal/app.py +0 -1
- {fal-1.5.0.dist-info → fal-1.5.1.dist-info}/METADATA +1 -1
- {fal-1.5.0.dist-info → fal-1.5.1.dist-info}/RECORD +8 -8
- {fal-1.5.0.dist-info → fal-1.5.1.dist-info}/WHEEL +0 -0
- {fal-1.5.0.dist-info → fal-1.5.1.dist-info}/entry_points.txt +0 -0
- {fal-1.5.0.dist-info → fal-1.5.1.dist-info}/top_level.txt +0 -0
fal/_fal_version.py
CHANGED
fal/api.py
CHANGED
|
@@ -971,6 +971,8 @@ class RouteSignature(NamedTuple):
|
|
|
971
971
|
|
|
972
972
|
|
|
973
973
|
class BaseServable:
|
|
974
|
+
version: ClassVar[str] = "unknown"
|
|
975
|
+
|
|
974
976
|
def collect_routes(self) -> dict[RouteSignature, Callable[..., Any]]:
|
|
975
977
|
raise NotImplementedError
|
|
976
978
|
|
|
@@ -1099,9 +1101,14 @@ class BaseServable:
|
|
|
1099
1101
|
def serve(self) -> None:
|
|
1100
1102
|
import asyncio
|
|
1101
1103
|
|
|
1104
|
+
from prometheus_client import Gauge
|
|
1102
1105
|
from starlette_exporter import handle_metrics
|
|
1103
1106
|
from uvicorn import Config
|
|
1104
1107
|
|
|
1108
|
+
# NOTE: this uses the global prometheus registry
|
|
1109
|
+
app_info = Gauge("fal_app_info", "Fal application information", ["version"])
|
|
1110
|
+
app_info.labels(version=self.version).set(1)
|
|
1111
|
+
|
|
1105
1112
|
app = self._build_app()
|
|
1106
1113
|
server = Server(
|
|
1107
1114
|
config=Config(app, host="0.0.0.0", port=8080, timeout_keep_alive=300)
|
fal/app.py
CHANGED
|
@@ -189,7 +189,6 @@ class App(fal.api.BaseServable):
|
|
|
189
189
|
}
|
|
190
190
|
app_name: ClassVar[str]
|
|
191
191
|
app_auth: ClassVar[Literal["private", "public", "shared"]] = "private"
|
|
192
|
-
version: ClassVar[str] = "unknown"
|
|
193
192
|
request_timeout: ClassVar[int | None] = None
|
|
194
193
|
|
|
195
194
|
def __init_subclass__(cls, **kwargs):
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
fal/__init__.py,sha256=wXs1G0gSc7ZK60-bHe-B2m0l_sA6TrFk4BxY0tMoLe8,784
|
|
2
2
|
fal/__main__.py,sha256=4JMK66Wj4uLZTKbF-sT3LAxOsr6buig77PmOkJCRRxw,83
|
|
3
|
-
fal/_fal_version.py,sha256=
|
|
3
|
+
fal/_fal_version.py,sha256=W6YuN1JOd6M-rSt9HDXK91AutRDYXTjJT_LQg3rCsjk,411
|
|
4
4
|
fal/_serialization.py,sha256=rD2YiSa8iuzCaZohZwN_MPEB-PpSKbWRDeaIDpTEjyY,7653
|
|
5
5
|
fal/_version.py,sha256=EBGqrknaf1WygENX-H4fBefLvHryvJBBGtVJetaB0NY,266
|
|
6
|
-
fal/api.py,sha256=
|
|
7
|
-
fal/app.py,sha256=
|
|
6
|
+
fal/api.py,sha256=wmXywHvkdKe0AlsPmXt8_nidPhoC_Ho4BrUi7In4Hek,43278
|
|
7
|
+
fal/app.py,sha256=kzjHA325RDwUl-_9lTaL77L-DD1Lh-KEZFuJLPkOC9U,17899
|
|
8
8
|
fal/apps.py,sha256=lge7-HITzI20l1oXdlkAzqxdMVtXRfnACIylKRWgCNQ,7151
|
|
9
9
|
fal/container.py,sha256=V7riyyq8AZGwEX9QaqRQDZyDN_bUKeRKV1OOZArXjL0,622
|
|
10
10
|
fal/files.py,sha256=QgfYfMKmNobMPufrAP_ga1FKcIAlSbw18Iar1-0qepo,2650
|
|
@@ -126,8 +126,8 @@ openapi_fal_rest/models/workflow_node_type.py,sha256=-FzyeY2bxcNmizKbJI8joG7byRi
|
|
|
126
126
|
openapi_fal_rest/models/workflow_schema.py,sha256=4K5gsv9u9pxx2ItkffoyHeNjBBYf6ur5bN4m_zePZNY,2019
|
|
127
127
|
openapi_fal_rest/models/workflow_schema_input.py,sha256=2OkOXWHTNsCXHWS6EGDFzcJKkW5FIap-2gfO233EvZQ,1191
|
|
128
128
|
openapi_fal_rest/models/workflow_schema_output.py,sha256=EblwSPAGfWfYVWw_WSSaBzQVju296is9o28rMBAd0mc,1196
|
|
129
|
-
fal-1.5.
|
|
130
|
-
fal-1.5.
|
|
131
|
-
fal-1.5.
|
|
132
|
-
fal-1.5.
|
|
133
|
-
fal-1.5.
|
|
129
|
+
fal-1.5.1.dist-info/METADATA,sha256=sQTFRl_qxwkO_g6moEVwRL4LRCSyrvkpuD_AHbUhwFI,3787
|
|
130
|
+
fal-1.5.1.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
|
|
131
|
+
fal-1.5.1.dist-info/entry_points.txt,sha256=32zwTUC1U1E7nSTIGCoANQOQ3I7-qHG5wI6gsVz5pNU,37
|
|
132
|
+
fal-1.5.1.dist-info/top_level.txt,sha256=r257X1L57oJL8_lM0tRrfGuXFwm66i1huwQygbpLmHw,21
|
|
133
|
+
fal-1.5.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|