Skip to main content

rutis

Write rutis plugins in Python, and the runtime that runs them.

from rutis import define_plugin


class Weather:
    def __init__(self, llm, city):
        self.llm, self.city = llm, city

    async def today(self):
        return f"{await self.llm.ask(self.city)} in {self.city}"


def apply(ctx, config):
    ctx.provide("weather", Weather(ctx.use("llm"), config["city"]))


plugin = define_plugin(apply, inject=["llm"], provides={"weather": Weather})

Test it without a host:

from rutis.testing import load

async with load(plugin, config={"city": "Oslo"}, services={"llm": FakeLlm()}) as t:
    assert await t.service("weather").today() == "sunny in Oslo"

A host runs plugins with python -m rutis <channel> <project> (it starts that itself); python -m rutis listen:wss://… --id <id> --peer <controller> <project> runs a runtime a host on another machine controls (install rutis[network]). Packaged plugins register under the entry point group rutis.plugins. Python 3.12 or later; no dependencies.

Start a project with uvx rutis-host new <name> --lang python. Guide (Chinese): docs/guide/python-plugin.md.

Metadata

Release files for rutis 0.7.0

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

Source distribution (sdist)

Source distribution for rutis 0.7.0
File Size Uploaded
rutis-0.7.0.tar.gz 28.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for rutis 0.7.0
File Interpreter ABI Platform
rutis-0.7.0-py3-none-any.whl Python 3 none any Details

Total release size: 54.2 kB

Release files / rutis-0.7.0.tar.gz

Download URL rutis-0.7.0.tar.gz
Size 28.2 kB
Tags Source
SHA-256 checksum
How to use checksums
2a32a209774bb415456aad801825109566dfb0866d8a3f1edf16ba115f74088f
BLAKE2b-256 checksum
How to use checksums
c80fc74dbb2acddfd1d33d1cd8ef6bceee256aa1a7539a51f116237f7baf7a03
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 Oct 6, 2026.

Transparency log

Release files / rutis-0.7.0-py3-none-any.whl

Download URL rutis-0.7.0-py3-none-any.whl
Size 26.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9a806ddedeeb7a6ba053ec52d63feccfa07169af1579e073161818ebc2bdbfc7
BLAKE2b-256 checksum
How to use checksums
62ea80675727ca421d7ec88ef4af9baf42a86ee0eb9d0a27976a12098c86d69f
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 Oct 6, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.7.0 This release

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