kunda 0.0.2__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.
- kunda/__init__.py +14 -0
- kunda/_modidx.py +134 -0
- kunda/kernel.py +543 -0
- kunda/pool.py +167 -0
- kunda/pythons.py +125 -0
- kunda/spec.py +161 -0
- kunda/support.py +166 -0
- kunda-0.0.2.dist-info/METADATA +104 -0
- kunda-0.0.2.dist-info/RECORD +13 -0
- kunda-0.0.2.dist-info/WHEEL +5 -0
- kunda-0.0.2.dist-info/entry_points.txt +2 -0
- kunda-0.0.2.dist-info/licenses/LICENSE +201 -0
- kunda-0.0.2.dist-info/top_level.txt +1 -0
kunda/__init__.py
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
__version__ = "0.0.2"
|
|
2
|
+
|
|
3
|
+
# The names a host reaches for. `kunda.pythons` imports nothing but fastcore, so asking which
|
|
4
|
+
# interpreter a folder uses costs nothing; everything below it wants jupyter_client.
|
|
5
|
+
from .pythons import find_pythons, nearest_python, project_python, python_for, use_app, venv_env
|
|
6
|
+
from .support import install_kernel_support, kernel_support, installable
|
|
7
|
+
from .spec import ExecOutcome, KernelStartError, output_text
|
|
8
|
+
from .kernel import Kernel, ipymini_available
|
|
9
|
+
from .pool import KernelLimit, KernelPool, RuntimeBroker
|
|
10
|
+
|
|
11
|
+
__all__ = ['find_pythons', 'nearest_python', 'project_python', 'python_for', 'use_app', 'venv_env',
|
|
12
|
+
'install_kernel_support', 'kernel_support', 'installable', 'ExecOutcome',
|
|
13
|
+
'KernelStartError', 'output_text', 'Kernel', 'ipymini_available',
|
|
14
|
+
'KernelLimit', 'KernelPool', 'RuntimeBroker']
|
kunda/_modidx.py
ADDED
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
# Autogenerated by nbdev
|
|
2
|
+
|
|
3
|
+
d = { 'settings': { 'branch': 'main',
|
|
4
|
+
'doc_baseurl': '/kunda',
|
|
5
|
+
'doc_host': 'https://vedicreader.github.io',
|
|
6
|
+
'git_url': 'https://github.com/vedicreader/kunda',
|
|
7
|
+
'lib_path': 'kunda'},
|
|
8
|
+
'syms': { 'kunda.kernel': { 'kunda.kernel.GatewayKernel': ('kernel.html#gatewaykernel', 'kunda/kernel.py'),
|
|
9
|
+
'kunda.kernel.GatewayKernel.__init__': ('kernel.html#gatewaykernel.__init__', 'kunda/kernel.py'),
|
|
10
|
+
'kunda.kernel.GatewayKernel._boot_name': ('kernel.html#gatewaykernel._boot_name', 'kunda/kernel.py'),
|
|
11
|
+
'kunda.kernel.GatewayKernel._find_base': ('kernel.html#gatewaykernel._find_base', 'kunda/kernel.py'),
|
|
12
|
+
'kunda.kernel.GatewayKernel._release': ('kernel.html#gatewaykernel._release', 'kunda/kernel.py'),
|
|
13
|
+
'kunda.kernel.GatewayKernel.alive': ('kernel.html#gatewaykernel.alive', 'kunda/kernel.py'),
|
|
14
|
+
'kunda.kernel.GatewayKernel.complete': ('kernel.html#gatewaykernel.complete', 'kunda/kernel.py'),
|
|
15
|
+
'kunda.kernel.GatewayKernel.execute': ('kernel.html#gatewaykernel.execute', 'kunda/kernel.py'),
|
|
16
|
+
'kunda.kernel.GatewayKernel.inspect_obj': ('kernel.html#gatewaykernel.inspect_obj', 'kunda/kernel.py'),
|
|
17
|
+
'kunda.kernel.GatewayKernel.interrupt': ('kernel.html#gatewaykernel.interrupt', 'kunda/kernel.py'),
|
|
18
|
+
'kunda.kernel.GatewayKernel.pid': ('kernel.html#gatewaykernel.pid', 'kunda/kernel.py'),
|
|
19
|
+
'kunda.kernel.GatewayKernel.restart': ('kernel.html#gatewaykernel.restart', 'kunda/kernel.py'),
|
|
20
|
+
'kunda.kernel.GatewayKernel.shutdown': ('kernel.html#gatewaykernel.shutdown', 'kunda/kernel.py'),
|
|
21
|
+
'kunda.kernel.GatewayKernel.start': ('kernel.html#gatewaykernel.start', 'kunda/kernel.py'),
|
|
22
|
+
'kunda.kernel.GatewayService': ('kernel.html#gatewayservice', 'kunda/kernel.py'),
|
|
23
|
+
'kunda.kernel.GatewayService.__init__': ('kernel.html#gatewayservice.__init__', 'kunda/kernel.py'),
|
|
24
|
+
'kunda.kernel.GatewayService.start': ('kernel.html#gatewayservice.start', 'kunda/kernel.py'),
|
|
25
|
+
'kunda.kernel.GatewayService.stop': ('kernel.html#gatewayservice.stop', 'kunda/kernel.py'),
|
|
26
|
+
'kunda.kernel.GatewayService.url': ('kernel.html#gatewayservice.url', 'kunda/kernel.py'),
|
|
27
|
+
'kunda.kernel.Kernel': ('kernel.html#kernel', 'kunda/kernel.py'),
|
|
28
|
+
'kunda.kernel.Kernel.__init__': ('kernel.html#kernel.__init__', 'kunda/kernel.py'),
|
|
29
|
+
'kunda.kernel.Kernel._as_output': ('kernel.html#kernel._as_output', 'kunda/kernel.py'),
|
|
30
|
+
'kunda.kernel.Kernel._collect': ('kernel.html#kernel._collect', 'kunda/kernel.py'),
|
|
31
|
+
'kunda.kernel.Kernel._find_base': ('kernel.html#kernel._find_base', 'kunda/kernel.py'),
|
|
32
|
+
'kunda.kernel.Kernel._reply': ('kernel.html#kernel._reply', 'kunda/kernel.py'),
|
|
33
|
+
'kunda.kernel.Kernel.alive': ('kernel.html#kernel.alive', 'kunda/kernel.py'),
|
|
34
|
+
'kunda.kernel.Kernel.chdir': ('kernel.html#kernel.chdir', 'kunda/kernel.py'),
|
|
35
|
+
'kunda.kernel.Kernel.complete': ('kernel.html#kernel.complete', 'kunda/kernel.py'),
|
|
36
|
+
'kunda.kernel.Kernel.debug_complete': ('kernel.html#kernel.debug_complete', 'kunda/kernel.py'),
|
|
37
|
+
'kunda.kernel.Kernel.debug_control': ('kernel.html#kernel.debug_control', 'kunda/kernel.py'),
|
|
38
|
+
'kunda.kernel.Kernel.debug_evaluate': ('kernel.html#kernel.debug_evaluate', 'kunda/kernel.py'),
|
|
39
|
+
'kunda.kernel.Kernel.debug_request': ('kernel.html#kernel.debug_request', 'kunda/kernel.py'),
|
|
40
|
+
'kunda.kernel.Kernel.debug_start': ('kernel.html#kernel.debug_start', 'kunda/kernel.py'),
|
|
41
|
+
'kunda.kernel.Kernel.debug_state': ('kernel.html#kernel.debug_state', 'kunda/kernel.py'),
|
|
42
|
+
'kunda.kernel.Kernel.debug_stop': ('kernel.html#kernel.debug_stop', 'kunda/kernel.py'),
|
|
43
|
+
'kunda.kernel.Kernel.debug_variables': ('kernel.html#kernel.debug_variables', 'kunda/kernel.py'),
|
|
44
|
+
'kunda.kernel.Kernel.execute': ('kernel.html#kernel.execute', 'kunda/kernel.py'),
|
|
45
|
+
'kunda.kernel.Kernel.inspect_obj': ('kernel.html#kernel.inspect_obj', 'kunda/kernel.py'),
|
|
46
|
+
'kunda.kernel.Kernel.interrupt': ('kernel.html#kernel.interrupt', 'kunda/kernel.py'),
|
|
47
|
+
'kunda.kernel.Kernel.pid': ('kernel.html#kernel.pid', 'kunda/kernel.py'),
|
|
48
|
+
'kunda.kernel.Kernel.restart': ('kernel.html#kernel.restart', 'kunda/kernel.py'),
|
|
49
|
+
'kunda.kernel.Kernel.shutdown': ('kernel.html#kernel.shutdown', 'kunda/kernel.py'),
|
|
50
|
+
'kunda.kernel.Kernel.start': ('kernel.html#kernel.start', 'kunda/kernel.py'),
|
|
51
|
+
'kunda.kernel._Inspector': ('kernel.html#_inspector', 'kunda/kernel.py'),
|
|
52
|
+
'kunda.kernel._Inspector._boot_name': ('kernel.html#_inspector._boot_name', 'kunda/kernel.py'),
|
|
53
|
+
'kunda.kernel._Inspector._headers': ('kernel.html#_inspector._headers', 'kunda/kernel.py'),
|
|
54
|
+
'kunda.kernel._Inspector.api': ('kernel.html#_inspector.api', 'kunda/kernel.py'),
|
|
55
|
+
'kunda.kernel._Inspector.api_sync': ('kernel.html#_inspector.api_sync', 'kunda/kernel.py'),
|
|
56
|
+
'kunda.kernel._Inspector.bootstrap': ('kernel.html#_inspector.bootstrap', 'kunda/kernel.py'),
|
|
57
|
+
'kunda.kernel._Inspector.busy': ('kernel.html#_inspector.busy', 'kunda/kernel.py'),
|
|
58
|
+
'kunda.kernel._Inspector.idle_for': ('kernel.html#_inspector.idle_for', 'kunda/kernel.py'),
|
|
59
|
+
'kunda.kernel._Inspector.kernel_kind': ('kernel.html#_inspector.kernel_kind', 'kunda/kernel.py'),
|
|
60
|
+
'kunda.kernel._Inspector.names': ('kernel.html#_inspector.names', 'kunda/kernel.py'),
|
|
61
|
+
'kunda.kernel._Inspector.stop': ('kernel.html#_inspector.stop', 'kunda/kernel.py'),
|
|
62
|
+
'kunda.kernel._Inspector.token': ('kernel.html#_inspector.token', 'kunda/kernel.py'),
|
|
63
|
+
'kunda.kernel._Inspector.touch': ('kernel.html#_inspector.touch', 'kunda/kernel.py'),
|
|
64
|
+
'kunda.kernel._give_up_after': ('kernel.html#_give_up_after', 'kunda/kernel.py'),
|
|
65
|
+
'kunda.kernel.check_gateway_deps': ('kernel.html#check_gateway_deps', 'kunda/kernel.py'),
|
|
66
|
+
'kunda.kernel.ipymini_available': ('kernel.html#ipymini_available', 'kunda/kernel.py')},
|
|
67
|
+
'kunda.pool': { 'kunda.pool.KernelLimit': ('pool.html#kernellimit', 'kunda/pool.py'),
|
|
68
|
+
'kunda.pool.KernelLimit.__init__': ('pool.html#kernellimit.__init__', 'kunda/pool.py'),
|
|
69
|
+
'kunda.pool.KernelPool': ('pool.html#kernelpool', 'kunda/pool.py'),
|
|
70
|
+
'kunda.pool.KernelPool.__init__': ('pool.html#kernelpool.__init__', 'kunda/pool.py'),
|
|
71
|
+
'kunda.pool.KernelPool._class_for': ('pool.html#kernelpool._class_for', 'kunda/pool.py'),
|
|
72
|
+
'kunda.pool.KernelPool._sweep_loop': ('pool.html#kernelpool._sweep_loop', 'kunda/pool.py'),
|
|
73
|
+
'kunda.pool.KernelPool._sweeping': ('pool.html#kernelpool._sweeping', 'kunda/pool.py'),
|
|
74
|
+
'kunda.pool.KernelPool.choose': ('pool.html#kernelpool.choose', 'kunda/pool.py'),
|
|
75
|
+
'kunda.pool.KernelPool.close': ('pool.html#kernelpool.close', 'kunda/pool.py'),
|
|
76
|
+
'kunda.pool.KernelPool.close_all': ('pool.html#kernelpool.close_all', 'kunda/pool.py'),
|
|
77
|
+
'kunda.pool.KernelPool.get': ('pool.html#kernelpool.get', 'kunda/pool.py'),
|
|
78
|
+
'kunda.pool.KernelPool.peek': ('pool.html#kernelpool.peek', 'kunda/pool.py'),
|
|
79
|
+
'kunda.pool.KernelPool.reap': ('pool.html#kernelpool.reap', 'kunda/pool.py'),
|
|
80
|
+
'kunda.pool.RuntimeBroker': ('pool.html#runtimebroker', 'kunda/pool.py'),
|
|
81
|
+
'kunda.pool.RuntimeBroker.__init__': ('pool.html#runtimebroker.__init__', 'kunda/pool.py'),
|
|
82
|
+
'kunda.pool.RuntimeBroker._candidate': ('pool.html#runtimebroker._candidate', 'kunda/pool.py'),
|
|
83
|
+
'kunda.pool.RuntimeBroker.admit': ('pool.html#runtimebroker.admit', 'kunda/pool.py'),
|
|
84
|
+
'kunda.pool.RuntimeBroker.live': ('pool.html#runtimebroker.live', 'kunda/pool.py'),
|
|
85
|
+
'kunda.pool.RuntimeBroker.register': ('pool.html#runtimebroker.register', 'kunda/pool.py'),
|
|
86
|
+
'kunda.pool.RuntimeBroker.release': ('pool.html#runtimebroker.release', 'kunda/pool.py'),
|
|
87
|
+
'kunda.pool.RuntimeBroker.stalest': ('pool.html#runtimebroker.stalest', 'kunda/pool.py'),
|
|
88
|
+
'kunda.pool.RuntimeBroker.status': ('pool.html#runtimebroker.status', 'kunda/pool.py')},
|
|
89
|
+
'kunda.pythons': { 'kunda.pythons._venv_pythons': ('pythons.html#_venv_pythons', 'kunda/pythons.py'),
|
|
90
|
+
'kunda.pythons._venv_roots': ('pythons.html#_venv_roots', 'kunda/pythons.py'),
|
|
91
|
+
'kunda.pythons.app_env': ('pythons.html#app_env', 'kunda/pythons.py'),
|
|
92
|
+
'kunda.pythons.app_name': ('pythons.html#app_name', 'kunda/pythons.py'),
|
|
93
|
+
'kunda.pythons.clean_env': ('pythons.html#clean_env', 'kunda/pythons.py'),
|
|
94
|
+
'kunda.pythons.env_name': ('pythons.html#env_name', 'kunda/pythons.py'),
|
|
95
|
+
'kunda.pythons.find_pythons': ('pythons.html#find_pythons', 'kunda/pythons.py'),
|
|
96
|
+
'kunda.pythons.nearest_marked': ('pythons.html#nearest_marked', 'kunda/pythons.py'),
|
|
97
|
+
'kunda.pythons.nearest_python': ('pythons.html#nearest_python', 'kunda/pythons.py'),
|
|
98
|
+
'kunda.pythons.project_python': ('pythons.html#project_python', 'kunda/pythons.py'),
|
|
99
|
+
'kunda.pythons.python_for': ('pythons.html#python_for', 'kunda/pythons.py'),
|
|
100
|
+
'kunda.pythons.strip_bundle': ('pythons.html#strip_bundle', 'kunda/pythons.py'),
|
|
101
|
+
'kunda.pythons.use_app': ('pythons.html#use_app', 'kunda/pythons.py'),
|
|
102
|
+
'kunda.pythons.venv_env': ('pythons.html#venv_env', 'kunda/pythons.py')},
|
|
103
|
+
'kunda.spec': { 'kunda.spec.ExecOutcome': ('spec.html#execoutcome', 'kunda/spec.py'),
|
|
104
|
+
'kunda.spec.ExecOutcome.text': ('spec.html#execoutcome.text', 'kunda/spec.py'),
|
|
105
|
+
'kunda.spec.KernelStartError': ('spec.html#kernelstarterror', 'kunda/spec.py'),
|
|
106
|
+
'kunda.spec._frozen_pythonpath': ('spec.html#_frozen_pythonpath', 'kunda/spec.py'),
|
|
107
|
+
'kunda.spec._kernel_env': ('spec.html#_kernel_env', 'kunda/spec.py'),
|
|
108
|
+
'kunda.spec._runtime_python': ('spec.html#_runtime_python', 'kunda/spec.py'),
|
|
109
|
+
'kunda.spec._spec': ('spec.html#_spec', 'kunda/spec.py'),
|
|
110
|
+
'kunda.spec.bootstrap_src': ('spec.html#bootstrap_src', 'kunda/spec.py'),
|
|
111
|
+
'kunda.spec.installed_kernels': ('spec.html#installed_kernels', 'kunda/spec.py'),
|
|
112
|
+
'kunda.spec.installed_spec': ('spec.html#installed_spec', 'kunda/spec.py'),
|
|
113
|
+
'kunda.spec.kernelspec_for': ('spec.html#kernelspec_for', 'kunda/spec.py'),
|
|
114
|
+
'kunda.spec.missing_kernel_module': ('spec.html#missing_kernel_module', 'kunda/spec.py'),
|
|
115
|
+
'kunda.spec.output_text': ('spec.html#output_text', 'kunda/spec.py'),
|
|
116
|
+
'kunda.spec.run_file_src': ('spec.html#run_file_src', 'kunda/spec.py')},
|
|
117
|
+
'kunda.support': { 'kunda.support._Failed': ('support.html#_failed', 'kunda/support.py'),
|
|
118
|
+
'kunda.support._Failed.__init__': ('support.html#_failed.__init__', 'kunda/support.py'),
|
|
119
|
+
'kunda.support._attempts': ('support.html#_attempts', 'kunda/support.py'),
|
|
120
|
+
'kunda.support._detail': ('support.html#_detail', 'kunda/support.py'),
|
|
121
|
+
'kunda.support._last_line': ('support.html#_last_line', 'kunda/support.py'),
|
|
122
|
+
'kunda.support._lock_for': ('support.html#_lock_for', 'kunda/support.py'),
|
|
123
|
+
'kunda.support._log': ('support.html#_log', 'kunda/support.py'),
|
|
124
|
+
'kunda.support._probe': ('support.html#_probe', 'kunda/support.py'),
|
|
125
|
+
'kunda.support._run': ('support.html#_run', 'kunda/support.py'),
|
|
126
|
+
'kunda.support.as_installed': ('support.html#as_installed', 'kunda/support.py'),
|
|
127
|
+
'kunda.support.import_failure': ('support.html#import_failure', 'kunda/support.py'),
|
|
128
|
+
'kunda.support.inspector_support': ('support.html#inspector_support', 'kunda/support.py'),
|
|
129
|
+
'kunda.support.install_inspector_support': ('support.html#install_inspector_support', 'kunda/support.py'),
|
|
130
|
+
'kunda.support.install_kernel_support': ('support.html#install_kernel_support', 'kunda/support.py'),
|
|
131
|
+
'kunda.support.installable': ('support.html#installable', 'kunda/support.py'),
|
|
132
|
+
'kunda.support.kernel_support': ('support.html#kernel_support', 'kunda/support.py'),
|
|
133
|
+
'kunda.support.support_paths': ('support.html#support_paths', 'kunda/support.py'),
|
|
134
|
+
'kunda.support.work_dir': ('support.html#work_dir', 'kunda/support.py')}}}
|