kernmini
Everything a Jupyter kernel needs except the language.
kernmini is a Rust engine for Jupyter kernels. It owns ZMTP transport, signed Jupyter messages, shell and control routing, IOPub, stdin, heartbeat, execution queues, interrupts, JEP 91 subshells, debugging transport, and process lifecycle. A language supplies execution, completion, inspection, history, and kernel metadata through a small adapter.
ipymini is the reference Python kernel. It uses IPython for Python semantics and kernmini for the kernel protocol.
A complete Python kernel
import sys
from kernmini import run_kernel
class EchoShell:
def __init__(self):
self.execution_count = 0
self.stream = None
def set_stream_sender(self, sender): self.stream = sender
def kernel_info(self):
return dict(implementation="echo", implementation_version="0.1", banner="echo",
language_info=dict(name="echo", version="0.1", mimetype="text/plain", file_extension=".txt"))
async def execute(self, code, **kwargs):
self.execution_count += 1
if self.stream: self.stream("stdout", f"echo: {code}\n")
return dict(execution_count=self.execution_count, result={"text/plain": code.upper()})
run_kernel(sys.argv[-1], EchoShell, own_process_group=True)
run_kernel creates a persistent asyncio event loop and runs the Rust engine until shutdown. It uses loopmini when installed and the standard asyncio loop otherwise; loop_factory= can select one explicitly. The factory is also used to create independent language sessions for JEP 91 subshells. Standalone executables can request process-group ownership, while embedded kernels leave their host process group unchanged by default.
Rust language implementations use the Language and LanguageSession traits directly. ExecutionContext provides stream, display, stdin, interrupt, and subshell routing without exposing Jupyter transport details.
DapClient is the optional language-neutral debugger transport: framed TCP, request correlation, timeouts, asynchronous events, and shutdown. Language adapters retain debugger startup, request policy, source mapping, and variable semantics.
install_kernelspec(name, argv, display_name, language) and install_kernelspec_dir(path, name) install kernelspecs without requiring jupyter_client.
Install
pip install kernmini
Release files for kernmini 0.1.12
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| kernmini-0.1.12.tar.gz | 38.0 kB | Details |
Built distributions (wheels)
Total release size: 11.0 MB
Release files / kernmini-0.1.12.tar.gz
| Download URL | kernmini-0.1.12.tar.gz |
|---|---|
| Size | 38.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
515ee36e006e9e5541d8b374e399f40357dd70cbbeb050013171cdfe59f84dc6
|
|
BLAKE2b-256 checksum How to use checksums |
fd6ef876c1b6d89ea5a022339d729a313c871cb082bbd1b33d14df3be7a173ce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 2, 2026.
Transparency logRelease files / kernmini-0.1.12-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | kernmini-0.1.12-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 943.9 kB |
| Tags | CPython 3.14 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
200eb881cffebea98316f2d76a4dddc9efaf9a5ddacbe6fffad4a9ca6449918d
|
|
BLAKE2b-256 checksum How to use checksums |
a0c53fda99abdf24faa6c9df7d2ad3b9fea64d5b458414e2607da887cf756a10
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 2, 2026.
Transparency logRelease files / kernmini-0.1.12-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | kernmini-0.1.12-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 928.7 kB |
| Tags | CPython 3.14 Linux glibc 2.17+ ARM64 |
|
SHA-256 checksum How to use checksums |
ff4fe4da3825656b64dfff192b439aaab449a8b46010e1060a5ad75114cb7ca6
|
|
BLAKE2b-256 checksum How to use checksums |
96122798980f18493e30b735da1b9e86522fa164372ce3db46d295e3c56f7769
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 2, 2026.
Transparency logRelease files / kernmini-0.1.12-cp314-cp314-macosx_11_0_arm64.whl
| Download URL | kernmini-0.1.12-cp314-cp314-macosx_11_0_arm64.whl |
|---|---|
| Size | 861.5 kB |
| Tags | CPython 3.14 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
d6ea03b863ef062994f49251e7d5601ddc6536fc6d92bee2318baa915c189a90
|
|
BLAKE2b-256 checksum How to use checksums |
83e5b369f9a32104274344021b14b501dfa8a1eec90e6dae4174a8b45291c41c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 2, 2026.
Transparency logRelease files / kernmini-0.1.12-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | kernmini-0.1.12-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 944.5 kB |
| Tags | CPython 3.13 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
77be24f33f8cad2630df53666ac8287163f3d254f3e3e47580154ba6185a1889
|
|
BLAKE2b-256 checksum How to use checksums |
285d41405ce884171a743d00ca8757b51861ce5847133278c690d677e5899fb1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 2, 2026.
Transparency logRelease files / kernmini-0.1.12-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | kernmini-0.1.12-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 928.8 kB |
| Tags | CPython 3.13 Linux glibc 2.17+ ARM64 |
|
SHA-256 checksum How to use checksums |
0700214726924d129fc7e6c216439bc7c3095ef3019d09e6d9c24afdbb88d48f
|
|
BLAKE2b-256 checksum How to use checksums |
44baf416816e4e01b598c4d4b2914e401706e4ce26e107a93b8c55508046b7b7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 2, 2026.
Transparency logRelease files / kernmini-0.1.12-cp313-cp313-macosx_11_0_arm64.whl
| Download URL | kernmini-0.1.12-cp313-cp313-macosx_11_0_arm64.whl |
|---|---|
| Size | 861.9 kB |
| Tags | CPython 3.13 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
bc410ed25b25c391149a7bf18f27137f72b8ed5a17c93097fbec9d7dc089bb9a
|
|
BLAKE2b-256 checksum How to use checksums |
f54f54b4d0ad49156d0d677bbaf3516c3c58fb6c53d2bac719c9155f6ed55c8b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 2, 2026.
Transparency logRelease files / kernmini-0.1.12-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | kernmini-0.1.12-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 941.1 kB |
| Tags | CPython 3.12 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
0bdddaa46cba3060509e13ef9e470663ad127b3c0b240ce65d72546d55386220
|
|
BLAKE2b-256 checksum How to use checksums |
c144e2a0e0744bb41046711befc77d57b0ea6ad7a9629bc8802a60baf284c46a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 2, 2026.
Transparency logRelease files / kernmini-0.1.12-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | kernmini-0.1.12-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 926.3 kB |
| Tags | CPython 3.12 Linux glibc 2.17+ ARM64 |
|
SHA-256 checksum How to use checksums |
195533a8415c75b965d79ab8ca67157d56b201c731f98b558f4e2725954b08ea
|
|
BLAKE2b-256 checksum How to use checksums |
83d2b4cf07eee03d496deaf9522d99fc41b3da83bcd91d47cf57676ddb45001b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 2, 2026.
Transparency logRelease files / kernmini-0.1.12-cp312-cp312-macosx_11_0_arm64.whl
| Download URL | kernmini-0.1.12-cp312-cp312-macosx_11_0_arm64.whl |
|---|---|
| Size | 860.1 kB |
| Tags | CPython 3.12 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
5f73a17e24bc1550c80d1888c567374f02a23616f258abfc4828391500ec84e6
|
|
BLAKE2b-256 checksum How to use checksums |
e4a449bfd8103ced3029197c9e9955c78fe3839d0ba4b1896ba88f5622f67c8b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 2, 2026.
Transparency logRelease files / kernmini-0.1.12-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | kernmini-0.1.12-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 944.0 kB |
| Tags | CPython 3.11 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
341c3ea7018e427bbdc7df1278580cf957700973b44aead195cb8536b1484512
|
|
BLAKE2b-256 checksum How to use checksums |
73e150062ab4506b9bc8bb072d553db3fd756935166b8bea39c77f75cbf28cd6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 2, 2026.
Transparency logRelease files / kernmini-0.1.12-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | kernmini-0.1.12-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 930.0 kB |
| Tags | CPython 3.11 Linux glibc 2.17+ ARM64 |
|
SHA-256 checksum How to use checksums |
1c9cd979422bea6b53d7c07e0e90b6dd1055b31f67dad3170543d653c0116343
|
|
BLAKE2b-256 checksum How to use checksums |
9566f006d937fe938798cbba7aeff6ac3573453a95a0fead5019642d830a4030
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 2, 2026.
Transparency logRelease files / kernmini-0.1.12-cp311-cp311-macosx_11_0_arm64.whl
| Download URL | kernmini-0.1.12-cp311-cp311-macosx_11_0_arm64.whl |
|---|---|
| Size | 863.2 kB |
| Tags | CPython 3.11 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
a9d0afb2274e412ad119929798553c070fe821898d594f3aef94dc1af8bb1577
|
|
BLAKE2b-256 checksum How to use checksums |
9db0d9e6432d700d4a3135c9cf80f43749cb3d657da3f969f7140b19511c99ae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 2, 2026.
Transparency log