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+
- POSIX for local daemon environment builds and timeout-safe worker execution in 0.4.6 (Windows Job Object support is not yet implemented; Windows client-only use is unaffected)
Install
python3.13 -m pip install "splime==0.4.8"
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
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.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).
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
Alpha. The API may change between releases. Feedback and issues are welcome at the issue tracker.
Links
- Website: https://splime.io
- Source: https://github.com/yastrebovks/splime
License
Licensed under the Apache License 2.0.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file splime-0.4.8.tar.gz.
File metadata
- Download URL: splime-0.4.8.tar.gz
- Upload date:
- Size: 622.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
07c920e5e7d40f3cff20f5c378078fcbd284e22afce50b3e2d7cbdf151feb0bd
|
|
| MD5 |
36407bd8ead43024cb4774ecc50b639d
|
|
| BLAKE2b-256 |
273f79aa798b947fe9f114ffdcf99ca0483acf74d623f97b80dead150a7bff60
|
Provenance
The following attestation bundles were made for splime-0.4.8.tar.gz:
Publisher:
publish-to-pypi.yml on yastrebovks/splime
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
splime-0.4.8.tar.gz -
Subject digest:
07c920e5e7d40f3cff20f5c378078fcbd284e22afce50b3e2d7cbdf151feb0bd - Sigstore transparency entry: 2579714962
- Sigstore integration time:
-
Permalink:
yastrebovks/splime@21ff982e476267d0cef840395edff558d18ccd72 -
Branch / Tag:
refs/tags/v0.4.8 - Owner: https://github.com/yastrebovks
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@21ff982e476267d0cef840395edff558d18ccd72 -
Trigger Event:
release
-
Statement type:
File details
Details for the file splime-0.4.8-py3-none-any.whl.
File metadata
- Download URL: splime-0.4.8-py3-none-any.whl
- Upload date:
- Size: 696.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0193a5b1db7d1a3b20d98f1affceda5b84e0def465d12fea966cb9191e23e7cd
|
|
| MD5 |
e700372a7760aad7874b681978344519
|
|
| BLAKE2b-256 |
b8efb3279696cd0c4e283618b3accff6d437e6423197521745e39a56cf3f9286
|
Provenance
The following attestation bundles were made for splime-0.4.8-py3-none-any.whl:
Publisher:
publish-to-pypi.yml on yastrebovks/splime
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
splime-0.4.8-py3-none-any.whl -
Subject digest:
0193a5b1db7d1a3b20d98f1affceda5b84e0def465d12fea966cb9191e23e7cd - Sigstore transparency entry: 2579714968
- Sigstore integration time:
-
Permalink:
yastrebovks/splime@21ff982e476267d0cef840395edff558d18ccd72 -
Branch / Tag:
refs/tags/v0.4.8 - Owner: https://github.com/yastrebovks
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@21ff982e476267d0cef840395edff558d18ccd72 -
Trigger Event:
release
-
Statement type: