akernel 0.3.0__tar.gz → 0.3.2__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.
Files changed (43) hide show
  1. {akernel-0.3.0 → akernel-0.3.2}/PKG-INFO +1 -1
  2. {akernel-0.3.0 → akernel-0.3.2}/plugins/akernel_task/pyproject.toml +2 -1
  3. {akernel-0.3.0 → akernel-0.3.2}/pyproject.toml +1 -1
  4. {akernel-0.3.0 → akernel-0.3.2}/src/akernel/akernel.py +4 -4
  5. {akernel-0.3.0 → akernel-0.3.2}/src/akernel/connect.py +3 -1
  6. {akernel-0.3.0 → akernel-0.3.2}/.github/workflows/main.yml +0 -0
  7. {akernel-0.3.0 → akernel-0.3.2}/.pre-commit-config.yaml +0 -0
  8. {akernel-0.3.0 → akernel-0.3.2}/LICENSE +0 -0
  9. {akernel-0.3.0 → akernel-0.3.2}/MANIFEST.in +0 -0
  10. {akernel-0.3.0 → akernel-0.3.2}/README.md +0 -0
  11. {akernel-0.3.0 → akernel-0.3.2}/binder/environment.yml +0 -0
  12. {akernel-0.3.0 → akernel-0.3.2}/binder/postBuild +0 -0
  13. {akernel-0.3.0 → akernel-0.3.2}/examples/concurrency.ipynb +0 -0
  14. {akernel-0.3.0 → akernel-0.3.2}/examples/reactivity.ipynb +0 -0
  15. {akernel-0.3.0 → akernel-0.3.2}/plugins/akernel_task/LICENSE +0 -0
  16. {akernel-0.3.0 → akernel-0.3.2}/plugins/akernel_task/README.md +0 -0
  17. {akernel-0.3.0 → akernel-0.3.2}/plugins/akernel_task/fps_akernel_task/__init__.py +0 -0
  18. {akernel-0.3.0 → akernel-0.3.2}/plugins/akernel_task/fps_akernel_task/akernel_task.py +0 -0
  19. {akernel-0.3.0 → akernel-0.3.2}/plugins/akernel_task/fps_akernel_task/main.py +0 -0
  20. {akernel-0.3.0 → akernel-0.3.2}/plugins/akernel_task/fps_akernel_task/py.typed +0 -0
  21. {akernel-0.3.0 → akernel-0.3.2}/share/jupyter/kernels/akernel/kernel.json +0 -0
  22. {akernel-0.3.0 → akernel-0.3.2}/src/akernel/IPython/__init__.py +0 -0
  23. {akernel-0.3.0 → akernel-0.3.2}/src/akernel/IPython/core/__init__.py +0 -0
  24. {akernel-0.3.0 → akernel-0.3.2}/src/akernel/IPython/core/getipython.py +0 -0
  25. {akernel-0.3.0 → akernel-0.3.2}/src/akernel/IPython/core/interactiveshell.py +0 -0
  26. {akernel-0.3.0 → akernel-0.3.2}/src/akernel/__init__.py +0 -0
  27. {akernel-0.3.0 → akernel-0.3.2}/src/akernel/cache.py +0 -0
  28. {akernel-0.3.0 → akernel-0.3.2}/src/akernel/code.py +0 -0
  29. {akernel-0.3.0 → akernel-0.3.2}/src/akernel/comm/__init__.py +0 -0
  30. {akernel-0.3.0 → akernel-0.3.2}/src/akernel/comm/comm.py +0 -0
  31. {akernel-0.3.0 → akernel-0.3.2}/src/akernel/comm/manager.py +0 -0
  32. {akernel-0.3.0 → akernel-0.3.2}/src/akernel/display/__init__.py +0 -0
  33. {akernel-0.3.0 → akernel-0.3.2}/src/akernel/display/display.py +0 -0
  34. {akernel-0.3.0 → akernel-0.3.2}/src/akernel/execution.py +0 -0
  35. {akernel-0.3.0 → akernel-0.3.2}/src/akernel/kernel.py +0 -0
  36. {akernel-0.3.0 → akernel-0.3.2}/src/akernel/kernelspec.py +0 -0
  37. {akernel-0.3.0 → akernel-0.3.2}/src/akernel/message.py +0 -0
  38. {akernel-0.3.0 → akernel-0.3.2}/src/akernel/traceback.py +0 -0
  39. {akernel-0.3.0 → akernel-0.3.2}/tests/conftest.py +0 -0
  40. {akernel-0.3.0 → akernel-0.3.2}/tests/test_async_code.py +0 -0
  41. {akernel-0.3.0 → akernel-0.3.2}/tests/test_execution.py +0 -0
  42. {akernel-0.3.0 → akernel-0.3.2}/tests/test_kernel.py +0 -0
  43. {akernel-0.3.0 → akernel-0.3.2}/tests/test_react_code.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: akernel
