Reuse Python functions across projects without rewriting or redeploying them.
splime packages trusted Python code into versioned, portable nodes. Run them locally, in CI, or on your own remote workers — with typed inputs, reproducible environments, logs, and results streamed back to your machine.
Built for teams whose best internal Python code is scattered across repos, notebooks, scripts, and legacy environments.
from splime import node, run_remote
@node(
name="invoice.cleaner",
python="3.12",
resources={"cpu": 2, "memory": "4Gi"},
)
def clean_invoice_pdf(file: bytes) -> dict:
# Your existing production-proven Python code
return extract_fields(file)
clean_invoice_pdf.publish("company/invoice-cleaner@1.0.0")
result = run_remote(
"company/invoice-cleaner@1.0.0",
file=open("invoice.pdf", "rb").read(),
)
print(result.logs)
print(result.output)