@datalayer/jupyter-react 1.1.9 → 1.2.1

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 (353) hide show
  1. package/README.md +74 -1
  2. package/lib/app/tabs/components/CellComponent.js +4 -2
  3. package/lib/app/tabs/components/CellComponent.js.map +1 -1
  4. package/lib/app/tabs/components/NotebookComponent.js +2 -2
  5. package/lib/app/tabs/components/NotebookComponent.js.map +1 -1
  6. package/lib/app/tabs/components/ViewerComponent.js +1 -1
  7. package/lib/app/tabs/components/ViewerComponent.js.map +1 -1
  8. package/lib/components/cell/Cell.d.ts +3 -3
  9. package/lib/components/cell/Cell.js +5 -12
  10. package/lib/components/cell/Cell.js.map +1 -1
  11. package/lib/components/cell/CellAdapter.d.ts +0 -2
  12. package/lib/components/cell/CellAdapter.js +5 -17
  13. package/lib/components/cell/CellAdapter.js.map +1 -1
  14. package/lib/components/jupyterlab/JupyterLabApp.js +6 -0
  15. package/lib/components/jupyterlab/JupyterLabApp.js.map +1 -1
  16. package/lib/components/kernel/{Kernelndicator.d.ts → KernelIndicator.d.ts} +1 -0
  17. package/lib/components/kernel/{Kernelndicator.js → KernelIndicator.js} +13 -5
  18. package/lib/components/kernel/KernelIndicator.js.map +1 -0
  19. package/lib/components/kernel/index.d.ts +1 -1
  20. package/lib/components/kernel/index.js +1 -1
  21. package/lib/components/kernel/index.js.map +1 -1
  22. package/lib/components/notebook/Notebook2.d.ts +6 -2
  23. package/lib/components/notebook/Notebook2.js +3 -2
  24. package/lib/components/notebook/Notebook2.js.map +1 -1
  25. package/lib/components/notebook/Notebook2Adapter.d.ts +10 -0
  26. package/lib/components/notebook/Notebook2Adapter.js +12 -0
  27. package/lib/components/notebook/Notebook2Adapter.js.map +1 -1
  28. package/lib/components/notebook/Notebook2Base.d.ts +7 -3
  29. package/lib/components/notebook/Notebook2Base.js +78 -48
  30. package/lib/components/notebook/Notebook2Base.js.map +1 -1
  31. package/lib/components/notebook/Notebook2State.d.ts +1 -0
  32. package/lib/components/notebook/Notebook2State.js +3 -0
  33. package/lib/components/notebook/Notebook2State.js.map +1 -1
  34. package/lib/components/notebook/NotebookAdapter.d.ts +1 -0
  35. package/lib/components/notebook/NotebookAdapter.js +7 -3
  36. package/lib/components/notebook/NotebookAdapter.js.map +1 -1
  37. package/lib/components/notebook/NotebookCommands.d.ts +25 -2
  38. package/lib/components/notebook/NotebookCommands.js +89 -10
  39. package/lib/components/notebook/NotebookCommands.js.map +1 -1
  40. package/lib/components/terminal/Terminal.js +1 -1
  41. package/lib/components/terminal/Terminal.js.map +1 -1
  42. package/lib/examples/Bokeh.js +2 -2
  43. package/lib/examples/Bokeh.js.map +1 -1
  44. package/lib/examples/Bqplot.js +2 -2
  45. package/lib/examples/Bqplot.js.map +1 -1
  46. package/lib/examples/Cell.js +4 -4
  47. package/lib/examples/Cell.js.map +1 -1
  48. package/lib/examples/CellLite.js +16 -4
  49. package/lib/examples/CellLite.js.map +1 -1
  50. package/lib/examples/Cells.js +9 -6
  51. package/lib/examples/Cells.js.map +1 -1
  52. package/lib/examples/CellsExecute.js +13 -9
  53. package/lib/examples/CellsExecute.js.map +1 -1
  54. package/lib/examples/Console.js +2 -2
  55. package/lib/examples/Console.js.map +1 -1
  56. package/lib/examples/ConsoleLite.js +3 -3
  57. package/lib/examples/ConsoleLite.js.map +1 -1
  58. package/lib/examples/Dashboard.js +2 -2
  59. package/lib/examples/Dashboard.js.map +1 -1
  60. package/lib/examples/Deno.js +2 -2
  61. package/lib/examples/Deno.js.map +1 -1
  62. package/lib/examples/Examples.d.ts +23 -0
  63. package/lib/examples/Examples.js +342 -0
  64. package/lib/examples/Examples.js.map +1 -0
  65. package/lib/examples/FileBrowser.js +4 -4
  66. package/lib/examples/FileBrowser.js.map +1 -1
  67. package/lib/examples/GeoJson.js +2 -2
  68. package/lib/examples/GeoJson.js.map +1 -1
  69. package/lib/examples/IPyLeaflet.js +3 -3
  70. package/lib/examples/IPyLeaflet.js.map +1 -1
  71. package/lib/examples/IPyReact.js +3 -3
  72. package/lib/examples/IPyReact.js.map +1 -1
  73. package/lib/examples/IPyWidgets.js +3 -3
  74. package/lib/examples/IPyWidgets.js.map +1 -1
  75. package/lib/examples/IPyWidgetsState.js +3 -3
  76. package/lib/examples/IPyWidgetsState.js.map +1 -1
  77. package/lib/examples/JupyterContext.js +2 -2
  78. package/lib/examples/JupyterContext.js.map +1 -1
  79. package/lib/examples/JupyterLabAppHeadless.js +2 -2
  80. package/lib/examples/JupyterLabAppHeadless.js.map +1 -1
  81. package/lib/examples/JupyterLabAppHeadlessServerless.js +2 -2
  82. package/lib/examples/JupyterLabAppHeadlessServerless.js.map +1 -1
  83. package/lib/examples/JupyterLabAppServerless.js +2 -2
  84. package/lib/examples/JupyterLabAppServerless.js.map +1 -1
  85. package/lib/examples/JupyterLabAppServiceManager.js +2 -2
  86. package/lib/examples/JupyterLabAppServiceManager.js.map +1 -1
  87. package/lib/examples/JupyterLabTheme.js +2 -2
  88. package/lib/examples/JupyterLabTheme.js.map +1 -1
  89. package/lib/examples/KernelExecute.d.ts +1 -1
  90. package/lib/examples/KernelExecute.js +9 -11
  91. package/lib/examples/KernelExecute.js.map +1 -1
  92. package/lib/examples/KernelExecuteLite.d.ts +1 -0
  93. package/lib/examples/KernelExecuteLite.js +51 -0
  94. package/lib/examples/KernelExecuteLite.js.map +1 -0
  95. package/lib/examples/KernelExecutor.js +10 -9
  96. package/lib/examples/KernelExecutor.js.map +1 -1
  97. package/lib/examples/KernelExecutorLite.js +63 -0
  98. package/lib/examples/KernelExecutorLite.js.map +1 -0
  99. package/lib/examples/Kernels.js +6 -5
  100. package/lib/examples/Kernels.js.map +1 -1
  101. package/lib/examples/Lumino.js +2 -2
  102. package/lib/examples/Lumino.js.map +1 -1
  103. package/lib/examples/Matplotlib.js +10 -6
  104. package/lib/examples/Matplotlib.js.map +1 -1
  105. package/lib/examples/Notebook.js +3 -2
  106. package/lib/examples/Notebook.js.map +1 -1
  107. package/lib/examples/Notebook2.js +9 -6
  108. package/lib/examples/Notebook2.js.map +1 -1
  109. package/lib/examples/Notebook2Actions.js +8 -6
  110. package/lib/examples/Notebook2Actions.js.map +1 -1
  111. package/lib/examples/Notebook2Collaborative.js +2 -2
  112. package/lib/examples/Notebook2Collaborative.js.map +1 -1
  113. package/lib/examples/Notebook2Lite.js +19 -14
  114. package/lib/examples/Notebook2Lite.js.map +1 -1
  115. package/lib/examples/NotebookCellSidebar.js +3 -3
  116. package/lib/examples/NotebookCellSidebar.js.map +1 -1
  117. package/lib/examples/NotebookCellToolbar.js +4 -4
  118. package/lib/examples/NotebookCellToolbar.js.map +1 -1
  119. package/lib/examples/NotebookCollaborative.js +2 -2
  120. package/lib/examples/NotebookCollaborative.js.map +1 -1
  121. package/lib/examples/NotebookColormode.js +15 -10
  122. package/lib/examples/NotebookColormode.js.map +1 -1
  123. package/lib/examples/NotebookExtension.js +4 -4
  124. package/lib/examples/NotebookExtension.js.map +1 -1
  125. package/lib/examples/NotebookExternalContent.js +18 -13
  126. package/lib/examples/NotebookExternalContent.js.map +1 -1
  127. package/lib/examples/NotebookInit.js +10 -9
  128. package/lib/examples/NotebookInit.js.map +1 -1
  129. package/lib/examples/NotebookKernel.js +4 -4
  130. package/lib/examples/NotebookKernel.js.map +1 -1
  131. package/lib/examples/NotebookKernelChange.js +2 -2
  132. package/lib/examples/NotebookKernelChange.js.map +1 -1
  133. package/lib/examples/NotebookLess.js +4 -4
  134. package/lib/examples/NotebookLess.js.map +1 -1
  135. package/lib/examples/NotebookLite.js +10 -6
  136. package/lib/examples/NotebookLite.js.map +1 -1
  137. package/lib/examples/NotebookLiteContext.js +10 -5
  138. package/lib/examples/NotebookLiteContext.js.map +1 -1
  139. package/lib/examples/NotebookLocalServer.js +3 -3
  140. package/lib/examples/NotebookLocalServer.js.map +1 -1
  141. package/lib/examples/NotebookNbformat.js +7 -5
  142. package/lib/examples/NotebookNbformat.js.map +1 -1
  143. package/lib/examples/NotebookNbformatChange.js +12 -6
  144. package/lib/examples/NotebookNbformatChange.js.map +1 -1
  145. package/lib/examples/NotebookNoContext.js +4 -3
  146. package/lib/examples/NotebookNoContext.js.map +1 -1
  147. package/lib/examples/NotebookNoPrimer.js +3 -2
  148. package/lib/examples/NotebookNoPrimer.js.map +1 -1
  149. package/lib/examples/NotebookOnSessionConnection.js +5 -5
  150. package/lib/examples/NotebookOnSessionConnection.js.map +1 -1
  151. package/lib/examples/NotebookPath.js +2 -2
  152. package/lib/examples/NotebookPath.js.map +1 -1
  153. package/lib/examples/NotebookPathChange.js +5 -4
  154. package/lib/examples/NotebookPathChange.js.map +1 -1
  155. package/lib/examples/NotebookReadonly.js +4 -4
  156. package/lib/examples/NotebookReadonly.js.map +1 -1
  157. package/lib/examples/NotebookServiceManager.js +4 -4
  158. package/lib/examples/NotebookServiceManager.js.map +1 -1
  159. package/lib/examples/NotebookSkeleton.js +3 -2
  160. package/lib/examples/NotebookSkeleton.js.map +1 -1
  161. package/lib/examples/NotebookTOC.d.ts +1 -0
  162. package/lib/examples/{NotebookToc.js → NotebookTOC.js} +12 -6
  163. package/lib/examples/NotebookTOC.js.map +1 -0
  164. package/lib/examples/NotebookTheme.js +10 -5
  165. package/lib/examples/NotebookTheme.js.map +1 -1
  166. package/lib/examples/NotebookThemeColormode.js +4 -4
  167. package/lib/examples/NotebookThemeColormode.js.map +1 -1
  168. package/lib/examples/NotebookURL.js +3 -2
  169. package/lib/examples/NotebookURL.js.map +1 -1
  170. package/lib/examples/NotebookUnmount.js +13 -7
  171. package/lib/examples/NotebookUnmount.js.map +1 -1
  172. package/lib/examples/ObservableHQ.js +2 -2
  173. package/lib/examples/ObservableHQ.js.map +1 -1
  174. package/lib/examples/OutputIPyWidgets.js +3 -3
  175. package/lib/examples/OutputIPyWidgets.js.map +1 -1
  176. package/lib/examples/OutputWithMonitoring.js +3 -2
  177. package/lib/examples/OutputWithMonitoring.js.map +1 -1
  178. package/lib/examples/Outputs.js +8 -8
  179. package/lib/examples/Outputs.js.map +1 -1
  180. package/lib/examples/OutputsIpynb.js +4 -4
  181. package/lib/examples/OutputsIpynb.js.map +1 -1
  182. package/lib/examples/Panel.js +2 -2
  183. package/lib/examples/Panel.js.map +1 -1
  184. package/lib/examples/Plotly.js +2 -2
  185. package/lib/examples/Plotly.js.map +1 -1
  186. package/lib/examples/PyGWalker.js +4 -4
  187. package/lib/examples/PyGWalker.js.map +1 -1
  188. package/lib/examples/Terminal.js +4 -3
  189. package/lib/examples/Terminal.js.map +1 -1
  190. package/lib/examples/Vega.js +2 -2
  191. package/lib/examples/Vega.js.map +1 -1
  192. package/lib/examples/Viewer.js +5 -4
  193. package/lib/examples/Viewer.js.map +1 -1
  194. package/lib/jupyter/JupyterConfig.js +6 -4
  195. package/lib/jupyter/JupyterConfig.js.map +1 -1
  196. package/lib/jupyter/collaboration/ICollaborationProvider.js.map +1 -1
  197. package/lib/jupyter/kernel/Kernel.js +21 -15
  198. package/lib/jupyter/kernel/Kernel.js.map +1 -1
  199. package/lib/jupyter/kernel/KernelState.d.ts +1 -1
  200. package/lib/jupyter/lite/Lite.d.ts +1 -1
  201. package/lib/jupyter/lite/LiteServer.d.ts +1 -1
  202. package/lib/jupyter/lite/LiteServer.js +20 -5
  203. package/lib/jupyter/lite/LiteServer.js.map +1 -1
  204. package/lib/jupyter/lite/contents/broadcast.d.ts +27 -0
  205. package/lib/jupyter/lite/contents/broadcast.js +60 -0
  206. package/lib/jupyter/lite/contents/broadcast.js.map +1 -0
  207. package/lib/jupyter/lite/contents/contents.d.ts +228 -0
  208. package/lib/jupyter/lite/contents/contents.js +774 -0
  209. package/lib/jupyter/lite/contents/contents.js.map +1 -0
  210. package/lib/jupyter/lite/contents/drivecontents.d.ts +92 -0
  211. package/lib/jupyter/lite/contents/drivecontents.js +133 -0
  212. package/lib/jupyter/lite/contents/drivecontents.js.map +1 -0
  213. package/lib/jupyter/lite/contents/drivefs.d.ts +193 -0
  214. package/lib/jupyter/lite/contents/drivefs.js +432 -0
  215. package/lib/jupyter/lite/contents/drivefs.js.map +1 -0
  216. package/lib/jupyter/lite/contents/emscripten.d.ts +89 -0
  217. package/lib/jupyter/lite/contents/emscripten.js +11 -0
  218. package/lib/jupyter/lite/contents/emscripten.js.map +1 -0
  219. package/lib/jupyter/lite/contents/index.d.ts +6 -0
  220. package/lib/jupyter/lite/contents/index.js +9 -0
  221. package/lib/jupyter/lite/contents/index.js.map +1 -0
  222. package/lib/jupyter/lite/contents/tokens.d.ts +136 -0
  223. package/lib/jupyter/lite/contents/tokens.js +66 -0
  224. package/lib/jupyter/lite/contents/tokens.js.map +1 -0
  225. package/lib/jupyter/lite/kernel/index.d.ts +4 -0
  226. package/lib/jupyter/lite/kernel/index.js +7 -0
  227. package/lib/jupyter/lite/kernel/index.js.map +1 -0
  228. package/lib/jupyter/lite/kernel/kernel.d.ts +245 -0
  229. package/lib/jupyter/lite/kernel/kernel.js +453 -0
  230. package/lib/jupyter/lite/kernel/kernel.js.map +1 -0
  231. package/lib/jupyter/lite/kernel/kernels.d.ts +85 -0
  232. package/lib/jupyter/lite/kernel/kernels.js +218 -0
  233. package/lib/jupyter/lite/kernel/kernels.js.map +1 -0
  234. package/lib/jupyter/lite/kernel/kernelspecs.d.ts +53 -0
  235. package/lib/jupyter/lite/kernel/kernelspecs.js +50 -0
  236. package/lib/jupyter/lite/kernel/kernelspecs.js.map +1 -0
  237. package/lib/jupyter/lite/kernel/tokens.d.ts +171 -0
  238. package/lib/jupyter/lite/kernel/tokens.js +16 -0
  239. package/lib/jupyter/lite/kernel/tokens.js.map +1 -0
  240. package/lib/jupyter/lite/licenses/index.d.ts +2 -0
  241. package/lib/jupyter/lite/licenses/index.js +5 -0
  242. package/lib/jupyter/lite/licenses/index.js.map +1 -0
  243. package/lib/jupyter/lite/licenses/licenses.d.ts +35 -0
  244. package/lib/jupyter/lite/licenses/licenses.js +95 -0
  245. package/lib/jupyter/lite/licenses/licenses.js.map +1 -0
  246. package/lib/jupyter/lite/licenses/tokens.d.ts +74 -0
  247. package/lib/jupyter/lite/licenses/tokens.js +13 -0
  248. package/lib/jupyter/lite/licenses/tokens.js.map +1 -0
  249. package/lib/jupyter/lite/localforage/index.d.ts +2 -0
  250. package/lib/jupyter/lite/localforage/index.js +5 -0
  251. package/lib/jupyter/lite/localforage/index.js.map +1 -0
  252. package/lib/jupyter/lite/localforage/memory.d.ts +5 -0
  253. package/lib/jupyter/lite/localforage/memory.js +10 -0
  254. package/lib/jupyter/lite/localforage/memory.js.map +1 -0
  255. package/lib/jupyter/lite/localforage/tokens.d.ts +12 -0
  256. package/lib/jupyter/lite/localforage/tokens.js +8 -0
  257. package/lib/jupyter/lite/localforage/tokens.js.map +1 -0
  258. package/lib/jupyter/lite/pyodide-kernel/_pypi.d.ts +18 -0
  259. package/lib/jupyter/lite/pyodide-kernel/_pypi.js +85 -0
  260. package/lib/jupyter/lite/pyodide-kernel/_pypi.js.map +1 -0
  261. package/lib/jupyter/lite/pyodide-kernel/coincident.worker.d.ts +15 -0
  262. package/lib/jupyter/lite/pyodide-kernel/coincident.worker.js +63 -0
  263. package/lib/jupyter/lite/pyodide-kernel/coincident.worker.js.map +1 -0
  264. package/lib/jupyter/lite/pyodide-kernel/comlink.worker.d.ts +9 -0
  265. package/lib/jupyter/lite/pyodide-kernel/comlink.worker.js +50 -0
  266. package/lib/jupyter/lite/pyodide-kernel/comlink.worker.js.map +1 -0
  267. package/lib/jupyter/lite/pyodide-kernel/index.d.ts +6 -0
  268. package/lib/jupyter/lite/pyodide-kernel/index.js +9 -0
  269. package/lib/jupyter/lite/pyodide-kernel/index.js.map +1 -0
  270. package/lib/jupyter/lite/pyodide-kernel/kernel.d.ts +157 -0
  271. package/lib/jupyter/lite/pyodide-kernel/kernel.js +294 -0
  272. package/lib/jupyter/lite/pyodide-kernel/kernel.js.map +1 -0
  273. package/lib/jupyter/lite/pyodide-kernel/pypi/all-local.json +128 -0
  274. package/lib/jupyter/lite/pyodide-kernel/pypi/all.json +128 -0
  275. package/lib/jupyter/lite/pyodide-kernel/schema/piplite.v0.schema.json +113 -0
  276. package/lib/jupyter/lite/pyodide-kernel/tokens.d.ts +82 -0
  277. package/lib/jupyter/lite/pyodide-kernel/tokens.js +8 -0
  278. package/lib/jupyter/lite/pyodide-kernel/tokens.js.map +1 -0
  279. package/lib/jupyter/lite/pyodide-kernel/worker.d.ts +138 -0
  280. package/lib/jupyter/lite/pyodide-kernel/worker.js +426 -0
  281. package/lib/jupyter/lite/pyodide-kernel/worker.js.map +1 -0
  282. package/lib/jupyter/lite/pyodide-kernel-extension/index.d.ts +4 -0
  283. package/lib/jupyter/lite/pyodide-kernel-extension/index.js +88 -0
  284. package/lib/jupyter/lite/pyodide-kernel-extension/index.js.map +1 -0
  285. package/lib/jupyter/lite/server/app.d.ts +87 -0
  286. package/lib/jupyter/lite/server/app.js +157 -0
  287. package/lib/jupyter/lite/server/app.js.map +1 -0
  288. package/lib/jupyter/lite/server/index.d.ts +4 -0
  289. package/lib/jupyter/lite/server/index.js +7 -0
  290. package/lib/jupyter/lite/server/index.js.map +1 -0
  291. package/lib/jupyter/lite/server/router.d.ts +99 -0
  292. package/lib/jupyter/lite/server/router.js +109 -0
  293. package/lib/jupyter/lite/server/router.js.map +1 -0
  294. package/lib/jupyter/lite/server/service-manager.d.ts +21 -0
  295. package/lib/jupyter/lite/server/service-manager.js +102 -0
  296. package/lib/jupyter/lite/server/service-manager.js.map +1 -0
  297. package/lib/jupyter/lite/server/service-worker.d.ts +58 -0
  298. package/lib/jupyter/lite/server/service-worker.js +145 -0
  299. package/lib/jupyter/lite/server/service-worker.js.map +1 -0
  300. package/lib/jupyter/lite/server/status.d.ts +18 -0
  301. package/lib/jupyter/lite/server/status.js +21 -0
  302. package/lib/jupyter/lite/server/status.js.map +1 -0
  303. package/lib/jupyter/lite/server/tokens.d.ts +38 -0
  304. package/lib/jupyter/lite/server/tokens.js +8 -0
  305. package/lib/jupyter/lite/server/tokens.js.map +1 -0
  306. package/lib/jupyter/lite/server-extension/index.d.ts +3 -0
  307. package/lib/jupyter/lite/server-extension/index.js +500 -0
  308. package/lib/jupyter/lite/server-extension/index.js.map +1 -0
  309. package/lib/jupyter/lite/session/index.d.ts +2 -0
  310. package/lib/jupyter/lite/session/index.js +5 -0
  311. package/lib/jupyter/lite/session/index.js.map +1 -0
  312. package/lib/jupyter/lite/session/sessions.d.ts +68 -0
  313. package/lib/jupyter/lite/session/sessions.js +185 -0
  314. package/lib/jupyter/lite/session/sessions.js.map +1 -0
  315. package/lib/jupyter/lite/session/tokens.d.ts +40 -0
  316. package/lib/jupyter/lite/session/tokens.js +6 -0
  317. package/lib/jupyter/lite/session/tokens.js.map +1 -0
  318. package/lib/jupyter/lite/settings/index.d.ts +2 -0
  319. package/lib/jupyter/lite/settings/index.js +5 -0
  320. package/lib/jupyter/lite/settings/index.js.map +1 -0
  321. package/lib/jupyter/lite/settings/settings.d.ts +75 -0
  322. package/lib/jupyter/lite/settings/settings.js +155 -0
  323. package/lib/jupyter/lite/settings/settings.js.map +1 -0
  324. package/lib/jupyter/lite/settings/tokens.d.ts +65 -0
  325. package/lib/jupyter/lite/settings/tokens.js +6 -0
  326. package/lib/jupyter/lite/settings/tokens.js.map +1 -0
  327. package/lib/jupyter/lite/translation/index.d.ts +2 -0
  328. package/lib/jupyter/lite/translation/index.js +5 -0
  329. package/lib/jupyter/lite/translation/index.js.map +1 -0
  330. package/lib/jupyter/lite/translation/tokens.d.ts +17 -0
  331. package/lib/jupyter/lite/translation/tokens.js +6 -0
  332. package/lib/jupyter/lite/translation/tokens.js.map +1 -0
  333. package/lib/jupyter/lite/translation/translation.d.ts +13 -0
  334. package/lib/jupyter/lite/translation/translation.js +52 -0
  335. package/lib/jupyter/lite/translation/translation.js.map +1 -0
  336. package/lib/jupyter/lite/types/index.d.ts +1 -0
  337. package/lib/jupyter/lite/types/index.js +4 -0
  338. package/lib/jupyter/lite/types/index.js.map +1 -0
  339. package/lib/jupyter/lite/types/tokens.d.ts +27 -0
  340. package/lib/jupyter/lite/types/tokens.js +4 -0
  341. package/lib/jupyter/lite/types/tokens.js.map +1 -0
  342. package/lib/jupyter/services/ServiceManagerLite.js +15 -6
  343. package/lib/jupyter/services/ServiceManagerLite.js.map +1 -1
  344. package/lib/state/JupyterReactState.js +7 -8
  345. package/lib/state/JupyterReactState.js.map +1 -1
  346. package/lib/theme/JupyterLabCss.js +4 -2
  347. package/lib/theme/JupyterLabCss.js.map +1 -1
  348. package/package.json +23 -16
  349. package/schema/kernel.v0.schema.json +42 -0
  350. package/style/icons/pyodide.svg +17 -0
  351. package/lib/components/kernel/Kernelndicator.js.map +0 -1
  352. package/lib/examples/NotebookToc.js.map +0 -1
  353. /package/lib/examples/{NotebookToc.d.ts → KernelExecutorLite.d.ts} +0 -0
