Skip to main content

splime

Reuse Python functions across projects without rewriting or redeploying them.

splime turns trusted Python functions into versioned, portable nodes that can be reused across projects and executed locally or remotely. You publish a function to a private library once, then any project can call it by name, run it where the data or the hardware lives, and read back the result and artifacts — without copying code or redeploying.

  • Python-first. Plain Python functions and pipelines, no DSL to learn.
  • Reuse-first. Publish once, call by name from anywhere.
  • Private-team-first. Your own libraries and workers, with explicit ownership and scoped access.
  • Local or remote. The same call runs on your machine during development, or on a private worker that has the data, the GPU, or the credentials.

splime is a private node registry and execution layer — not a workflow orchestrator, a scheduler, or a public marketplace. It does not replace Airflow, Prefect, or Temporal.


Requirements

  • Python 3.13+
  • macOS or Linux for daemon workers and Personal; Windows is unsupported in this release.

Install

python3.13 -m pip install "splime==0.6.2"

The distribution is named splime; the Python import package is spl.

Quickstart

1. Start the local daemon (it stores your objects and runs workers):

spl-daemon serve            # listens on http://127.0.0.1:8765 by default

2. Publish a function and call it — a plain SPLClient() is fully local and never contacts a server:

from spl import SPLClient
import sys

def daily_total(date: str) -> float:
    prices = {"2026-06-08": [11.0, 6.5, 24.5]}
    return sum(prices.get(date, []))

client = SPLClient()                       # local-first; no server contact
client.register_env("default", python=sys.executable)
client.publish(daily_total, name="daily_total")

result = client.call("daily_total", kwargs={"date": "2026-06-08"})
print(result.mode)     # "local"
print(result.output)   # 42.0  (.output always yields the plain value;
                       #  for pipelines .value keeps the raw port dict)

That is the whole loop: define a function, publish it as a versioned node, then call it by name and get back the value (plus logs and any artifacts).

Values across per-node runtimes

Pipeline edge adapters now carry non-JSON Python values across native, venv-subprocess, and per-node docker boundaries. Select an explicit format where more than one representation is possible:

consumer = lift(use_array).bind(value=producer.as_format("npy"))
pipeline = consumer.render("array_pipeline").with_node_runtime("use_array", "venv-subprocess")

The producing side saves one canonical, checksummed artifact for each unique save identity and the consuming side loads it in its own target environment. A run-level adapter override takes precedence over .as_format(...). Retained runs record the exact save/load provenance and can resume from verified frozen artifacts without rerunning the producer.

Plain JSON-compatible values keep the historical inline wire shape: no adapter bundle, staging file, or artifact directory is created. Custom adapters must be plain top-level save/load functions with statically recoverable source. Declare every non-stdlib import as an exact distribution dependency so it is installed and verified in each isolated target environment.

Artifact transport accepts stable regular files only and checks names, sizes, SHA-256 digests, adapter identities, and format tags before loading. Current limits are 256 MiB per input or output, 512 MiB aggregate inputs and outputs, 512 KiB for a custom adapter source bundle, and 1,024 adapter bindings. These checks harden the transport boundary; they do not make trusted Python functions safe to run as arbitrary untrusted code.

Run it where the data lives

The same call becomes a remote run when you point it at a library, an owner, or a target machine. This requires a connected splime server and a private worker; the local daemon builds the declared dependency environment on the worker before executing.

client = SPLClient(user_token="…", machine_token="…")   # connect the daemon to your server

result = client.call(
    "daily_total",
    kwargs={"date": "2026-06-08"},
    target_machine="gpu-box",        # hand the run to a private worker
)
print(result.mode)    # "server"

SPLClient() without tokens stays entirely local — connecting to a server is always optional.

Libraries

Libraries group versioned objects and control who can see and run them. Creating and curating libraries uses a server-connected client:

client.library.create("risk", display_name="Risk", visibility="private")
client.publish(risk_score, name="risk_score", library="risk")

