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.4.dev20260301-cp314-cp314-macosx_11_0_arm64.whl (1.8 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

runtimed-0.1.4.dev20260301-cp314-cp314-macosx_10_12_x86_64.whl (1.9 MB view details)

Uploaded CPython 3.14macOS 10.12+ x86-64

runtimed-0.1.4.dev20260301-cp312-cp312-win_amd64.whl (1.9 MB view details)

Uploaded CPython 3.12Windows x86-64

runtimed-0.1.4.dev20260301-cp312-cp312-manylinux_2_39_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.39+ x86-64

runtimed-0.1.4.dev20260301-cp39-abi3-win_amd64.whl (1.9 MB view details)

Uploaded CPython 3.9+Windows x86-64

runtimed-0.1.4.dev20260301-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.4.dev20260301-cp39-abi3-macosx_11_0_arm64.whl (1.8 MB view details)

Uploaded CPython 3.9+macOS 11.0+ ARM64

runtimed-0.1.4.dev20260301-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.4.dev20260301-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

  • Download URL: runtimed-0.1.4.dev20260301-cp314-cp314-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 1.8 MB
  • Tags: CPython 3.14, 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.4.dev20260301-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f1315e980b0795689fc12bac1b441a5c08912a25bad22fe3e18f93c248c380cb
MD5 2d0e08acf2da2572218f17493814500c
BLAKE2b-256 39023c1592024bc7c4885fa3ca4123e3160e3783f6356eaee125a36c8552553f

See more details on using hashes here.

File details

Details for the file runtimed-0.1.4.dev20260301-cp314-cp314-macosx_10_12_x86_64.whl.

File metadata

  • Download URL: runtimed-0.1.4.dev20260301-cp314-cp314-macosx_10_12_x86_64.whl
  • Upload date:
  • Size: 1.9 MB
  • Tags: CPython 3.14, 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.4.dev20260301-cp314-cp314-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 ca747ee3f1d351a506e4903c35ba68059a26dab42858feb5fdea74d745314bf0
MD5 d1c8017758c91fd98674d16ba0b33635
BLAKE2b-256 5d7b6220c71ddc76da09e59654fac7452146f9713501cc240218760d75a0243b

See more details on using hashes here.

File details

Details for the file runtimed-0.1.4.dev20260301-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: runtimed-0.1.4.dev20260301-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 1.9 MB
  • Tags: CPython 3.12, 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.4.dev20260301-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 1a3100e4b24fa1db46c5ace040ed39555adfd5b96a20b2605fabb061d65d1817
MD5 1c9491b33eef25d3c5a4cf91fe30b1a5
BLAKE2b-256 d742624cb4a2f999dd9cee5f542b584a2994ec9bd52472e3739a35ca89b69567

See more details on using hashes here.

File details

Details for the file runtimed-0.1.4.dev20260301-cp312-cp312-manylinux_2_39_x86_64.whl.

File metadata

  • Download URL: runtimed-0.1.4.dev20260301-cp312-cp312-manylinux_2_39_x86_64.whl
  • Upload date:
  • Size: 2.1 MB
  • Tags: CPython 3.12, 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.4.dev20260301-cp312-cp312-manylinux_2_39_x86_64.whl
Algorithm Hash digest
SHA256 2e3f41f9352785d797f46fa480207b0cd97e82a542fe864fa9e4b278c8db0dd6
MD5 4aeec4d7cc76ed7a3eddbe4100368167
BLAKE2b-256 6f433c22e02b98cec31108685f5e9ce14ce720eb5092ab971e57d9eb09a9cdcc

See more details on using hashes here.

File details

Details for the file runtimed-0.1.4.dev20260301-cp39-abi3-win_amd64.whl.

File metadata

  • Download URL: runtimed-0.1.4.dev20260301-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.4.dev20260301-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 a668009104ac9fc2af0c4c150cb526920b8e712849ad7c02a86a3d6f63ce2fd0
MD5 058ae4eab5ab4bbad4ec0104b6d2f723
BLAKE2b-256 ecf52ccb032e8bec6d26e4fa22ff95dfb40a42cd3606366a4b9ecb06441cacca

See more details on using hashes here.

File details

Details for the file runtimed-0.1.4.dev20260301-cp39-abi3-manylinux_2_39_x86_64.whl.

File metadata

  • Download URL: runtimed-0.1.4.dev20260301-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.4.dev20260301-cp39-abi3-manylinux_2_39_x86_64.whl
Algorithm Hash digest
SHA256 5fe9571b97f678badf498b98d1b021746dc007dbfcdce881b173b1dbe76f8184
MD5 93aead0fe3045410f3af6547b78f89ce
BLAKE2b-256 ff7a910fbc18821141ecfa01bcf58a221a146cfa78054dfbb2cf1d17a2c69d6c

See more details on using hashes here.

File details

Details for the file runtimed-0.1.4.dev20260301-cp39-abi3-macosx_11_0_arm64.whl.

File metadata

  • Download URL: runtimed-0.1.4.dev20260301-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.4.dev20260301-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fcd942a6fbe3923c2622e38a7b31240f1baee25669f40f698c2d8c7e3017eb8b
MD5 4a9bbf5f96189dfb56a00bca1e6ca521
BLAKE2b-256 2110d4c6d558f3f941611f0fb811bcb2d56850e85e55e999c7076326349446a9

See more details on using hashes here.

File details

Details for the file runtimed-0.1.4.dev20260301-cp39-abi3-macosx_10_12_x86_64.whl.

File metadata

  • Download URL: runtimed-0.1.4.dev20260301-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.4.dev20260301-cp39-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 fa897fa29459b077ecd141c5c0087752393df98be8d80a424439a6b687734c44
MD5 8c11e8b16826e244fec2f701ae8feb37
BLAKE2b-256 0db20e20fac5108ff887c8eef828fc06f4eade03c9e9c0a047ab514c8f6b2bd0

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