@@ -0,0 +1,294 @@
1
+ import coincident from 'coincident';
2
+ import { wrap } from 'comlink';
3
+ import { PromiseDelegate } from '@lumino/coreutils';
4
+ import { PageConfig } from '@jupyterlab/coreutils';
5
+ import { BaseKernel } from '@jupyterlite/kernel';
6
+ import { allJSONUrl, pipliteWheelUrl } from './_pypi';
7
+ import { DriveContentsProcessor, } from '@jupyterlite/contents';
8
+ /**
9
+ * A kernel that executes Python code with Pyodide.
10
+ */
11
+ export class PyodideKernel extends BaseKernel {
12
+ /**
13
+ * Instantiate a new PyodideKernel
14
+ *
15
+ * @param options The instantiation options for a new PyodideKernel
16
+ */
17
+ constructor(options) {
18
+ super(options);
19
+ this._worker = this.initWorker(options);
20
+ this._remoteKernel = this.initRemote(options);
21
+ this._contentsManager = options.contentsManager;
22
+ }
23
+ /**
24
+ * Load the worker.
25
+ *
26
+ * ### Note
27
+ *
28
+ * Subclasses must implement this typographically almost _exactly_ for
29
+ * webpack to find it.
30
+ */
31
+ initWorker(options) {
32
+ if (crossOriginIsolated) {
33
+ return new Worker(new URL('./coincident.worker.js', import.meta.url), {
34
+ type: 'module',
35
+ });
36
+ }
37
+ else {
38
+ return new Worker(new URL('./comlink.worker.js', import.meta.url), {
39
+ type: 'module',
40
+ });
41
+ }
42
+ }
43
+ /**
44
+ * Initialize the remote kernel.
45
+ * Use coincident if crossOriginIsolated, comlink otherwise
46
+ * See the two following issues for more context:
47
+ * - https://github.com/jupyterlite/jupyterlite/issues/1424
48
+ * - https://github.com/jupyterlite/pyodide-kernel/pull/126
49
+ */
50
+ initRemote(options) {
51
+ let remote;
52
+ if (crossOriginIsolated) {
53
+ remote = coincident(this._worker);
54
+ remote.processWorkerMessage = this._processWorkerMessage.bind(this);
55
+ // The coincident worker uses its own filesystem API:
56
+ remote.processDriveRequest = async (data) => {
57
+ if (!DriveContentsProcessor) {
58
+ throw new Error('File system calls over Atomics.wait is only supported with jupyterlite>=0.4.0a3');
59
+ }
60
+ if (this._contentsProcessor === undefined) {
61
+ this._contentsProcessor = new DriveContentsProcessor({
62
+ contentsManager: this._contentsManager,
63
+ });
64
+ }
65
+ return await this._contentsProcessor.processDriveRequest(data);
66
+ };
67
+ }
68
+ else {
69
+ remote = wrap(this._worker);
70
+ // we use the normal postMessage mechanism
71
+ this._worker.addEventListener('message', ev => {
72
+ if (typeof ev?.data?._kernelMessage !== 'undefined') {
73
+ // only process non comlink messages
74
+ this._processWorkerMessage(ev.data._kernelMessage);
75
+ }
76
+ });
77
+ }
78
+ const remoteOptions = this.initRemoteOptions(options);
79
+ remote
80
+ .initialize(remoteOptions)
81
+ .then(this._ready.resolve.bind(this._ready));
82
+ return remote;
83
+ }
84
+ initRemoteOptions(options) {
85
+ const { pyodideUrl } = options;
86
+ const indexUrl = pyodideUrl.slice(0, pyodideUrl.lastIndexOf('/') + 1);
87
+ const baseUrl = PageConfig.getBaseUrl();
88
+ const pipliteUrls = [...(options.pipliteUrls || []), allJSONUrl.default];
89
+ const disablePyPIFallback = !!options.disablePyPIFallback;
90
+ return {
91
+ baseUrl,
92
+ pyodideUrl,
93
+ indexUrl,
94
+ pipliteWheelUrl: options.pipliteWheelUrl || pipliteWheelUrl.default,
95
+ pipliteUrls,
96
+ disablePyPIFallback,
97
+ location: this.location,
98
+ mountDrive: options.mountDrive,
99
+ loadPyodideOptions: options.loadPyodideOptions || {},
100
+ };
101
+ }
102
+ /**
103
+ * Dispose the kernel.
104
+ */
105
+ dispose() {
106
+ if (this.isDisposed) {
107
+ return;
108
+ }
109
+ this._worker.terminate();
110
+ this._worker = null;
111
+ super.dispose();
112
+ }
113
+ /**
114
+ * A promise that is fulfilled when the kernel is ready.
115
+ */
116
+ get ready() {
117
+ return this._ready.promise;
118
+ }
119
+ /**
120
+ * Process a message coming from the pyodide web worker.
121
+ *
122
+ * @param msg The worker message to process.
123
+ */
124
+ _processWorkerMessage(msg) {
125
+ if (!msg.type) {
126
+ return;
127
+ }
128
+ switch (msg.type) {
129
+ case 'stream': {
130
+ const bundle = msg.bundle ?? { name: 'stdout', text: '' };
131
+ this.stream(bundle, msg.parentHeader);
132
+ break;
133
+ }
134
+ case 'input_request': {
135
+ const bundle = msg.content ?? { prompt: '', password: false };
136
+ this.inputRequest(bundle, msg.parentHeader);
137
+ break;
138
+ }
139
+ case 'display_data': {
140
+ const bundle = msg.bundle ?? { data: {}, metadata: {}, transient: {} };
141
+ this.displayData(bundle, msg.parentHeader);
142
+ break;
143
+ }
144
+ case 'update_display_data': {
145
+ const bundle = msg.bundle ?? { data: {}, metadata: {}, transient: {} };
146
+ this.updateDisplayData(bundle, msg.parentHeader);
147
+ break;
148
+ }
149
+ case 'clear_output': {
150
+ const bundle = msg.bundle ?? { wait: false };
151
+ this.clearOutput(bundle, msg.parentHeader);
152
+ break;
153
+ }
154
+ case 'execute_result': {
155
+ const bundle = msg.bundle ?? {
156
+ execution_count: 0,
157
+ data: {},
158
+ metadata: {},
159
+ };
160
+ this.publishExecuteResult(bundle, msg.parentHeader);
161
+ break;
162
+ }
163
+ case 'execute_error': {
164
+ const bundle = msg.bundle ?? { ename: '', evalue: '', traceback: [] };
165
+ this.publishExecuteError(bundle, msg.parentHeader);
166
+ break;
167
+ }
168
+ case 'comm_msg':
169
+ case 'comm_open':
170
+ case 'comm_close': {
171
+ this.handleComm(msg.type, msg.content, msg.metadata, msg.buffers, msg.parentHeader);
172
+ break;
173
+ }
174
+ }
175
+ }
176
+ /**
177
+ * Handle a kernel_info_request message
178
+ */
179
+ async kernelInfoRequest() {
180
+ const content = {
181
+ implementation: 'pyodide',
182
+ implementation_version: '0.1.0',
183
+ language_info: {
184
+ codemirror_mode: {
185
+ name: 'python',
186
+ version: 3,
187
+ },
188
+ file_extension: '.py',
189
+ mimetype: 'text/x-python',
190
+ name: 'python',
191
+ nbconvert_exporter: 'python',
192
+ pygments_lexer: 'ipython3',
193
+ version: '3.8',
194
+ },
195
+ protocol_version: '5.3',
196
+ status: 'ok',
197
+ banner: 'A WebAssembly-powered Python kernel backed by Pyodide',
198
+ help_links: [
199
+ {
200
+ text: 'Python (WASM) Kernel',
201
+ url: 'https://pyodide.org',
202
+ },
203
+ ],
204
+ };
205
+ return content;
206
+ }
207
+ /**
208
+ * Handle an `execute_request` message
209
+ *
210
+ * @param msg The parent message.
211
+ */
212
+ async executeRequest(content) {
213
+ await this.ready;
214
+ const result = await this._remoteKernel.execute(content, this.parent);
215
+ result.execution_count = this.executionCount;
216
+ return result;
217
+ }
218
+ /**
219
+ * Handle an complete_request message
220
+ *
221
+ * @param msg The parent message.
222
+ */
223
+ async completeRequest(content) {
224
+ return await this._remoteKernel.complete(content, this.parent);
225
+ }
226
+ /**
227
+ * Handle an `inspect_request` message.
228
+ *
229
+ * @param content - The content of the request.
230
+ *
231
+ * @returns A promise that resolves with the response message.
232
+ */
233
+ async inspectRequest(content) {
234
+ return await this._remoteKernel.inspect(content, this.parent);
235
+ }
236
+ /**
237
+ * Handle an `is_complete_request` message.
238
+ *
239
+ * @param content - The content of the request.
240
+ *
241
+ * @returns A promise that resolves with the response message.
242
+ */
243
+ async isCompleteRequest(content) {
244
+ return await this._remoteKernel.isComplete(content, this.parent);
245
+ }
246
+ /**
247
+ * Handle a `comm_info_request` message.
248
+ *
249
+ * @param content - The content of the request.
250
+ *
251
+ * @returns A promise that resolves with the response message.
252
+ */
253
+ async commInfoRequest(content) {
254
+ return await this._remoteKernel.commInfo(content, this.parent);
255
+ }
256
+ /**
257
+ * Send an `comm_open` message.
258
+ *
259
+ * @param msg - The comm_open message.
260
+ */
261
+ async commOpen(msg) {
262
+ return await this._remoteKernel.commOpen(msg, this.parent);
263
+ }
264
+ /**
265
+ * Send an `comm_msg` message.
266
+ *
267
+ * @param msg - The comm_msg message.
268
+ */
269
+ async commMsg(msg) {
270
+ return await this._remoteKernel.commMsg(msg, this.parent);
271
+ }
272
+ /**
273
+ * Send an `comm_close` message.
274
+ *
275
+ * @param close - The comm_close message.
276
+ */
277
+ async commClose(msg) {
278
+ return await this._remoteKernel.commClose(msg, this.parent);
279
+ }
280
+ /**
281
+ * Send an `input_reply` message.
282
+ *
283
+ * @param content - The content of the reply.
284
+ */
285
+ async inputReply(content) {
286
+ return await this._remoteKernel.inputReply(content, this.parent);
287
+ }
288
+ _contentsManager;
289
+ _contentsProcessor;
290
+ _worker;
291
+ _remoteKernel;
292
+ _ready = new PromiseDelegate();
293
+ }
294
+ //# sourceMappingURL=kernel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"kernel.js","sourceRoot":"","sources":["../../../../src/jupyter/lite/pyodide-kernel/kernel.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,YAAY,CAAC;AAEpC,OAAO,EAAU,IAAI,EAAE,MAAM,SAAS,CAAC;AAEvC,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAGnD,OAAO,EAAE,UAAU,EAAW,MAAM,qBAAqB,CAAC;AAI1D,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AACtD,OAAO,EACL,sBAAsB,GAGvB,MAAM,uBAAuB,CAAC;AAE/B;;GAEG;AACH,MAAM,OAAO,aAAc,SAAQ,UAAU;IAC3C;;;;OAIG;IACH,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,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;IACnE,CAAC;IAEO,gBAAgB,CAAoB;IACpC,kBAAkB,CAAqC;IACvD,OAAO,CAAS;IAChB,aAAa,CAEkB;IAC/B,MAAM,GAAG,IAAI,eAAe,EAAQ,CAAC;CAC9C"}
@@ -0,0 +1,128 @@
1
+ {
2
+ "ipykernel": {
3
+ "releases": {
4
+ "6.9.2": [
5
+ {
6
+ "comment_text": "",
7
+ "digests": {
8
+ "md5": "6417c37d13c80d514da1a003e9aab5f9",
9
+ "sha256": "d53285dbf2d9e7730a911ed3a1fe245b4747710930636c2fd000354c5614fbc9"
10
+ },
11
+ "downloads": -1,
12
+ "filename": "ipykernel-6.9.2-py3-none-any.whl",
13
+ "has_sig": false,
14
+ "md5_digest": "6417c37d13c80d514da1a003e9aab5f9",
15
+ "packagetype": "bdist_wheel",
16
+ "python_version": "py3",
17
+ "requires_python": ">=3.10",
18
+ "size": 2731,
19
+ "upload_time": "2025-01-15T14:41:51.279101Z",
20
+ "upload_time_iso_8601": "2025-01-15T14:41:51.279101Z",
21
+ "url": "./ipykernel-6.9.2-py3-none-any.whl",
22
+ "yanked": false,
23
+ "yanked_reason": null
24
+ }
25
+ ]
26
+ }
27
+ },
28
+ "piplite": {
29
+ "releases": {
30
+ "0.5.1": [
31
+ {
32
+ "comment_text": "",
33
+ "digests": {
34
+ "md5": "7175e3ccb0c891baf4e923cf80015e63",
35
+ "sha256": "c7c8c7ded720dc3a9f3346607d95f70cd490cb0b27c6a67918e0cfadb5c50315"
36
+ },
37
+ "downloads": -1,
38
+ "filename": "piplite-0.5.1-py3-none-any.whl",
39
+ "has_sig": false,
40
+ "md5_digest": "7175e3ccb0c891baf4e923cf80015e63",
41
+ "packagetype": "bdist_wheel",
42
+ "python_version": "py3",
43
+ "requires_python": "<3.12,>=3.11",
44
+ "size": 7233,
45
+ "upload_time": "2025-01-15T14:41:51.279101Z",
46
+ "upload_time_iso_8601": "2025-01-15T14:41:51.279101Z",
47
+ "url": "./piplite-0.5.1-py3-none-any.whl",
48
+ "yanked": false,
49
+ "yanked_reason": null
50
+ }
51
+ ]
52
+ }
53
+ },
54
+ "pyodide-kernel": {
55
+ "releases": {
56
+ "0.5.1": [
57
+ {
58
+ "comment_text": "",
59
+ "digests": {
60
+ "md5": "0924a59fd3622b8307d05f7212c998e1",
61
+ "sha256": "0d556c201e155c19ddb3da7cc6b6cf2b18daeeb399f2978cf3c206ba42ccfacc"
62
+ },
63
+ "downloads": -1,
64
+ "filename": "pyodide_kernel-0.5.1-py3-none-any.whl",
65
+ "has_sig": false,
66
+ "md5_digest": "0924a59fd3622b8307d05f7212c998e1",
67
+ "packagetype": "bdist_wheel",
68
+ "python_version": "py3",
69
+ "requires_python": "<3.12,>=3.11",
70
+ "size": 11009,
71
+ "upload_time": "2025-01-15T14:41:51.279101Z",
72
+ "upload_time_iso_8601": "2025-01-15T14:41:51.279101Z",
73
+ "url": "./pyodide_kernel-0.5.1-py3-none-any.whl",
74
+ "yanked": false,
75
+ "yanked_reason": null
76
+ }
77
+ ]
78
+ }
79
+ },
80
+ "widgetsnbextension": {
81
+ "releases": {
82
+ "3.6.999": [
83
+ {
84
+ "comment_text": "",
85
+ "digests": {
86
+ "md5": "efee63dd8d36b7e56253c27614a55ec1",
87
+ "sha256": "9fbb27700eb35a49469b9c8c51e9ba434348372d07d7c6063839dd4462b27e97"
88
+ },
89
+ "downloads": -1,
90
+ "filename": "widgetsnbextension-3.6.999-py3-none-any.whl",
91
+ "has_sig": false,
92
+ "md5_digest": "efee63dd8d36b7e56253c27614a55ec1",
93
+ "packagetype": "bdist_wheel",
94
+ "python_version": "py3",
95
+ "requires_python": "<3.12,>=3.11",
96
+ "size": 2369,
97
+ "upload_time": "2025-01-15T14:41:51.280101Z",
98
+ "upload_time_iso_8601": "2025-01-15T14:41:51.280101Z",
99
+ "url": "./widgetsnbextension-3.6.999-py3-none-any.whl",
100
+ "yanked": false,
101
+ "yanked_reason": null
102
+ }
103
+ ],
104
+ "4.0.999": [
105
+ {
106
+ "comment_text": "",
107
+ "digests": {
108
+ "md5": "d8db7256127c579c6f6f93973fa134fc",
109
+ "sha256": "d603779885ca57bfaeca1099bf9f69d82cd58f616a9a40c8756bc457874d0fa5"
110
+ },
111
+ "downloads": -1,
112
+ "filename": "widgetsnbextension-4.0.999-py3-none-any.whl",
113
+ "has_sig": false,
114
+ "md5_digest": "d8db7256127c579c6f6f93973fa134fc",
115
+ "packagetype": "bdist_wheel",
116
+ "python_version": "py3",
117
+ "requires_python": "<3.12,>=3.11",
118
+ "size": 2370,
119
+ "upload_time": "2025-01-15T14:41:51.280101Z",
120
+ "upload_time_iso_8601": "2025-01-15T14:41:51.280101Z",
121
+ "url": "./widgetsnbextension-4.0.999-py3-none-any.whl",
122
+ "yanked": false,
123
+ "yanked_reason": null
124
+ }
125
+ ]
126
+ }
127
+ }
128
+ }
@@ -0,0 +1,128 @@
1
+ {
2
+ "ipykernel": {
3
+ "releases": {
4
+ "6.9.2": [
5
+ {
6
+ "comment_text": "",
7
+ "digests": {
8
+ "md5": "6417c37d13c80d514da1a003e9aab5f9",
9
+ "sha256": "d53285dbf2d9e7730a911ed3a1fe245b4747710930636c2fd000354c5614fbc9"
10
+ },
11
+ "downloads": -1,
12
+ "filename": "ipykernel-6.9.2-py3-none-any.whl",
13
+ "has_sig": false,
14
+ "md5_digest": "6417c37d13c80d514da1a003e9aab5f9",
15
+ "packagetype": "bdist_wheel",
16
+ "python_version": "py3",
17
+ "requires_python": ">=3.10",
18
+ "size": 2731,
19
+ "upload_time": "2025-01-15T14:41:51.279101Z",
20
+ "upload_time_iso_8601": "2025-01-15T14:41:51.279101Z",
21
+ "url": "https://assets.datalayer.tech/pypi/ipykernel-6.9.2-py3-none-any.whl",
22
+ "yanked": false,
23
+ "yanked_reason": null
24
+ }
25
+ ]
26
+ }
27
+ },
28
+ "piplite": {
29
+ "releases": {
30
+ "0.5.1": [
31
+ {
32
+ "comment_text": "",
33
+ "digests": {
34
+ "md5": "7175e3ccb0c891baf4e923cf80015e63",
35
+ "sha256": "c7c8c7ded720dc3a9f3346607d95f70cd490cb0b27c6a67918e0cfadb5c50315"
36
+ },
37
+ "downloads": -1,
38
+ "filename": "piplite-0.5.1-py3-none-any.whl",
39
+ "has_sig": false,
40
+ "md5_digest": "7175e3ccb0c891baf4e923cf80015e63",
41
+ "packagetype": "bdist_wheel",
42
+ "python_version": "py3",
43
+ "requires_python": "<3.12,>=3.11",
44
+ "size": 7233,
45
+ "upload_time": "2025-01-15T14:41:51.279101Z",
46
+ "upload_time_iso_8601": "2025-01-15T14:41:51.279101Z",
47
+ "url": "https://assets.datalayer.tech/pypi/piplite-0.5.1-py3-none-any.whl",
48
+ "yanked": false,
49
+ "yanked_reason": null
50
+ }
51
+ ]
52
+ }
53
+ },
54
+ "pyodide-kernel": {
55
+ "releases": {
56
+ "0.5.1": [
57
+ {
58
+ "comment_text": "",
59
+ "digests": {
60
+ "md5": "0924a59fd3622b8307d05f7212c998e1",
61
+ "sha256": "0d556c201e155c19ddb3da7cc6b6cf2b18daeeb399f2978cf3c206ba42ccfacc"
62
+ },
63
+ "downloads": -1,
64
+ "filename": "pyodide_kernel-0.5.1-py3-none-any.whl",
65
+ "has_sig": false,
66
+ "md5_digest": "0924a59fd3622b8307d05f7212c998e1",
67
+ "packagetype": "bdist_wheel",
68
+ "python_version": "py3",
69
+ "requires_python": "<3.12,>=3.11",
70
+ "size": 11009,
71
+ "upload_time": "2025-01-15T14:41:51.279101Z",
72
+ "upload_time_iso_8601": "2025-01-15T14:41:51.279101Z",
73
+ "url": "https://assets.datalayer.tech/pypi/pyodide_kernel-0.5.1-py3-none-any.whl",
74
+ "yanked": false,
75
+ "yanked_reason": null
76
+ }
77
+ ]
78
+ }
79
+ },
80
+ "widgetsnbextension": {
81
+ "releases": {
82
+ "3.6.999": [
83
+ {
84
+ "comment_text": "",
85
+ "digests": {
86
+ "md5": "efee63dd8d36b7e56253c27614a55ec1",
87
+ "sha256": "9fbb27700eb35a49469b9c8c51e9ba434348372d07d7c6063839dd4462b27e97"
88
+ },
89
+ "downloads": -1,
90
+ "filename": "widgetsnbextension-3.6.999-py3-none-any.whl",
91
+ "has_sig": false,
92
+ "md5_digest": "efee63dd8d36b7e56253c27614a55ec1",
93
+ "packagetype": "bdist_wheel",
94
+ "python_version": "py3",
95
+ "requires_python": "<3.12,>=3.11",
96
+ "size": 2369,
97
+ "upload_time": "2025-01-15T14:41:51.280101Z",
98
+ "upload_time_iso_8601": "2025-01-15T14:41:51.280101Z",
99
+ "url": "https://assets.datalayer.tech/pypi/widgetsnbextension-3.6.999-py3-none-any.whl",
100
+ "yanked": false,
101
+ "yanked_reason": null
102
+ }
103
+ ],
104
+ "4.0.999": [
105
+ {
106
+ "comment_text": "",
107
+ "digests": {
108
+ "md5": "d8db7256127c579c6f6f93973fa134fc",
109
+ "sha256": "d603779885ca57bfaeca1099bf9f69d82cd58f616a9a40c8756bc457874d0fa5"
110
+ },
111
+ "downloads": -1,
112
+ "filename": "widgetsnbextension-4.0.999-py3-none-any.whl",
113
+ "has_sig": false,
114
+ "md5_digest": "d8db7256127c579c6f6f93973fa134fc",
115
+ "packagetype": "bdist_wheel",
116
+ "python_version": "py3",
117
+ "requires_python": "<3.12,>=3.11",
118
+ "size": 2370,
119
+ "upload_time": "2025-01-15T14:41:51.280101Z",
120
+ "upload_time_iso_8601": "2025-01-15T14:41:51.280101Z",
121
+ "url": "https://assets.datalayer.tech/pypi/widgetsnbextension-4.0.999-py3-none-any.whl",
122
+ "yanked": false,
123
+ "yanked_reason": null
124
+ }
125
+ ]
126
+ }
127
+ }
128
+ }
@@ -0,0 +1,113 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema",
3
+ "$id": "https://jupyterlite-pyodide-kernel.readthedocs.org/en/latest/reference/schema/piplite-v0.html#",
4
+ "title": "PipLite Schema v0",
5
+ "description": "a schema for the warehouse-like API index",
6
+ "$ref": "#/definitions/top",
7
+ "definitions": {
8
+ "top": {
9
+ "type": "object",
10
+ "patternProperties": {
11
+ ".*": {
12
+ "$ref": "#/definitions/a-piplite-project"
13
+ }
14
+ }
15
+ },
16
+ "a-piplite-project": {
17
+ "type": "object",
18
+ "description": "a piplite-installable project, with one or more historical releases",
19
+ "properties": {
20
+ "releases": {
21
+ "patternProperties": {
22
+ ".*": {
23
+ "type": "array",
24
+ "items": {
25
+ "$ref": "#/definitions/a-piplite-distribution"
26
+ }
27
+ }
28
+ }
29
+ }
30
+ }
31
+ },
32
+ "a-piplite-distribution": {
33
+ "type": "object",
34
+ "properties": {
35
+ "comment_text": {
36
+ "type": "string"
37
+ },
38
+ "digests": {
39
+ "type": "object",
40
+ "properties": {
41
+ "md5": {
42
+ "$ref": "#/definitions/an-md5-digest"
43
+ },
44
+ "sha256": {
45
+ "$ref": "#/definitions/a-sha256-digest"
46
+ }
47
+ }
48
+ },
49
+ "downloads": {
50
+ "type": "number"
51
+ },
52
+ "filename": {
53
+ "type": "string"
54
+ },
55
+ "has_sig": {
56
+ "type": "boolean"
57
+ },
58
+ "md5_digest": {
59
+ "$ref": "#/definitions/an-md5-digest"
60
+ },
61
+ "packagetype": {
62
+ "type": "string",
63
+ "enum": ["bdist_wheel"]
64
+ },
65
+ "python_version": {
66
+ "type": "string"
67
+ },
68
+ "requires_python": {
69
+ "$ref": "#/definitions/string-or-null"
70
+ },
71
+ "size": {
72
+ "type": "number"
73
+ },
74
+ "upload_time": {
75
+ "type": "string",
76
+ "format": "date-time"
77
+ },
78
+ "upload_time_iso_8601": {
79
+ "type": "string",
80
+ "format": "date-time"
81
+ },
82
+ "url": {
83
+ "type": "string",
84
+ "format": "uri"
85
+ },
86
+ "yanked": {
87
+ "type": "boolean"
88
+ },
89
+ "yanked_reason": {
90
+ "$ref": "#/definitions/string-or-null"
91
+ }
92
+ }
93
+ },
94
+ "string-or-null": {
95
+ "anyOf": [
96
+ {
97
+ "type": "string"
98
+ },
99
+ {
100
+ "type": "null"
101
+ }
102
+ ]
103
+ },
104
+ "an-md5-digest": {
105
+ "type": "string",
106
+ "pattern": "[a-f0-9]{32}"
107
+ },
108
+ "a-sha256-digest": {
109
+ "type": "string",
110
+ "pattern": "[a-f0-9]{64}"
111
+ }
112
+ }
113
+ }