Python

The Python library lets you write Spade blocks as plain Python functions with type hints. The library handles reading inputs, loading parameters from params.yaml, and writing outputs.

Prerequisites🔗

  • Python 3.12 or later
  • uv package manager (recommended) or pip
  • The Spade CLI installed (Installation guide)

Installation🔗

Add spade as a dependency in your pyproject.toml, or install it directly:

pip install spade

With uv:

uv add spade