3
- Version: 0.3.0
3
+ Version: 0.3.2
4
4
  Summary: An asynchronous Python Jupyter kernel
5
5
  Project-URL: Homepage, https://github.com/davidbrochart/akernel
6
6
  Author-email: David Brochart <david.brochart@gmail.com>
@@ -4,13 +4,14 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "fps_akernel_task"
7
- version = "0.1.0"
7
+ version = "0.1.1"
8
8
  description = "An FPS plugin for the kernel task API"
9
9
  keywords = ["jupyter", "server", "fastapi", "plugins"]
10
10
  requires-python = ">=3.9"
11
11
  dependencies = [
12
12
  "jupyverse-api >=0.10.0,<0.11.0",
13
13
  "anyio",
14
+ "akernel",
14
15
  ]
15
16
 
16
17
  [[project.authors]]
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "akernel"
7
- version = "0.3.0"
7
+ version = "0.3.2"
8
8
  description = "An asynchronous Python Jupyter kernel"
9
9
  readme = "README.md"
10
10
  license = {text = "MIT"}
@@ -1,7 +1,7 @@
1
1
  from __future__ import annotations
2
2
 
3
3
  import json
4
- from typing import cast
4
+ from typing import Optional, cast
5
5
 
6
6
  import typer
7
7
  from anyio import create_memory_object_stream, create_task_group, run, sleep_forever
@@ -18,7 +18,7 @@ cli = typer.Typer()
18
18
  @cli.command()
19
19
  def install(
20
20
  mode: str = typer.Argument("", help="Mode of the kernel to install."),
21
- cache_dir: str | None = typer.Option(
21
+ cache_dir: Optional[str] = typer.Option(
22
22
  None, "-c", help="Path to the cache directory, if mode is 'cache'."
23
23
  ),
24
24
  ):
@@ -35,10 +35,10 @@ def install(
35
35
  @cli.command()
36
36
  def launch(
37
37
  mode: str = typer.Argument("", help="Mode of the kernel to launch."),
38
- cache_dir: str | None = typer.Option(
38
+ cache_dir: Optional[str] = typer.Option(
39
39
  None, "-c", help="Path to the cache directory, if mode is 'cache'."
40
40
  ),
41
- connection_file: str | None = typer.Option(None, "-f", help="Path to the connection file."),
41
+ connection_file: str = typer.Option(..., "-f", help="Path to the connection file."),
42
42
  ):
43
43
  akernel = AKernel(mode, cache_dir, connection_file)
44
44
  run(akernel.start)
@@ -1,5 +1,7 @@
1
1
  from __future__ import annotations
2
2
 
3
+ from typing import Union
4
+
3
5
  import zmq
4
6
  from zmq import Context
5
7
  from zmq_anyio import Socket
@@ -7,7 +9,7 @@ from zmq_anyio import Socket
7
9
 
8
10
  context = Context()
9
11
 
10
- cfg_t = dict[str, str | int]
12
+ cfg_t = dict[str, Union[str, int]]
11
13
 
12
14
  channel_socket_types = {
13
15
  "shell": zmq.ROUTER,
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
File without changes
File without changes
File without changes