# Grant scoped access to a teammate
client.library.grant("risk", "analyst1", scopes=["metadata:read", "objects:read", "execute"])

A library can also reference a live object from another library (add_reference, follows latest) or take an owned snapshot with provenance (copy_object).

Security & trust

splime runs code that you publish on purpose, on machines you control. It is built around:

  • explicit ownership of every published object,
  • scoped access grants per library (read metadata, read objects, execute),
  • private worker topology — the server coordinates, your own workers execute,
  • dependency environments built by the daemon before a run,
  • metadata-only central telemetry by default — local inputs, results, error details, streams, and artifact bodies stay on the machine; diagnostic adds only redacted/truncated error and stdout/stderr text, while full also opts in to redacted inputs, results, and supported text artifacts,
  • an auditable run history.

Credentialed central-server traffic requires a direct HTTPS endpoint and never follows redirects. Loopback HTTP remains available for local development; the only other plaintext path is the exact Docker callback carrying only a scoped run capability.

Native and venv-subprocess runtimes execute trusted code under the conductor's OS identity—the daemon user for daemon-managed runs. A virtual environment separates dependencies and a subprocess separates execution, but neither is an OS sandbox. Docker or a deliberately separate OS identity is required when code must not read same-UID daemon files. Docker provides the configured process/filesystem boundary, subject to its mounts and network options and to trust in the Docker daemon and host.

Scoped callback capabilities limit the authority intentionally passed over the worker protocol. They do not protect against arbitrary same-UID file reads and do not turn a native or virtual-environment worker into a sandbox.

Docker object runs use one container per run by default and mount only that run's writable directory. Warm pooling is explicitly opt-in with spl-daemon serve --docker-pool-enabled --docker-pool-size N; pooled containers share all runs for that daemon and are suitable only for single-tenant, mutually trusting workloads. One process also exclusively locks each daemon home before opening its database or publishing its endpoint.

How it fits together

Piece What it does
spl.core Serializes Python functions and pipelines to a portable SPL/YAML form.
SPLClient The user-facing client: publish, call, manage libraries and runs.
spl-daemon A local runtime that stores objects, builds environments, and executes workers.

Development

git clone https://github.com/yastrebovks/splime
cd splime
pip install -e '.[test]'
pytest

Project status

Release 0.6.2. See release notes for features, trust boundaries and known limitations.

Alpha. The API may change between releases. Feedback and issues are welcome at the issue tracker.

License

Licensed under the Apache License 2.0.

For trusted local Python functions, native models and approved stdio tools, see Personal on this computer.

Metadata

Release files for splime 0.6.2

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

Source distribution (sdist)

Source distribution for splime 0.6.2
File Size Uploaded Provenance Actions
splime-0.6.2.tar.gz 1.9 MB With provenance Details for splime-0.6.2.tar.gz

Built distribution (wheel)

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

Total release size: 4.0 MB

Release files / splime-0.6.2.tar.gz

Download URL splime-0.6.2.tar.gz
Size 1.9 MB
Tags Source
SHA-256 checksum
How to use checksums
18e626e9fcff2aadd3b31845a9998ad46886d3e405341c624b7b19bde3957c5b
BLAKE2b-256 checksum
How to use checksums
90a156c2422b826d932d6ee0554d255fd894ab0a6ab0afddd0390b3cdbb9ba34
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 28, 2026.

Transparency log

Release files / splime-0.6.2-py3-none-any.whl

Download URL splime-0.6.2-py3-none-any.whl
Size 2.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
38db887db537bc98eec8f5952a0ee4ed7aa88ac7e8671b8f57549301870d1c4e
BLAKE2b-256 checksum
How to use checksums
2cb5cd076ae1696bb7c8b274d25958f7cdbd702a07ba8f64f092125ddca1d666
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 28, 2026.

Transparency log

Security for splime 0.6.2

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for splime-0.6.2.tar.gz

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 Nov 28, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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