Skip to main content

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.

ThreadWorker lets async adapters call a synchronous interpreter on a dedicated thread. Its factory creates the interpreter there, call awaits a closure's result, and shutdown waits for destruction on the same thread. The interpreter need not be Send; the adapter supplies a thread builder for its name and stack size. Language traits stay async.

Output queues are bounded and apply backpressure rather than silently dropping messages. The output pump batches adjacent same-stream writes without a timer. A slow direct IOPub subscriber can slow execution.

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.15

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kernmini 0.1.15
File Size Uploaded
kernmini-0.1.15.tar.gz 39.3 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for kernmini 0.1.15
File
kernmini-0.1.15-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.17+ x86-64 Details
kernmini-0.1.15-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.14 CPython 3.14 Linux glibc 2.17+ ARM64 Details
kernmini-0.1.15-cp314-cp314-macosx_11_0_arm64.whl CPython 3.14 CPython 3.14 macOS 11.0+ ARM64 Details
kernmini-0.1.15-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.17+ x86-64 Details
kernmini-0.1.15-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.13 CPython 3.13 Linux glibc 2.17+ ARM64 Details
kernmini-0.1.15-cp313-cp313-macosx_11_0_arm64.whl CPython 3.13 CPython 3.13 macOS 11.0+ ARM64 Details
kernmini-0.1.15-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.17+ x86-64 Details
kernmini-0.1.15-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.12 CPython 3.12 Linux glibc 2.17+ ARM64 Details
kernmini-0.1.15-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details
kernmini-0.1.15-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ x86-64 Details
kernmini-0.1.15-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ ARM64 Details
kernmini-0.1.15-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details

Total release size: 11.0 MB

Release files / kernmini-0.1.15.tar.gz

Download URL kernmini-0.1.15.tar.gz
Size 39.3 kB
Tags Source
SHA-256 checksum
How to use checksums
dbeb7f4032937490bb08613f2d869d8ec7ced5aeaede38f1d230d03c6efb8c64
BLAKE2b-256 checksum
How to use checksums
6c8d0605c39665fc03e5f56080645df0ba358053bb8a865666d82e9794445c26
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 19, 2026.

Transparency log

Release files / kernmini-0.1.15-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL kernmini-0.1.15-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 948.4 kB
Tags CPython 3.14 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
0373346e8979a349171ec1894895ae472d33e028dffca53d06067e486b3e7cc6
BLAKE2b-256 checksum
How to use checksums
2c7d279417174c219f266b73ea28d3e4fe0dcedfb91363237f11c80cd8038574
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 19, 2026.

Transparency log

Release files / kernmini-0.1.15-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL kernmini-0.1.15-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 932.0 kB
Tags CPython 3.14 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
d3ad916aa6f0abe297175af9528c7674f35ad0e9ecf992b06f8ca38cf0cc6afa
BLAKE2b-256 checksum
How to use checksums
537e56635203dda34e07f1797bf0aad69441c61a51e0afa0382fe3bb6d382a8e
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 19, 2026.

Transparency log

Release files / kernmini-0.1.15-cp314-cp314-macosx_11_0_arm64.whl

Download URL kernmini-0.1.15-cp314-cp314-macosx_11_0_arm64.whl
Size 866.0 kB
Tags CPython 3.14 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
5396fd954beac503e6111c063d25afdca42eef57c283c20623aacb356973c624
BLAKE2b-256 checksum
How to use checksums
3e46355ead045aff4a8aa5b2bf16a22c421e87499f6a6d0936268dd7e2f77b2e
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 19, 2026.

Transparency log

Release files / kernmini-0.1.15-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL kernmini-0.1.15-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 949.0 kB
Tags CPython 3.13 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
91c45e615cab8f9e4987b8a5e87309010129eceda5b6256c86cafc1b54a7e435
BLAKE2b-256 checksum
How to use checksums
8b4820e17ceb92d2fe5f04eb4628c656cae2733d48e9b07ec50e451592ea662a
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 19, 2026.

Transparency log

Release files / kernmini-0.1.15-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL kernmini-0.1.15-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 932.3 kB
Tags CPython 3.13 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
7e2e72bfc60de3adf0e895c965e1d0b27791e081740fa8c51eb756a248bc0870
BLAKE2b-256 checksum
How to use checksums
3fef416eef23ae5b0afedf6da85df4259fbec8329978338d49fa3309237d9629
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 19, 2026.

Transparency log

Release files / kernmini-0.1.15-cp313-cp313-macosx_11_0_arm64.whl

Download URL kernmini-0.1.15-cp313-cp313-macosx_11_0_arm64.whl
Size 866.1 kB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
8b00686b48c0f0152015565968f036de0e7d9959b5cf09c8f9a5e7a1735d22e5
BLAKE2b-256 checksum
How to use checksums
fdc588d161e720c0fd3e31be01806e39bc69c79dd8477338a3449b5f2f356958
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 19, 2026.

Transparency log

Release files / kernmini-0.1.15-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL kernmini-0.1.15-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 946.0 kB
Tags CPython 3.12 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
536dcc15789f7e3e29434b32ee81fd957ccdce32826a04f021659ed2de51ff22
BLAKE2b-256 checksum
How to use checksums
2a7c1aeb0f956f543ee315bf0b2ca833337a45f33b8123a443e5e0bac78f6354
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 19, 2026.

Transparency log

Release files / kernmini-0.1.15-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL kernmini-0.1.15-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 930.0 kB
Tags CPython 3.12 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
860c1e4894e5a6dae2a01eb0edaaf556d652e368d7854a900e23beccd4db7364
BLAKE2b-256 checksum
How to use checksums
1f8ea1a545a537075d3cd7b314d3e400578859b95e9971366a9592d419b9a357
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 19, 2026.

Transparency log

Release files / kernmini-0.1.15-cp312-cp312-macosx_11_0_arm64.whl

Download URL kernmini-0.1.15-cp312-cp312-macosx_11_0_arm64.whl
Size 864.9 kB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
be7af7736ffcd23b25204e5418ff4e97847c94dddc36ee0947973dea842f8bfa
BLAKE2b-256 checksum
How to use checksums
b1e13197676a307edff6bc5fd271463d9f5b235c662182d7cbdf2cccb32ae531
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 19, 2026.

Transparency log

Release files / kernmini-0.1.15-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL kernmini-0.1.15-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 948.7 kB
Tags CPython 3.11 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
dabd8a24c3d5e8f76cfdf34c21aee4cc9b103d62af96a4f0c329bedbad82c98d
BLAKE2b-256 checksum
How to use checksums
b1e42abbd9601e59ecaf7553a6545e1ec25992d78af018c07906abbe2c650f59
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 19, 2026.

Transparency log

Release files / kernmini-0.1.15-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL kernmini-0.1.15-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 933.4 kB
Tags CPython 3.11 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
e02091615195ac5feaffafccdf53e53f296cdf0855b12188a1c60921b811fe44
BLAKE2b-256 checksum
How to use checksums
9445a03f9e9a5df9c0f9df68869233d2441f36e2014a0094052dada391f7532c
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 19, 2026.

Transparency log

Release files / kernmini-0.1.15-cp311-cp311-macosx_11_0_arm64.whl

Download URL kernmini-0.1.15-cp311-cp311-macosx_11_0_arm64.whl
Size 870.1 kB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
f533b6264110784f67672f690a5595ef8fdf2616a70cb8241f037e6b566b9101
BLAKE2b-256 checksum
How to use checksums
44b5538b87dff0cb959feabe23372be410a938e239b22f56d163604438a3c592
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 19, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.15 This release

13 release files

0.1.9

13 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page