fps 0.6.2__tar.gz → 0.6.4__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fps
3
- Version: 0.6.2
3
+ Version: 0.6.4
4
4
  Summary: A system for creating modular, configurable, pluggable and concurrent applications
5
5
  Project-URL: Source, https://github.com/jupyter-server/fps
6
6
  Project-URL: Issues, https://github.com/jupyter-server/fps/issues
@@ -77,12 +77,11 @@ Classifier: Programming Language :: Python :: 3.13
77
77
  Classifier: Programming Language :: Python :: 3.14
78
78
  Classifier: Typing :: Typed
79
79
  Requires-Python: >=3.10
80
- Requires-Dist: anyio
81
- Requires-Dist: anyioutils<0.8.0,>=0.7.0
80
+ Requires-Dist: anyio<5.0.0,>=4.14.0
82
81
  Requires-Dist: exceptiongroup; python_version < '3.11'
83
82
  Requires-Dist: structlog
84
83
  Provides-Extra: anycorn
85
- Requires-Dist: anycorn<0.19.0,>=0.18.1; extra == 'anycorn'
84
+ Requires-Dist: anycorn<0.19.0,>=0.18.6; extra == 'anycorn'
86
85
  Provides-Extra: click
87
86
  Requires-Dist: click<9,>=8.1.8; extra == 'click'
88
87
  Provides-Extra: fastapi
@@ -26,8 +26,7 @@ classifiers = [
26
26
  ]
27
27
  requires-python = ">= 3.10"
28
28
  dependencies = [
29
- "anyio",
30
- "anyioutils >=0.7.0,<0.8.0",
29
+ "anyio >=4.14.0,<5.0.0",
31
30
  "structlog",
32
31
  "exceptiongroup; python_version<'3.11'",
33
32
  ]
@@ -40,7 +39,7 @@ fastapi = [
40
39
  "fastapi",
41
40
  ]
42
41
  anycorn = [
43
- "anycorn >=0.18.1,<0.19.0",
42
+ "anycorn >=0.18.6,<0.19.0",
44
43
  ]
45
44
 
46
45
  [dependency-groups]
@@ -11,4 +11,4 @@ from ._config import get_root_module as get_root_module
11
11
  from ._config import merge_config as merge_config
12
12
  from ._signal import Signal as Signal
13
13
 
14
- __version__ = "0.6.2"
14
+ __version__ = "0.6.4"
@@ -3,7 +3,6 @@ from __future__ import annotations
3
3
  from functools import partial
4
4
 
5
5
  from anyio import Event, create_task_group
6
- from anyioutils import start_task
7
6
  from anycorn import Config, serve
8
7
  from fastapi import FastAPI
9
8
 
@@ -17,33 +16,35 @@ class ServerModule(Module):
17
16
  *,
18
17
  host: str = "127.0.0.1",
19
18
  port: int = 8000,
19
+ websocket_permessage_deflate: bool = True,
20
20
  ) -> None:
21
21
  super().__init__(name)
22
22
  self.host = host
23
23
  self.port = port
24
+ self.websocket_permessage_deflate = websocket_permessage_deflate
24
25
  self.shutdown_event = Event()
25
26
 
26
27
  async def start(self) -> None:
27
28
  app = await self.get(FastAPI)
28
29
  config = Config()
29
30
  config.bind = [f"{self.host}:{self.port}"]
31
+ config.websocket_permessage_deflate = self.websocket_permessage_deflate
30
32
  config.loglevel = "WARN"
31
33
  async with create_task_group() as tg:
32
- server_task = start_task(
34
+ server_task = await tg.start(
33
35
  partial(
34
36
  serve,
35
- app, # type: ignore[arg-type]
37
+ app, # type: ignore
36
38
  config,
37
39
  shutdown_trigger=self.shutdown_event.wait,
38
40
  mode="asgi",
39
41
  ),
40
- tg,
42
+ return_handle=True,
41
43
  )
42
- await server_task.wait_started()
43
44
 
44
45
  async def stop():
45
46
  self.shutdown_event.set()
46
- await server_task.wait()
47
+ await server_task
47
48
 
48
49
  self.add_teardown_callback(stop)
49
50
  self.done()
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes