Skip to main content

Python toolkit for Jupyter runtimes, powered by runtimed Rust binaries

Project description

runtimed

Python bindings for the runtimed notebook daemon. Execute code, manage kernels, and interact with notebooks programmatically.

Installation

pip install runtimed

Quick Start

Synchronous API

import runtimed

with runtimed.Session() as session:
    session.start_kernel()
    result = session.run("print('hello')")
    print(result.stdout)  # "hello\n"

Async API

import asyncio
import runtimed

async def main():
    async with runtimed.AsyncSession() as session:
        await session.start_kernel()
        result = await session.run("print('hello async')")
        print(result.stdout)

asyncio.run(main())

Features

  • Code execution via daemon-managed kernels
  • Sync and async APIs for flexibility
  • Document-first model with automerge sync
  • Multi-client support for shared notebooks
  • Rich output capture (stdout, stderr, display_data, errors)

Session API

session = runtimed.Session(notebook_id="my-notebook")
session.start_kernel()

# Simple execution
result = session.run("x = 42")

# Document-first pattern (for fine-grained control)
cell_id = session.create_cell("print(x)")
result = session.execute_cell(cell_id)

# Inspect results
print(result.success)
print(result.stdout)
print(result.error)

AsyncSession API

async with runtimed.AsyncSession(notebook_id="my-notebook") as session:
    await session.start_kernel()
    result = await session.run("x = 42")

    # Or document-first pattern
    cell_id = await session.create_cell("print(x)")
    result = await session.execute_cell(cell_id)

DaemonClient API

client = runtimed.DaemonClient()
client.ping()        # Health check
client.status()      # Pool statistics
client.list_rooms()  # Active notebooks

Requirements

  • runtimed daemon running (runt daemon start)
  • Python 3.9+

Documentation

See docs/python-bindings.md for full documentation.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

runtimed-0.1.5a20260301-cp39-abi3-win_amd64.whl (1.9 MB view details)

Uploaded CPython 3.9+Windows x86-64

runtimed-0.1.5a20260301-cp39-abi3-manylinux_2_39_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.9+manylinux: glibc 2.39+ x86-64

runtimed-0.1.5a20260301-cp39-abi3-macosx_11_0_arm64.whl (1.8 MB view details)

Uploaded CPython 3.9+macOS 11.0+ ARM64

runtimed-0.1.5a20260301-cp39-abi3-macosx_10_12_x86_64.whl (1.9 MB view details)

Uploaded CPython 3.9+macOS 10.12+ x86-64

File details

Details for the file runtimed-0.1.5a20260301-cp39-abi3-win_amd64.whl.

File metadata

  • Download URL: runtimed-0.1.5a20260301-cp39-abi3-win_amd64.whl
  • Upload date:
  • Size: 1.9 MB
  • Tags: CPython 3.9+, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.7 {"installer":{"name":"uv","version":"0.10.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for runtimed-0.1.5a20260301-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 3b8b254602990e8a4d9aecfa67c0279d35850a158a31d5ab7cfeef9b8d7be356
MD5 26537207bb36147743e27a8aea720b15
BLAKE2b-256 15ca8772b44bcdf4e56b160fa440369547b52ae2241706f06db0f8c261a5f676

See more details on using hashes here.

File details

Details for the file runtimed-0.1.5a20260301-cp39-abi3-manylinux_2_39_x86_64.whl.

File metadata

  • Download URL: runtimed-0.1.5a20260301-cp39-abi3-manylinux_2_39_x86_64.whl
  • Upload date:
  • Size: 2.1 MB
  • Tags: CPython 3.9+, manylinux: glibc 2.39+ x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.7 {"installer":{"name":"uv","version":"0.10.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for runtimed-0.1.5a20260301-cp39-abi3-manylinux_2_39_x86_64.whl
Algorithm Hash digest
SHA256 33a9da580cdd62e96f3d3082b7c6e15a0e90028ef5b60ebcf10ecd5f2e83bedf
MD5 445a9623ddcf181655b2a4c5cf250f77
BLAKE2b-256 87732b9ea6d31149a152259f52258708a3c6a2b57b1b832a95fb47ed69ab00d5

See more details on using hashes here.

File details

Details for the file runtimed-0.1.5a20260301-cp39-abi3-macosx_11_0_arm64.whl.

File metadata

  • Download URL: runtimed-0.1.5a20260301-cp39-abi3-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 1.8 MB
  • Tags: CPython 3.9+, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.7 {"installer":{"name":"uv","version":"0.10.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for runtimed-0.1.5a20260301-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a7b9556c4876bdab75cd3477d811983c5e134c36c977ac7f4f96df5fd1334986
MD5 ffbfd456b766238ee8c50e6396b60028
BLAKE2b-256 ead1db477033085d9fe1f907ea8d9821d1997bcd986abc7d41add55455e3ffc6

See more details on using hashes here.

File details

Details for the file runtimed-0.1.5a20260301-cp39-abi3-macosx_10_12_x86_64.whl.

File metadata

  • Download URL: runtimed-0.1.5a20260301-cp39-abi3-macosx_10_12_x86_64.whl
  • Upload date:
  • Size: 1.9 MB
  • Tags: CPython 3.9+, macOS 10.12+ x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.7 {"installer":{"name":"uv","version":"0.10.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for runtimed-0.1.5a20260301-cp39-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 66095c4f2a95ce0d2547d8bfac523465f8419c2723741566622586bd160596f7
MD5 81c56b0c3843f557a21f8d764fa964ed
BLAKE2b-256 2eae4e2d3f8ea8f1ce459df8deaba397ddf9707b2b09fc349bad9458ff23a061

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page